Merge pull request #270 from jpetazzo/kubectl-create-namespace

Show an easier way to create namespaces
This commit is contained in:
Bridget Kromhout
2018-06-02 17:12:38 +02:00
committed by GitHub

View File

@@ -40,7 +40,12 @@
## Creating namespaces
- We can create namespaces with a very minimal YAML, e.g.:
- Creating a namespace is done with the `kubectl create namespace` command:
```bash
kubectl create namespace blue
```
- We can also get fancy and use a very minimal YAML snippet, e.g.:
```bash
kubectl apply -f- <<EOF
apiVersion: v1
@@ -50,6 +55,8 @@
EOF
```
- The two methods above are identical
- If we are using a tool like Helm, it will create namespaces automatically
---