2 pod 생성할때는 kubectl run podcreate는 안된다9 권한이 없는거라고 생각해서 communicate가 안되는거라고 생각했는데 해당 이미지가 도커 허브에 없는게 답이라고 함 12 문제를 잘 읽자...
문제 1 > Weight: 12 Create a new service account with the name pvviewer. Grant this Service account access to list all PersistentVolumes in the cluster
문제 1 > Weight: 10 Take a backup of the etcd cluster and save it to /opt/etcd-backup.db. Backup Completed docs etcd backup https://kubernetes.io/docs/
Weight: 6Deploy a pod named nginx-pod using the nginx:alpine image.Once done, click on the Next Question button in the top right corner of this panel.
1Weight: 15Upgrade the current version of kubernetes from 1.28.0 to 1.29.0 exactly using the kubeadm utility. Make sure that the upgrade is carried ou
11docshttps://kubernetes.io/docs/concepts/workloads/controllers/replicaset/정답rs의 apiVersion은 apps/v1 <- 이런 형식14정답이미 존재하는 rs를 수정하고 싶을 땐 kubect
2풀이kubectl run redis --image=redis -n financek run 할때는 뒤에 pod 안적어도 된다...ㅠ근데 왜 에러가 안날까?이렇게 했는데 파드 만들어지긴함.. 물론 READY가 아니다.
3풀이kubectl run redis -l tier=db --image=redis:alpine 또는kubectl run redis --image=redis:alpine --labels="tier=db"4풀이kubectl expose pod redis --port=637
8풀이도커파일 내의 명령어는 --color red이지만, webapp=color-2 밑에 있는 도커파일 외 web-app-pod.yaml 파일을 보면 command가 --color green으로 되어있음 yaml 파일로 커맨드가 override되므로 답은 --color
6풀이yaml 파일로 만들면 base64로 변환해야 하므로 비추..정답 kubectl create secret generic db-secret --from-literal=DB_Host=sql01 --from-literal=DB_User=root --from-litera
2풀이https://kubernetes.io/docs/tasks/configure-pod-container/security-context/위를 참고해서 securityContext.runAsUser를 추가해준다정답팁kubectl delete pod ubuntu
3풀이정답OOMKilled
8풀이kubectl get po -o yaml정답default
9풀이k describe node controlplane정답10번kubectl taint nodes foo dedicated:NoSchedule-key가 dedicated이고 effect가 NoSchedule인 taint만 제거foo 노드에 dedicated:NoSch
3Apply a label color=blue to node node01정답kubectl label node node01 color=blue참고\-l 옵션은 -l 옵션 뒤에 오는 라벨을 가진 파드를 찾을때 쓰는 옵션 6풀이spec.template.spec밑에 추가
8 Edit the pod in the elastic-stack namespace to add a sidecar container to send logs to Elastic Search. Mount the log volume to the sidecar container
11Change the deployment strategy to RecreateDelete and re-create the deployment if necessary. Only update the strategy type for the existing deploymen
3Monitor and wait for the job to succeed. Throughout this practice test remember to increase the 'BackOffLimit' to prevent the job from quitting befor
11If the requirement does not match any of the configured paths in the Ingress, to which service are the requests forwarded?풀이kubectl describe ingress
9Why is the claim not bound to the available Persistent Volume?풀이정답Access modes mismatch
3What is the name of the Storage Class that does not support dynamic volume provisioning?풀이Storage Class는 Kubernetes에서 동적 볼륨 프로비저닝을 설정하는 데 사용됨Storage
1How many images are available on this host?풀이정답95To what location within the container is the application code copied to during a Docker build?Inspec
12I would like to use the dev-user to access test-cluster-1. Set the current context to the right one so I can do that.Once the right context is ident
1Inspect the environment and identify the authorization modes configured on the cluster.Check the kube-apiserver settings.정답풀이\--authorization-mode= 보
2How many ClusterRoles do you see defined in the cluster?풀이wc: "word count"의 약자로, 텍스트 파일에서 단어, 줄 수, 문자 수 등을 세는 명령어정답727A new user michelle joined the
2Which admission controller is not enabled by default?정답NamespaceAutoProvision풀이NamespaceAutoProvision: Kubernetes의 admission controller 중 하나로, 클러스터에서
1Which of the below combination is correct for Mutating and validating admission controllers ?정답 namespaceautoprovision - mutating, namespaceexists -
2What is the patch version in the given Kubernetes API version?Kubernetes API version - 1.22.2풀이In Kubernetes versions : X.Y.ZWhere X stands for major
4What are the properties given to the CRD’s called collectors.monitoring.controller?정답image,replicas, name풀이5Create a custom resource called datacente
5A new deployment called frontend-v2 has been created in the default namespace using the image kodekloud/webapp-color:v2. This deployment will be used
1Identify the name of the Operating system installed.정답Ubuntu풀이2Install the helm package.If unsure how to install the helm tool, feel free to refer to
12Install the apache from the downloaded helm package.Release name: mywebappNote: Do make changes accordingly so that 2 replicas of the webserver are
1 / 5Weight: 20Create a Persistent Volume called log-volume. It should make use of a storage class name manual. It should use RWX as the access mode a
1/5We have deployed a few pods in this cluster in various namespaces. Inspect them and identify the pod which is not in a Ready state. Troubleshoot an
1Deploy a pod named nginx-448839 using the nginx:alpine image.정답k run nginx-448839 --image=nginx:alpine2Create a namespace named apx-z993845정답k create
1Create a deployment called my-webapp with image: nginx, label tier:frontend and 2 replicas. Expose the deployment as a NodePort service with name fro
\* 출처: 인프런 공인 쿠버네티스 자격증 잘 준비하는 법(CKA, CKAD, CKS) 강의 Broken k8s Cluster로그 확인 k get po 했을때 The connection to the server 192.168.1.10:6444 was refused -
1A kubectl context contains connection information to a Kubernetes cluster. Different kubectl contexts can connect to different Kubernetes clusters, o
21.Create a Pod named pod1 of image nginx:alpine2.Make key tree of ConfigMap trauerweide available as environment variable TREE13.Mount all keys of Co
2Make the Deployment ready.Exec into the Pod and create file /tmp/ready .Observe that the Pod is ready.정답풀이Deployment에서 ReadinessProbe는 /tmp/ready라는 파
1Create a new file /root/Dockerfile to build a container image from. It should:use bash as baserun ping killercoda.comBuild the image and tag it as pi
1Write the list of all installed CRDs into /root/crds .Write the list of all DbBackup objects into /root/db-backups .정답풀이CRD(Custom Resource Definitio
1Write the list of all Helm releases in the cluster into /root/releases .정답\-A를 빼먹지 말자..
1There are two existing Deployments in Namespace world which should be made accessible via an Ingress.First: create ClusterIP Services for both Deploy
1There are existing Pods in Namespace space1 and space2 .We need a new NetworkPolicy named np that restricts all Pods in Namespace space1 to only have
1Write all Admission Controller Plugins, which are enabled in the kube-apiserver manifest, into /root/admission-plugins .참고https://kubernetes.io/
1Create file /root/versions with three lines. Each line containing only one number from the installed K8s server version:1\. Major2\. Minor3\. Patch정답
출처: https://github.com/dgkanatsios/CKAD-exercises a. Core Concepts >Create the YAML for a new ResourceQuota called 'myrq' with hard limits of 1 CPU,
출처: Udemy, Kubernetes Certified (KCNA) + Hands On Labs + Practice Exams 섹션1 퀴즈1 Q. Which project was the first-ever project submission to the CNCF?
출처: Udemy, Kubernetes Certified (KCNA) + Hands On Labs + Practice Exams 섹션3 퀴즈10 Q2. What was Docker originally called? A. DotCloud Q5. How many na
출처: Udemy, Kubernetes Certified (KCNA) + Hands On Labs + Practice ExamsQ3. Which component of Kubernetes uses the API to track the state of pods and n
출처: Udemy, Kubernetes Certified (KCNA) + Hands On Labs + Practice ExamsQ1. Which of the following is a lightweight container runtime specifically desi
출처: Udemy, Kubernetes Certified (KCNA) + Hands On Labs + Practice ExamsQ2. Which Kubernetes autoscaling solution has the capability to scale workloads