Running and Verifying the Kubernetes Cluster
After deploying the Kubernetes cluster, verify the cluster availability. This section uses the Nginx service as an example to describe the verification procedure.
Verifying the Deployment Result
- Create a file named nginx_deploy.yaml on the management node.
vi nginx_deploy.yaml
- Press i to enter the insert mode and add the following content to the nginx_deploy.yaml file:
apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 imagePullPolicy: IfNotPresent ports: - containerPort: 80 - Press Esc, type :wq!, and press Enter to save the file and exit.
- Deploy the pod nodes of Nginx.
kubectl create -f nginx_deploy.yaml
- View the new pod node of Nginx on the management node.
kubectl get pod --all-namespaces -o wide
If the value of READY is 1/1, the pod is running properly.

- Verify the Nginx availability on the compute01 node. 10.244.1.11 indicates the IP address of the new Nginx pod created in 5 on the compute01 node.
wget http://10.244.1.11/index.html
If the returned status code is 200 and the index.html file is successfully downloaded, Nginx is available. This indicates that the Kubernetes cluster has been successfully deployed.

Parent topic: Kubernetes Deployment Guide (CentOS & openEuler)