File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
docs/tasks/administer-cluster Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -70,24 +70,24 @@ One pattern this organization could follow is to partition the Kubernetes cluste
70
70
71
71
Let's create two new namespaces to hold our work.
72
72
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:
74
74
75
- {{< codenew language="json " file="admin/namespace-dev.json " >}}
75
+ {{< codenew language="yaml " file="admin/namespace-dev.yaml " >}}
76
76
77
77
Create the ` development ` namespace using kubectl.
78
78
79
79
``` 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
81
81
```
82
82
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:
84
84
85
- {{< codenew language="json " file="admin/namespace-prod.json " >}}
85
+ {{< codenew language="yaml " file="admin/namespace-prod.yaml " >}}
86
86
87
87
And then let's create the ` production ` namespace using kubectl.
88
88
89
89
``` 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
91
91
```
92
92
93
93
To be sure things are right, let's list all of the namespaces in our cluster.
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Namespace
3
+ metadata :
4
+ name : development
5
+ labels :
6
+ name : development
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Namespace
3
+ metadata :
4
+ name : production
5
+ labels :
6
+ name : production
You can’t perform that action at this time.
0 commit comments