Thursday, September 24, 2020

How to Deploy a Kubernetes Pod in vSphere

 What is a Kubernetes Pod?

A Pod is a Kubernetes structure that is used as a wrapper for one or multiple containers. Kubernetes manages pods rather than the containers directly.

1. Use kubectl to login and access your namespace. Create a yaml file like the one shown here. 


2. Use the kubectl apply command and point to the yaml file. 


3. Verify that the pod was created in the namespace.


4. Use the kubectl describe deployment command to learn about the pod created.



5. Modify the yaml file to scale the pod from one to three. Run the apply command.


6. Verify that there are three pods now.



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.