Skip to content

Commit 89a4542

Browse files
authored
Merge pull request #37529 from bishal7679/switch-json-manifest
For namespace walkthrough, switch example manifests to YAML
2 parents 1a2d59e + 18ae405 commit 89a4542

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

content/en/docs/tasks/administer-cluster/namespaces-walkthrough.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,24 @@ One pattern this organization could follow is to partition the Kubernetes cluste
7070

7171
Let's create two new namespaces to hold our work.
7272

73-
Use the file [`namespace-dev.json`](/examples/admin/namespace-dev.json) which describes a `development` namespace:
73+
Use the file [`namespace-dev.yaml`](/examples/admin/namespace-dev.yaml) which describes a `development` namespace:
7474

75-
{{< codenew language="json" file="admin/namespace-dev.json" >}}
75+
{{< codenew language="yaml" file="admin/namespace-dev.yaml" >}}
7676

7777
Create the `development` namespace using kubectl.
7878

7979
```shell
80-
kubectl create -f https://k8s.io/examples/admin/namespace-dev.json
80+
kubectl create -f https://k8s.io/examples/admin/namespace-dev.yaml
8181
```
8282

83-
Save the following contents into file [`namespace-prod.json`](/examples/admin/namespace-prod.json) which describes a `production` namespace:
83+
Save the following contents into file [`namespace-prod.yaml`](/examples/admin/namespace-prod.yaml) which describes a `production` namespace:
8484

85-
{{< codenew language="json" file="admin/namespace-prod.json" >}}
85+
{{< codenew language="yaml" file="admin/namespace-prod.yaml" >}}
8686

8787
And then let's create the `production` namespace using kubectl.
8888

8989
```shell
90-
kubectl create -f https://k8s.io/examples/admin/namespace-prod.json
90+
kubectl create -f https://k8s.io/examples/admin/namespace-prod.yaml
9191
```
9292

9393
To be sure things are right, let's list all of the namespaces in our cluster.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: development
5+
labels:
6+
name: development
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: production
5+
labels:
6+
name: production

0 commit comments

Comments
 (0)