CKA 41

CKA 예제 리마인더 - 39. Lightning Lab - Cluster Upgrade

컨트롤 플레인 노드에서:Kubernetes apt 저장소를 정의하는 파일을 수정 vim /etc/apt/sources.list.d/kubernetes.list URL의 버전을 다음 사용 가능한 마이너 릴리스인 v1.31로 업데이트한다. deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.31/deb/ / controlplane을 업그레이드하기 전에 drain 진행 및 kubernetes 패키지 확인kubectl drain controlplane --ignore-daemonsetsapt update apt-cache madison kubeadm35 packages can be upgr..

DevOps 2025.01.15

CKA 예제 리마인더 - 36. Worker Node Failure

node01 노드의 issue를 fix 하세요 controlplane ~ ➜  ssh node01 Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-1072-gcp x86_64)  * Documentation:  https://help.ubuntu.com * Management:     https://landscape.canonical.com * Support:        https://ubuntu.com/proThis system has been minimized by removing packages and content that are not required on a system that users do not log into. To restore this con..

DevOps 2025.01.11

CKA 예제 리마인더 - 35. Control Plane Failure

application의 deploy에 문제가 있습니다. cluster의 issue를 fix하세요 controlplane ~ ➜  kubectl get all -A NAMESPACE      NAME                                       READY   STATUS              RESTARTS     AGE default        pod/app-776bb5c68f-jgxr2                   0/1     Pending             0            46s kube-flannel   pod/kube-flannel-ds-7ppwx                  1/1     Running             0            88..

DevOps 2025.01.11

CKA 예제 리마인더 - 34. Application Failure

예제는 해당 아키텍처를 기반으로 풀어야함 alpha 네임스페이스의 issue를 fix 하세요 Environment Variables: DB_Host=mysql-service; DB_Database=Not Set; DB_User=root; DB_Password=paswrd; 2003: Can't connect to MySQL server on 'mysql-service:3306' (-2 Name does not resolve) 에러 메시지를 보니 mysql-service:3306 으로 접속이 원활하지 않다 controlplane ~ ➜  kubectl config set-context --current --namespace=alpha Context "default" modified. 일단 귀찮으니 네임스페..

DevOps 2025.01.10

CKA 예제 리마인더 - 33. Cluster Installation using Kubeadm

kubeadm과 kubelet을 controlplane과 node01 노드에 설치하세요 Use the exact version of 1.31.0-1.1 for both cat net.ipv4.ip_forward = 1 EOF sudo sysctl --system sysctl net.ipv4.ip_forward sudo apt-get update sudo apt-get install -y apt-transport-https ca-certificates curl gpg curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg..

DevOps 2025.01.09

CKA 예제 리마인더 - 32. Ingress Networking - 2

ingress-nginx 네임스페이스를 만드세요 controlplane ~ ➜  kubectl create namespace ingress-nginx namespace/ingress-nginx created controlplane ~ ➜  kubectl get namespace NAME              STATUS   AGE app-space         Active   81s default           Active   3m33s ingress-nginx     Active   5s kube-flannel      Active   3m30s kube-node-lease   Active   3m33s kube-public       Active   3m33s kube-system       ..

DevOps 2025.01.08

CKA 예제 리마인더 - 31. Ingress Networking - 1

배포된 ingress resource의 이름은 무엇인가요? controlplane ~ ➜  kubectl get ingress -A NAMESPACE   NAME                 CLASS    HOSTS   ADDRESS         PORTS   AGE app-space   ingress-wear-watch      *       172.20.49.254   80      16m ingress resource의 host는 무엇으로 설정되어 있나요? HOSTS는 *이므로 All hosts /wear path에 설정된 backend는 어떤 것인가요? controlplane ~ ✖ kubectl describe ingress ingress-wear-watch -n app-space Name:..

DevOps 2025.01.07