kubeadm: fix wrong config example for customization with patches
The patches sub-structure is top level and not under nodeRegistration.
This commit is contained in:
@@ -144,9 +144,8 @@ You can pass this file to `kubeadm init` with `--config <YOUR CONFIG YAML>`:
|
|||||||
```yaml
|
```yaml
|
||||||
apiVersion: kubeadm.k8s.io/v1beta3
|
apiVersion: kubeadm.k8s.io/v1beta3
|
||||||
kind: InitConfiguration
|
kind: InitConfiguration
|
||||||
nodeRegistration:
|
patches:
|
||||||
patches:
|
directory: /home/user/somedir
|
||||||
directory: /home/user/somedir
|
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< note >}}
|
{{< note >}}
|
||||||
@@ -159,9 +158,8 @@ You can pass this file to `kubeadm join` with `--config <YOUR CONFIG YAML>`:
|
|||||||
```yaml
|
```yaml
|
||||||
apiVersion: kubeadm.k8s.io/v1beta3
|
apiVersion: kubeadm.k8s.io/v1beta3
|
||||||
kind: JoinConfiguration
|
kind: JoinConfiguration
|
||||||
nodeRegistration:
|
patches:
|
||||||
patches:
|
directory: /home/user/somedir
|
||||||
directory: /home/user/somedir
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The directory must contain files named `target[suffix][+patchtype].extension`.
|
The directory must contain files named `target[suffix][+patchtype].extension`.
|
||||||
|
|||||||
Reference in New Issue
Block a user