1. Repository 등록
$ sudo nano /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
2. 필요한 패키지 설치
$ sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
3. kubelet 등록
$ sudo systemctl enable --now kubelet
4. config 설정
$ nano /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
5. 설정파일 리로드
$ sysctl --system
6. 나가기
$ exit
'Infrastructure' 카테고리의 다른 글
CentOS7 일반 유저 권한설정 (0) | 2020.07.11 |
---|---|
CentOS7 golang Install (0) | 2020.07.11 |
CentOS7 Docker & Docker-Compose install (0) | 2020.07.11 |
CentOS7 GUI Install (0) | 2020.07.11 |
CentOS7 Node.js Install (0) | 2020.06.01 |