From 2295e0c1e2c5883f2f120432989c3c6407694e61 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 9 Dec 2021 19:17:56 +0200 Subject: [PATCH] kubeadm: fix wrong config example for customization with patches The patches sub-structure is top level and not under nodeRegistration. --- .../tools/kubeadm/control-plane-flags.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/content/en/docs/setup/production-environment/tools/kubeadm/control-plane-flags.md b/content/en/docs/setup/production-environment/tools/kubeadm/control-plane-flags.md index ff1fedb9c0..a4c2526572 100644 --- a/content/en/docs/setup/production-environment/tools/kubeadm/control-plane-flags.md +++ b/content/en/docs/setup/production-environment/tools/kubeadm/control-plane-flags.md @@ -144,9 +144,8 @@ You can pass this file to `kubeadm init` with `--config `: ```yaml apiVersion: kubeadm.k8s.io/v1beta3 kind: InitConfiguration -nodeRegistration: - patches: - directory: /home/user/somedir +patches: + directory: /home/user/somedir ``` {{< note >}} @@ -159,9 +158,8 @@ You can pass this file to `kubeadm join` with `--config `: ```yaml apiVersion: kubeadm.k8s.io/v1beta3 kind: JoinConfiguration -nodeRegistration: - patches: - directory: /home/user/somedir +patches: + directory: /home/user/somedir ``` The directory must contain files named `target[suffix][+patchtype].extension`.