본문 바로가기

cloud/k8s(문제풀이)76

[K8S]Network-CNI Weave 1. Inspect the kubelet service and identify the network plugin configured for Kubernetes. A) CNI 2. What is the path configured with all binaries of CNI supported plugins? A) /opt/cni/bin 3. Identify which of the below plugins is not available in the list of available CNI plugins on this host? ls /opt/cni/bin A) Cisco 4. What is the CNI plugin configured to be used on this kubernetes cluster? ls.. 2022. 8. 1.
[k8s]Networking-Explore Environment 1.How many nodes are part of this cluster? Including the controlplane and worker nodes. k get nodes 2. What is the Internal IP address of the controlplane node in this cluster? k get nodes -o wide A) 10.0.243.9 3.What is the network interface configured for cluster connectivity on the controlplane node? node-to-node communication k get nodes -o wide ip a | grep 10.0.243.9 A) eth0 4. What is the .. 2022. 8. 1.
[k8s]Kodekloud-storageClasses 1. How many StorageClasses exist in the cluster right now? k get sc A)1 2.How about now? How many Storage Classes exist in the cluster? We just created a few new Storage Classes. Inspect them. k get sc A) 3 3. What is the name of the Storage Class that does not support dynamic volume provisioning? k get sc A) local-storage 4. What is the Volume Binding Mode used for this storage class (the one i.. 2022. 8. 1.
[k8s]kodekloud-Persistent volume Claims 1.We have deployed a POD. Inspect the POD and wait for it to start running. In the current(default) namespace. k get pods A) okay 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 kubectl exec webapp -- cat /log/app.log 3. If the POD was to get deleted now, would you be able to view t.. 2022. 7. 5.
[cka] kodekloud-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. k get networkpolicy k get netpol A) 1 2. What is the name of the Network Policy? A)payroll-policy 3.Which pod is the Network Policy applied on? A) payroll 4.What type of traffic is this Network Policy configured to handle? k describe networkpol.. 2022. 7. 1.
[cka]kodekloud-security contexts 1. What is the user used to execute the sleep process within the ubuntu-sleeper pod? In the current(default) namespace. kubectl exec ubuntu-sleeper -- whoami A) 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 Pod Name: ubuntu-sleeper Image Name: ubuntu SecurityContext: User 1010 k del.. 2022. 7. 1.