Skip to main content

k8s | Pod Creation | Basic

An article on a simple k8s pod creation using kubectl.

Updated 1 min readMarkdown
Part of seriesDevOps

TL;DR

This is a simple demonstration to create a pod using simple command and how to inspect them. I have kept it simple so any beginner can understand.

# Start a single pod from an image
kubectl run hello --image=nginx

# Gives the details of current running pods, running this command can give idea about the pod created by previous command
kubectl get po 

# You can check the logs for hello pod
kubectl logs hello

# You can even check the current default configuration that k8s does for simple run deployment through command
kubectl edit po hello

These commands will give you a little bit about starting a pod and how to inspect anything using logs and running status of the pod.

Thanks for reading till here ! 馃檹

No comments yet. Be the first to comment.