Last updated
Last updated
Lets now take a look to create a nginx pod using kubectl
.
Step 1: To deploy a docker container by creating a POD.
Step 2: To get the list of pods
Step 3: Run the command **kubectl describe pod <<podname>>
**look under the containers section.
Step 4: Create a pod definition YAML file and use it to create a POD or use the command kubectl run myapp-pod --image=nginx
.
Step 5: View the Manifest and the file would like something like this or you can modify the file as below. Some not important structure is removed from the original file.