본문 바로가기

Software Architecture/kubernetes

kubernetes 설치(centos 7)

반응형

https://kubetm.github.io/k8s/02-beginner/cluster-install-case2/

 

k8s v1.15버전 설치 (실습 강의 버전)

실습 강의와 똑같은 구성을 하기 위해서는 Network를 Bridge모드로 사용할 수 있는 (공유기에서 고정IP를 할당 받을 수 있는)환경 이어야 합니다.

kubetm.github.io

1. kubernetes 설치명령어 실행시 "repodata/repomd.xml from kubernetes: [Errno 256] No more mirrors to try." 에러 발생

 

kubernetes.repo 파일에서 아래 두라인 삭제하니 잘 설치됨.

gpgcheck=1
repo_gpgcheck=1

 

2. workernode의 ip변경 후 systemctl restart network할때 에러 발생

[Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.]

 

shutdown now로 끄고 재시작 하니 systemctl restart network가 정상처리됨.

 

3. dashboard 설치

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

반응형