전체 글140 [cka] Role Based Access Controls 1. Inspect the environment and identify the authorization modes configured on the cluster. Check the kube-apiserver settings. controlplane ~ ➜ k describe pod -n kube-system kube-apiserver | grep author --authorization-mode=Node,RBAC answer : Node,RBAC 2. How many roles exist in the default namespace?controlplane ~ ➜ k get roleNo resources found in default namespace. answer : 0 3. How many.. 2024. 7. 19. [cka] 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.controlplane ~ ➜ ls -a. .bashrc .config .profile .vim.. .cache .kube sample.yaml .vimrc.bash_profile CKA my-kube-config .ssh .wget-hstscontrolplane ~ ➜ ls -a ./.kube/config ./.kub.. 2024. 7. 19. [cka] 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 2. Create a CertificateSigningRequest object with the name akshay with the contents of the akshay.csr fileAs of kubernetes 1.19, the API to use for CSR is certificates.k8s.io/v1.Please note that an additional field called signerName should also be added .. 2024. 7. 19. [cka] View Certificate Details 1. Identify the certificate file used for the kube-api server. controlplane ~ ➜ ps -ef | grep kube-api | grep crtroot 3784 3284 0 13:27 ? 00:00:15 kube-apiserver --advertise-address=192.32.124.3 --allow-privileged=true --authorization-mode=Node,RBAC \ --client-ca-file=/etc/kubernetes/pki/ca.crt \ ... --tls-cert-file=/etc/kubernetes/pki/apiserver.crt \ # tls-cert-filㄷ -> .. 2024. 7. 16. [cka] Backup and Restore Methods 2 1. In this lab environment, you will get to work with multiple kubernetes clusters where we will practice backing up and restoring the ETCD database. 2. You will notice that, you are logged in to the student-node (instead of the controlplane).The student-node has the kubectl client and has access to all the Kubernetes clusters that are configured in this lab environment.Before proceeding to the .. 2024. 7. 12. 이전 1 ··· 5 6 7 8 9 10 11 ··· 28 다음 반응형