본문 바로가기

cloud/k8s(문제풀이)76

[cka]kodekloud-Image Security 1. What secret type must we choose for docker registry? kubectl create secret --help A) docker registry 2. We have an application running on our cluster. Let us explore it first. What image is the application using? kubectl get pods kubectl describe pods web-bd975bd87-nj92v A) nginx:alpine 3.We decided to use a modified version of the application from an internal private registry. Update the ima.. 2022. 6. 29.
[cka]kodekloud-service Accounts (마지막문제다시) 1. How many Service Accounts exist in the default namespace? k get serviceaccounts A) 1 2.What is the secret token used by the default service account? kubectl describe serviceaccount default A) default-token-kqhgp 3. We just deployed the Dashboard application. Inspect the deployment. What is the image used by the deployment? kubectl describe deployment A) gcr.io/kodekloud/customimage/my-kuberne.. 2022. 6. 29.
[cka] kodekloud-cluster Roles 1. For the first few questions of this lab, you would have to inspect the existing ClusterRoles and ClusterRoleBindings that have been created in this cluster. : 이번 cluster Roles 에 대한 개요 설명 A) ok 2.How many ClusterRoles do you see defined in the cluster? k get clusterrole --no-header | wc -l A) 69 3. How many ClusterRoleBindings exist on the cluster? k get ClusterRoleBindings --no-headers | wc -.. 2022. 6. 28.
[cka]kodekloud-Based Access controls 1.Inspect the environment and identify the authorization modes configured on the cluster. Check the kube-apiserver settings. k describe pod kube-apiserver-controlplane -n kube-system A) Node, RBAC 2. How many roles exist in the default namespace? k get roles A) 0 3.How many roles exist in all namespaces together? kubectl get roles -A A) 12 4. What are the resources the kube-proxy role in the kub.. 2022. 6. 28.
[cka]kodekloud-kubeconfig (마지막문제 ..) 1.Where is the default kubeconfig file located in the current environment? Find the current home directory by looking at the HOME environment variable. ls -al cd ./kube pwd A) /root/.kube/config 2. How many clusters are defined in the default kubeconfig file? k config view A) 1 3. How many Users are defined in the default kubeconfig file? k config view A) 1 4. How many contexts are defined in th.. 2022. 6. 27.
[cka]kodekloud-certificates API 1.A new member akshay joined our team. He requires access to our cluster. The Certificate Signing Request is at the /root location. Inspect it ls 지금 현 경로의 모든 파일을 확인 할 수 있고, 현재 akshy의 csr 파일을 확인 할 수 있음. 2.Create a CertificateSigningRequest object with the name akshay with the contents of the akshay.csr file As of kubernetes 1.19, the API to use for CSR is certificates.k8s.io/v1. Please note that .. 2022. 6. 27.