본문 바로가기

K8S 클러스터 구축 가이드

(5)
ArgoCD 설치하고 클러스터에 배포하기 (GitOps) ArgoCD 설치하기 # kubectl create namespace argocd # kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml # VERSION=$(curl --silent "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/') # sudo curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/$VER..
Kubernetes Dashborad 연결하기 *작업 보류중인 상태. 추후 테스트후 내용정리 예정* cat
Ansible 기반 Kubespray로 K8S 클러스터 구축하기 (3) 7. helm차트 설치 & 도커 설치 (Bootstrap 노드에서 진행합니다.) 아래 명령어들을 입력하고 나면 버전정보 조회시 경고 문구가 출력되는데, 아래 방법으로 해결하였습니다. # curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh # chmod 700 get_helm.sh # ./get_helm.sh # helm version # chmod o-r ~/.kube/config # chmod g-r ~/.kube/config 필요한 repo를 추가합니다. 에러문구 출력시 새로운 주소로 바꾸고 다시 입력합니다. (경고 메시지는 위에 해결법을 통해서 해결 하였다면 출력되지 않습니다.) # helm ..
Ansible 기반 Kubespray로 K8S 클러스터 구축하기 (2) 5.k8s 클러스터 설치 (Bootstrap 노드에서만 진행) pip3 명령어 사용을 위해 다음 명령어로 파이썬3를 먼저 설치하고 진행해줍니다. # sudo yum install python3 (파이썬 설치) # git clone https://github.com/kubernetes-sigs/kubespray.git # cd kubespray/ # sudo pip3 install -r requirements.txt # cp -rfp inventory/sample inventory/saascluster # declare -a IPS=(192.168.171.129 192.168.171.133 192.168.171.130 192.168.171.131) # CONFIG_FILE=inventory/saasclus..
Ansible 기반 Kubespray로 K8S 클러스터 구축하기 (1) ※ 시작하기 전에 자료실에 올려둔 자료들중 CentOS 이미지 파일을 꼭 받아주세요! ※ VM웨어를 준비해주세요. (본 가이드 글은 VM웨어를 사용해서 구축하는 과정입니다.) 자료실 링크 : https://khs960508.tistory.com/7 1.가상머신 생성&설정 File – Open 클릭하여 준비된 VMware 파일을 불러와 쿠버네티스 환경에 필요한 가상머신 노드를 만들어줍니다. 준비된 가상머신 파일중 그림과 같은 파일을 선택하여 열기를 눌러줍니다. 첫 번째 칸에 가상머신에 사용할 이름을 수정해주고, Import를 눌러 생성해줍니다. 스토리지는 C드라이브에 생성 되지만 Browse를 눌러 생성 위치를 변경할 수 있습니다. 생성이 완료되면 그림처럼 왼쪽 목록에 만들어진 가상머신들이 보입니다. 우클..