You can start a pod temporarily for testing by using kubectl command as follows:
kubectl run <name> --image=<image> --restart=Never
With above command a temporay pod with specified name and image will be deployed. The pod will not start once you delete the pod since restart is specified as "Never"
For e.g. to start nginx pod using nginx image in Oracle container registry, your command will look as follows:
kubectl run nginx --image=container-registry.oracle.com/olcne/nginx:1.17.7 --restart=Never
Keywords:
temporarily starting running pod pods test testing without deployment deployments yaml file files pull pulliing
No comments:
Post a Comment