You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the question Create the pod that was just described using YAML
When you create the pod.yaml file with kubectl run nginx --image=nginx --restart=Never --dry-run=client -n mynamespace -o yaml > pod.yaml
The resulting yaml file will have the namespace listed in it ie
For the question
Create the pod that was just described using YAML
When you create the
pod.yaml
file withkubectl run nginx --image=nginx --restart=Never --dry-run=client -n mynamespace -o yaml > pod.yaml
The resulting yaml file will have the namespace listed in it ie
So, there's no need to specify the
namespace
when creating the pod withkubectl create -f pod.yaml
The text was updated successfully, but these errors were encountered: