Contents

Understand The K8S Architecture

K8S study notes

1. k8s components architecture.

Okay, it’s very easy to understand. Like above, master node is the most important. It controls the other nodes to join the cluster. Also API server is exposed outside. Through the master node, then can arrange the other nodes.

2. Practice

Target: Create the k8s cluster, then deploy the application to these 2 nodes.

Steps.

  • Use kubeadm init to create the master k8s cluster, then join node1 and node2 to the cluster.

  • In the master node, deploy the application with replications as 2.

  • After execute that, deployment is completed. You can execute command “kubectl get pods”, show the deployment.

    The application is deployed separately in the 2 nodes.

3. Understand the process

This is the whole process.

When you execute “kubectl run”, will call the API Server, then API Server notice the Controller Server to create the deployment resource. After that, Schedule service will arrange the tasks to the node1 and node2. In the node1 and node2, kubelet will create the pods according to the tasks. Kube-proxy will arrange the network config for these 2 nodes.