본문 바로가기

전체 글139

[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.
[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.
반응형