Skip to content

Commit 632bafa

Browse files
authored
Merge pull request #30836 from neolit123/1.24-fix-bug-kubeadm-patches-config
kubeadm: fix wrong config example for customization with patches
2 parents ec3ed1e + 2295e0c commit 632bafa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

content/en/docs/setup/production-environment/tools/kubeadm/control-plane-flags.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ You can pass this file to `kubeadm init` with `--config <YOUR CONFIG YAML>`:
144144
```yaml
145145
apiVersion: kubeadm.k8s.io/v1beta3
146146
kind: InitConfiguration
147-
nodeRegistration:
148-
patches:
149-
directory: /home/user/somedir
147+
patches:
148+
directory: /home/user/somedir
150149
```
151150

152151
{{< note >}}
@@ -159,9 +158,8 @@ You can pass this file to `kubeadm join` with `--config <YOUR CONFIG YAML>`:
159158
```yaml
160159
apiVersion: kubeadm.k8s.io/v1beta3
161160
kind: JoinConfiguration
162-
nodeRegistration:
163-
patches:
164-
directory: /home/user/somedir
161+
patches:
162+
directory: /home/user/somedir
165163
```
166164

167165
The directory must contain files named `target[suffix][+patchtype].extension`.

0 commit comments

Comments
 (0)