본문 바로가기

CKA &. CKAD

(104)
Practice Test - Explore Kubernetes Environments ㅁ How many nodes are part of this cluster? kubectl get nodes ㅁ What is the network interface configured for cluster connectivity on the master node? notde-to-node communication $ cat /etc/network/interfaces [ens3] Hint - Run the ip link command and identify the interface ip link 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd ..
Cluster Networking Check required ports Master Node(s) Protocol Direction Port Range Purpose Used By TCP Inbound 6443 Kubernetes API Server All TCP Inbound 2379-2380 etcd server client API kube-apiserver, etcd TCP Inbound 10250 Kubelet API Self, Control Plane TCP Inbound 10251 kube-scheduler Self TCP Inbound 10252 kube-controller-manager Self Worker Node Protocol Direction Port Range Purpose Used By TCP Inbound 10..
CNI (Container Network Interface)
Docker Networking
Network Namespace FAQ While testing the Network Namespaces, if you come across issues where you can't ping one namespace from the other, make sure you set the NETMASK while setting IP Address. ie: 192.168.1.10/24 ip -n red addr add 192.168.1.10/24 dev veth-red Another thing to check is FirewallD/IP Table rules. Either add rules to IP Tables to allow traffic from one namespace to another. Or disable IP Tables all ..
Storage Class
Practice Test - Persistent Volumes and Persistent Volume Claims ㅁ We have deployed a POD. Inspect the POD and wait for it to start running. In the current(default) namespace. kubectl get pod ㅁ The application stores logs at location /log/app.log. View the logs. You can exec in to the container and open the file: kubectl exec webapp -- cat /log/app.log ㅁ If the POD was to get deleted now, would you be able to view these logs. apiVersion: v1 kind: Pod metadata..
Volumes and Persistent Volume [volumes] apiVersion: v1 kind: Pod metadata: name: random-number-generator spec: containers: - image: alpine name: alpine command: ["/bin/sh", "-c"] args: ["shuf -i 0-100 -n 1 >> /opt/number.out;"] volumeMounts: - moutnPath: /opt name: data-volume volumes: - name: data-volume hostPath: path: /data type: directory AWS EBS를 Volume Storage로 사용하는 경우 아래와 같이 변경한다. volumes: - name: data-volume awsElast..