IT 기술/k8s59 [cka] Explore Environment 1. How many nodes are part of this cluster? Including the controlplane and worker nodes.controlplane ~ ➜ k get nodesNAME STATUS ROLES AGE VERSIONcontrolplane Ready control-plane 4m8s v1.30.0node01 Ready 3m19s v1.30.0 answer : 2 2. What is the Internal IP address of the controlplane node in this cluster?controlplane ~ ➜ k describe node .. 2024. 8. 7. [cka] Storage Class 1. How many StorageClasses exist in the cluster right now? controlplane ~ ➜ k get storageclasses.storage.k8s.io NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGElocal-path (default) rancher.io/local-path Delete WaitForFirstConsumer false 6m17scontrolplane ~ ➜ k get storageclasses.storage.k8s.io --no-.. 2024. 8. 6. [cka] Persistent Volume Claims 1. We have deployed a POD. Inspect the POD and wait for it to start running. In the current(default) namespace. controlplane ~ ➜ k get podsNAME READY STATUS RESTARTS AGEwebapp 1/1 Running 0 15s 2. The application stores logs at location /log/app.log. View the logs. You can exec in to the container and open the file: kubectl exec webapp -- cat /log/app.log controlplan.. 2024. 7. 28. [cka] Network Policies 1. How many network policies do you see in the environment? We have deployed few web applications, services and network policies. Inspect the environment. controlplane ~ ➜ k get networkpoliciesNAME POD-SELECTOR AGEpayroll-policy name=payroll 36scontrolplane ~ ➜ k get networkpolicies -ANAMESPACE NAME POD-SELECTOR AGEdefault payroll-policy name=payroll 4.. 2024. 7. 28. [cka] Security Contexts 1. What is the user used to execute the sleep process within the ubuntu-sleeper pod? In the current(default) namespace 컨테이너 실행 유저 확인법.controlplane ~ ➜ kubectl exec ubuntu-sleeper -- whoamiroot answer : root 2. Edit the pod ubuntu-sleeper to run the sleep process with user ID 1010. Note: Only make the necessary changes. Do not modify the name or image of the pod. https://kubernetes.io/docs/tasks.. 2024. 7. 28. 이전 1 2 3 4 5 6 7 ··· 12 다음 반응형