본문 바로가기

전체 글133

[cka] kodekloud-commands and Arguments 1.How many PODs exist on the system? in the current(default) namespace # k get pods A) 1 2. What is the command used to run the pod ubuntu-sleeper? # k describe pods ubuntu-sleeper A) sleep 4800 3.Create a pod with the ubuntu image to run a container to sleep for 5000 seconds. Modify the file ubuntu-sleeper-2.yaml. Note: Only make the necessary changes. Do not modify the name. Pod Name: ubuntu-s.. 2022. 6. 15.
[cka]kodekloud-rolling update and rollbacks 1.We have deployed a simple web application. Inspect the PODs and the Services Wait for the application to fully deploy and view the application using the link called Webapp Portal above your terminal. # alias # k get pods 2.What is the current color of the web application? Access the Webapp Portal. A) Blue 3. Run the script named curl-test.sh to send multiple requests to test the web applicatio.. 2022. 6. 15.
[cka]kodekloud-Managing Application Logs 1. We have deployed a POD hosting an application. Inspect it. Wait for it to start. # k get pods 2.A user - USER5 - has expressed concerns accessing the application. Identify the cause of the issue. Inspect the logs of the POD # k logs webapp-1 3. We have deployed a new POD - webapp-2 - hosting an application. Inspect it. Wait for it to start. 4.A user is reporting issues while trying to purchas.. 2022. 6. 13.
[cka]kodekloud-Monitor Custer Components 1.We have deployed a few PODs running workloads. Inspect them. Wait for the pods to be ready before proceeding to the next question. # k get pods 2.Let us deploy metrics-server to monitor the PODs and Nodes. Pull the git repository for the deployment files. Run: git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git 3.Deploy the metrics-server by creating all the components down.. 2022. 6. 13.
[cka]kodekloud-Multiple Schedulers 1. What is the name of the POD that deploys the default kubernetes scheduler in this environment? # k get pods # k get pods -ALL A) kube-scheduler-controlplane 2.What is the image used to deploy the kubernetes scheduler? Inspect the kubernetes scheduler pod and identify the image # k describe pod kube-scheduler-controlpane -n kube-system 3.We have already created the ServiceAccount and ClusterRo.. 2022. 6. 13.
[cka]kodekloud-static pods 1. How many static pods exist in this cluster in all namespaces? # k get pods -A # k get pod kube-apiserver-controlplane -n kube-system -o yaml : 이 문제를 풀기 위해 두가지를 확인 해야 한다. : static pod 를 구분하기 위한 방법이다. 그림 1 pod 의 이름 : kube-apiserver-controlplane 그림 2 pod 의 이름 : coredns-64897985d-fj6rl 해당 이미지를 보면 ownerReferences / kind: 내용을 보면 그림 1 은 : Node, 그림 2는: ReplicaSet 인걸 확인 할 수 있다. 즉, 그림 1 은 node -> stati.. 2022. 6. 13.