Kubernetes

How to create a pod and a service with one command?

Difficulty: unrated

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

Answer

kubectl run nginx --image=nginx --restart=Never --port 80 --expose