본문 바로가기

cloud/k8s(문제풀이)76

[따배쿠29]Kube-DNS Create a nginx pod called nginx-resolver using image nginx, expose it internally with a service called nginx-resolver-service. Test that you are able to look up the service and pod namaes from within the cluster. Use the image: busybox1.28 for dns lookup. - Record results in /tmp/nginx.svc and /tmp/nginx.pod - Pod: nginx-resolver created - Service DNS Resolution recorded correctly - Pod DNS reso.. 2022. 9. 1.
[따배쿠 CKA]30.Network Policy 작업 클러스터: hk8s Create a new NetworkPolicy named allow-port-from-namespace in the exiting namespace devops. Ensure that the new NetworkPolicy allow pods in namespace migops to connect to port 80 of Pods in namespace devops. kubectl get namespaces migops --show-labels : 강의에 의하면 labels에는 team=migops kubectl get namespace devops --show-labels : 강의에 의하면 labels에는 team=devops k get pod -n devops --show-.. 2022. 9. 1.
[cka] Mock exam-1 1.Deploy 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. You may navigate back and forth freely between all questions. Once done with all questions, click on End Exam. Your work will be validated at the end and score shown. Good Luck! Name: nginx-pod Image: nginx:alpine 방법1) k run nginx-pod --image=nginx:alpi.. 2022. 8. 19.
[따배쿠 CKA]28. ServiceAccount Cluster Role binding Q. Create a new ClusterRole named deployment-clusterrole, which only allows to create the following resource types Deployment StatefulSet DaemonSet Create a new ServiceAccount named cicd-token in the existing namespace aps. Bind the new ClusterRole deployment-clusterrole to the new ServcieAccount cicd-token, linited to the namespace aps. 1. namespace 만들기 k create ns aps k get ns aps 2. ServicAcc.. 2022. 8. 17.
[따배쿠 CKA]27. ServiceAccount Role Binding *ServiceAccount Role Binding* 1) Service Account생성하기 2) Role 만들기 3) RoleBinding Q. Cluster: Kubectl config use-context k8s Create the Service Account named pod-access in a new namespace called apps. Create a Role with the name pod-role, and the Role Binding named pod-rolebinding. Map the ServiceAccount from the previous step to the API resources Podss with the operations watch,list,get 1. servic.. 2022. 8. 17.
[따배쿠 CKA] 26.User Cluster Role binding [k8s kw: RBAC] *Role 차이 : namespace Role는 ns 에 국한 되서 권한이 있었다. : cluster Role : 모든 ns 에 대해서 권한을 갖게 된다. 1)ClusterRole 만들기 2)ClusterRoleBinding 하기 Q. Cluster: kubectl config use-context k8s Task: - Create a new ClusterRole named app-clusterrole, which only allows to get ,watch, list the following resource types: Deployment, Service - Bind the new ClusterRole app-clusterrole to the new user ckcuser... 2022. 8. 17.