Context on finalizers when creating namespaces
Minor explanation on `finalizers` when creating namespaces before pointing to the right documentation.
This commit is contained in:
committed by
Arnaldo de Moraes Pereira
parent
eca7853ffa
commit
a56804f417
@@ -103,17 +103,20 @@ metadata:
|
|||||||
name: <insert-namespace-name-here>
|
name: <insert-namespace-name-here>
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that the name of your namespace must be a DNS compatible label.
|
|
||||||
|
|
||||||
More information on the `finalizers` field can be found in the namespace [design doc](https://github.com/kubernetes/kubernetes/blob/{{page.githubbranch}}/docs/design/namespaces.md#finalizers).
|
|
||||||
|
|
||||||
Then run:
|
Then run:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl create -f ./my-namespace.yaml
|
$ kubectl create -f ./my-namespace.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Working in namespaces
|
Note that the name of your namespace must be a DNS compatible label.
|
||||||
|
|
||||||
|
There's an optional field `finalizers`, which allows observables to purge resources whenever the namespace is deleted. Keep in mind that if you specify a nonexistent finalizer, the namespace will be created but will get stuck in the `Terminating` state if the user tries to delete it.
|
||||||
|
|
||||||
|
More information on `finalizers` can be found in the namespace [design doc](https://github.com/kubernetes/kubernetes/blob/{{page.githubbranch}}/docs/design/namespaces.md#finalizers).
|
||||||
|
|
||||||
|
|
||||||
|
### Working in namespaces
|
||||||
|
|
||||||
See [Setting the namespace for a request](/docs/user-guide/namespaces/#setting-the-namespace-for-a-request)
|
See [Setting the namespace for a request](/docs/user-guide/namespaces/#setting-the-namespace-for-a-request)
|
||||||
and [Setting the namespace preference](/docs/user-guide/namespaces/#setting-the-namespace-preference).
|
and [Setting the namespace preference](/docs/user-guide/namespaces/#setting-the-namespace-preference).
|
||||||
|
|||||||
Reference in New Issue
Block a user