- Rancher (GCP INSTANCE)
- k8s (GKE), ON-PRE로 구성된 클러스터
- ARgoCD
yum repository 설정 추가 $ sudo yum install -y yum-utils device-mapper-persistent-data lvm2 $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum -y install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker sudo systemctl enable docker sudo docker version Client: Docker Engine - Community Version: 19.03.13 API version: 1.40 Go version: go1.13.15 Git commit: 4484c46d9d Built: Wed Sep 16 17:03:45 2020 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.13 API version: 1.40 (minimum version 1.12) Go version: go1.13.15 Git commit: 4484c46d9d Built: Wed Sep 16 17:02:21 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.3.7 GitCommit: 8fba4e9a7d01810a393d5d25a3621dc101981175 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683
2376 TCP 2379-2380 TCP 8472 UDP 9099 TCP 6783 TCP 6783-6784 UDP 10250 TCP 10254 TCP 30000-32767 TCP/UDP
docker run -d --restart=unless-stopped \ --privileged -p 80:80 -p 443:443 \ -v /host/certs:/container/certs \ -e SSL_CERT_DIR="/container/certs" \ rancher/rancher:latest
* 위에서 각 Node의 역할 별 체크박스에 체크 후 아래의 스크립트를 붙혀넣으면 됩니다. 추가로 ``Show Advance options`` tab에서 Node의 IP, 이름을 추가로 설정 가능합니다
[root@rancher-node2 ~]# sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run rancher/rancher-agent:v2.4.8 --server https://34.64.79.179 --token rpkc8zzs7mvzq4ng8lszpp5ncpfvfl6tm7c2bkmlcvfjb9ncgtzq49 --ca-checksum e9f82b3c16848a400fa3c5839dd1f7e23dbfbd1a2912dace1cbfca72366581f0 --node-name rancher-node2 --address 34.64.144.38 --internal-address 34.64.144.38 --worker Unable to find image 'rancher/rancher-agent:v2.4.8' locally v2.4.8: Pulling from rancher/rancher-agent f08d8e2a3ba1: Pull complete 3baa9cb2483b: Pull complete 94e5ff4c0b15: Pull complete 1860925334f9: Pull complete e5d12d0f9a84: Pull complete 5116e686c448: Pull complete d4f72327bfd0: Pull complete 61bcbcce7861: Pull complete fca783017521: Pull complete 29ab00ed6801: Pull complete Digest: sha256:c8a111e6250a313f1dd5d34696ddbef9068f70ddf4b15ab4c9cefd0ea39b76c1 Status: Downloaded newer image for rancher/rancher-agent:v2.4.8 db357cd36dc9c2fda9cfce9e42177b560e0e5d25faae743747541bba4b0b92b5