목록클라우드/Kubernetes (17)
SaevOps

2024년 11월 시험으로 CKA 자격증 확보 아래 자료는 해당 자격증 확보할때 주로 나오는 문제들을 정리한 것 * CKA 시험 문제들이 리뉴얼 될 예정* 문제될 시 삭제 예정 #1 ETCD 데이터 복구# 문제First, create a snapshot of the existing etcd instance running at https://127.0.0.1:2379, saving the snapshot to /data/etcd-snapthot.dbNext, restore an existing, previous snapshot located at /data/etcd-snapshot-previous.dbThe following TLS certificates/key are supplied for connect..
최소사양 : Server : 2Core/ 4GB Agent : 2Core / 2GB KT cloud 1번 서버 ( Master Node )# swap 끄기sudo swapoff -asudo sed -i -e '/swap/d' /etc/fstab# rke2 다운로드[root@hyun-test ~]# curl -sfL | sh -# rke2 서비스 등록 및 사용systemctl enable rke2-server.servicesystemctl start rke2-server.servicejournalctl -u rke2-server -f# 명령어 환경변수 등록 & 별칭 등록mkdir ~/.kube/cp /etc/rancher/rke2/rke2.yaml ~/.kube/configexport PATH=..

테스트 환경 장비 부족으로 마스터 노드 1대로 kubernetes 구성 사설IP : 172.16.10.184 OS : Rocky Linux 8.7 ( Green) CPU : 3Core Memory : 16GB 최종 테스트 날짜 : 2024.03.26 쿠버네티스 설정 # swap 끄기 & hostname 설정 # swap 끄기 sudo swapoff -a sudo sed -i -e '/swap/d' /etc/fstab # hostname 설정 hostname kubemaster su - # hosts 파일에 추가 vi /etc/hosts ... 172.16.10.184 kubemaster # dnf 레포지토리 등록 sudo dnf config-manager --add-repo=https://download..

helm 설치 curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh - k8s 이미지 저장소인 helm을 통하여 편하고 쉽게 Elastic Search 설치 Elastic Search 설치 # 헬름 레포지토리 추가 helm repo add bitnami https://charts.bitnami.com/bitnami # 헬름 레포지토리 업데이트 helm repo update # elasticsearch 설치가능 버전 확인 helm search repo -l bitnami/elasticsearch | head # values.yam..

쿠버네티스 쉽고 빠르게 설정하기 # 자동 완성 패키지 설치 $ yum install bash-completion -y # bash 디렉토리에 출력값 넣기 $ kubectl completion bash > /etc/bash_completion.d/kubectl # 별칭 설정 $ echo 'alias k=kubectl' >> ~/.bashrc $ echo 'complete -F __start_kubectl k' >> ~/.bashrc # 리로딩 $ su - - 자동 완성 패키지 설치 - bash 디렉토리에 출력값 넣기 - 별칭 설정(kubectl 대신 k로) $ kubectl [tab] 결과 [root@bastion-host-svr ~]# kubectl alpha (Commands for features i..