본문 바로가기

컨테이너/Kubernetes

[Kubernetes] (21). 문제풀이 (Ligtening Lab)

1. kubeadm 업그레이드 -> kubelet 업그레이드 

2. kubectl custom output 작성하기 

# kubectl -n admin2406 get deployment -o custom-columns=
DEPLOYMENT:.metadata.name,
CONTAINER_IMAGE:.spec.template.spec.containers[].image,
READY_REPLICAS:.status.readyReplicas,
NAMESPACE:.metadata.namespace 

--sort-by=.metadata.name > /opt/admin2406_data

 

 

 

3. admin.kubeconfig 수정하기

 

 

A kubeconfig file called admin.kubeconfig has been created in /root/CKA. There is something wrong with the configuration. Troubleshoot and fix it.

 

kube-api server 포트 6443 수정

 

4. deployment 업그레이드 하기

 

Create a new deployment called nginx-deploy, with image nginx:1.16 and 1 replica. Next upgrade the deployment to version 1.17 using rolling update. Make sure that the version upgrade is recorded in the resource annotation.

 

 

 

 

5. 모름

 

 

 

6. etcd 백업하기

Take the backup of ETCD at the location /opt/etcd-backup.db on the controlplane node.

 

 

7. 모름