Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a.core_concepts.md minor issue #156

Open
leifliddy opened this issue Nov 23, 2020 · 0 comments
Open

a.core_concepts.md minor issue #156

leifliddy opened this issue Nov 23, 2020 · 0 comments

Comments

@leifliddy
Copy link

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

apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    run: nginx
  name: nginx
  namespace: mynamespace
....

So, there's no need to specify the namespace when creating the pod with
kubectl create -f pod.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant