Kubernetes

Deploy a pod called "my-pod" using the nginx:alpine image

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

kubectl run my-pod --image=nginx:alpine

If you are a Kubernetes beginner you should know that this is not a common way to run Pods. The common way is to run a Deployment which in turn runs Pod(s).

In addition, Pods and/or Deployments are usually defined in files rather than executed directly using only the CLI arguments.