How can you save a yaml definition of a Kubernetes pod with name pod1 in namespace mypods to a file and edit it using Nano editor?

Experience Level: Senior
Tags: Kubernetes

Answer

Run the following commands:

kubectl get pod pod1 -n mypods -o yaml > pod1.yaml
nano pod1.yaml

Comments

No Comments Yet.
Be the first to tell us what you think.
Kubernetes Certified Application Developer (CKAD) preparation
Kubernetes Certified Application Developer (CKAD) preparation

Are you learning Kubernetes ? Try our test we designed to help you progress faster.

Test yourself
Kubernetes
Kubernetes

Are you learning Kubernetes ? Try our test we designed to help you progress faster.

Test yourself