Run Pods

Run Pods #

On the control plane node (master node), run the following command to create a Deployment.

kubectl create deployment nginx --image=nginx:latest

Run the following command to check the status of the Pods.

kubectl get pods -o wide

Once the status changes to “Running,” the Pod has successfully started, and you should also see its IP address.

From each of the three servers, try pinging and using wget to access this IP.

ping -c 2 <POD_IP>
wget <POD_IP>

If you can ping successfully and wget retrieves the index.html file, it means the network is functioning correctly.

Congratulations! A basic Kubernetes setup is now complete.

If you’d like to proceed with installing network plugins, feel free to continue reading Install and Setup Flannel

comments powered by Disqus