From 636a2d5c87285638949e7b5524bf76c56fd50989 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Tue, 29 May 2018 05:53:12 -0500 Subject: [PATCH] Show an easier way to create namespaces We were using 'kubectl apply' with a YAML snppet. It's valid, but it's quite convoluted. Instead, let's use 'kubectl create namespace'. We can still mention the other method of course. --- slides/kube/namespaces.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/slides/kube/namespaces.md b/slides/kube/namespaces.md index 8d42536a..9993a0d9 100644 --- a/slides/kube/namespaces.md +++ b/slides/kube/namespaces.md @@ -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- <