Kubernetes how to deploy a pod created by configuration file?

10/11/2018

I create a pod by configuration file with a volume and privileged security.

How can I deploy this pod?

I try to deploy with kubectl run or deployment configuration file. it's created a new pod without my volume and security privileged.

Best regards, Daniel

-- nakata77fr
kubernetes

1 Answer

10/12/2018

Use these commands to create and verify

This will create the pod

   # kubectl create -f abc-pod.yml

This will list the running pods

   # kubectl get pods

This will show the details of that pod

   # kubectl describe pod <pod_name>

This will show the logs of pods

   # kubectl logs pod_name container_name
-- Manish R
Source: StackOverflow