Answers for "kubectl get pod yaml"

1

kubernetes get inside pod

kubectl exec -it <pod-name> -- sh
Posted by: Guest on March-09-2021
2

kubectl get pod by node

kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>
Posted by: Guest on September-04-2020
0

kubectl create pod

kubectl run <pod-name> --image=<image> --restart=Never
Posted by: Guest on August-19-2020
0

kubectl get yaml for deployment

kubectl -n <namespace> get <resource type> <resource Name> -o yaml

##example (will display the yaml on your terminal)###

kubectl -n hrservices get deployment payroll-deployment -o yaml

##example (will save the yaml to a file in current directory)###

kubectl -n hrservices get deployment payroll-deployment -o yaml > payroll.yaml
Posted by: Guest on July-06-2021

Browse Popular Code Answers by Language