CKA &. CKAD104 Backup and Restore Methods Backup Candidated Declarative File Backup Backup - Resouce Configs kubectl get all --all-namespaces -o yaml > all-deploy-services.yaml Backup - ETCD ETCDCTL_API=3 etcdctl \ snapshot save snapshot.db $ ls snapshot.db ETCDCTL_API=3 etcdctl \ snapshot status snapshot.db Restore - ETCD $ service kube-apiserver stop Service kube-apiserver stopped ETCDCTL_API=3 etcdctl \ snapshot restore snapshot.db \.. 2021. 3. 28. Kuberenetes Upgrade Process [Kubernetes Release] https://kubernetes.io/docs/concepts/overview/kubernetes-api/ The Kubernetes API The Kubernetes API lets you query and manipulate the state of objects in Kubernetes. The core of Kubernetes' control plane is the API server and the HTTP API that it exposes. Users, the different parts of your cluster, and external components all communica kubernetes.io Here is a link to kubernet.. 2021. 3. 28. Operating system Upgrade [Practice Test] ㅁ Let us explore the environment first. How many nodes do you see in the cluster? (Including the master/controlplan and workers) kubectl get nodes ㅁ How many application do you see hosted on the cluster? (Check the number of deployments) kubectl get deployment ㅁ On which nodes are the applications hosted on? kubectl get node -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATE.. 2021. 3. 28. InitContainer and Practice Test Multi-container Pod에서 각 Container는 POD의 Lifecycle동안 활성 상태로 유지되는 프로세스를 실행해야 한다. 예를 들어 이전에 Web Application과 logging Agent가 있는 Mutli Container Pod에서 두 컨테이너 모두 항상 활성 상태를 유지해야 한다. Log Agent Container에서 실행되는 프로세스는 Web Application이 실행되는 동안 활성 상태로 유지 된다. 이들 중 하나라도 실패하면 POD가 다시 시작된다. 그러나 때대로 Container에서 완료될 때까지 실행되는 프로세스를 실행할 수 있다. 예를 들어, 기본 웹 애플리케이션에서 사용할 저장소에서 코드 또는 바이너리를 가져 오는 프로세스이다. 이는 Pod가 처음 생성될 때.. 2021. 3. 28. Practice Test - Multi-Container Pod [Practice Test] ㅁ Identify the number of containers running in the 'red' pod kubectl get pod red ㅁ Identify the name of the containers running in the 'blue' pod kubectl describe pod blue ㅁ Create a multi-container pod with 2 containers - Name: yellow - Container 1 Name: lemon - Container 1 Image: busybox - Container 2 Name: gold - Container 2 Image: redis kubectl run yellow --image=busybox --res.. 2021. 3. 27. Secret Practice Test ㅁ How many Secrets exsit on the system? kubectl get secrets ㅁ How many secrets are defined in the 'default-token' secret? kubectl describe secret default-token Data 영역의 값 확인 Data ==== ca.crt: 1066 bytes namespace: 7 bytes token: eyJhbGciOiJSUzI1NiIsImtpZCI6IlNTZjZGUEZCTFRLUlhiMGhyY2txNDF2M01HOWdOZGlQMzM4bWpJbi05d0kifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYW.. 2021. 3. 27. 이전 1 ··· 9 10 11 12 13 14 15 ··· 18 다음