nakata77fr
nakata77fr

Reputation: 33

Kubernetes how to deploy a pod created by configuration file?

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

Upvotes: 0

Views: 122

Answers (1)

Manish R
Manish R

Reputation: 2372

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

Upvotes: 1

Related Questions