분류 전체보기135 [cka] Deploy Network Solution 1. In this practice test we will install weave-net POD networking solution to the cluster. Let us first inspect the setup. We have deployed an application called app in the default namespace. What is the state of the pod? controlplane ~ ➜ k get podsNAME READY STATUS RESTARTS AGEapp 0/1 ContainerCreating 0 76s answer : NotRunning 2. Inspect why the POD is not.. 2024. 8. 9. [cka] CNI 1. Inspect the kubelet service and identify the container runtime endpoint value is set for Kubernetes. ps -ef | grep kubelet | grep runtimeroot 4338 1 0 12:18 ? 00:00:03 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --container-runtime-endpoint=unix:///var/run/co.. 2024. 8. 9. [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. 이전 1 2 3 4 5 6 7 8 ··· 27 다음 반응형