kubeadm/init-join.md: add note about using "skipPhases" from config

Since 1.22 it will be possible to skip phases using the configuration
file. Add note about that in the relevant sections of the kubeadm
init and join reference pages.
This commit is contained in:
Lubomir I. Ivanov 2021-07-02 02:50:18 +03:00
parent f288fc6976
commit 3437d0185c
2 changed files with 8 additions and 0 deletions

View File

@ -104,6 +104,10 @@ sudo kubeadm init --skip-phases=control-plane,etcd --config=configfile.yaml
What this example would do is write the manifest files for the control plane and etcd in `/etc/kubernetes/manifests` based on the configuration in `configfile.yaml`. This allows you to modify the files and then skip these phases using `--skip-phases`. By calling the last command you will create a control plane node with the custom manifest files.
{{< feature-state for_k8s_version="v1.22" state="beta" >}}
Alternatively, you can use the `skipPhases` field under `InitConfiguration`.
### Using kubeadm init with a configuration file {#config-file}
{{< caution >}}

View File

@ -66,6 +66,10 @@ For example:
sudo kubeadm join --skip-phases=preflight --config=config.yaml
```
{{< feature-state for_k8s_version="v1.22" state="beta" >}}
Alternatively, you can use the `skipPhases` field in `JoinConfiguration`.
### Discovering what cluster CA to trust
The kubeadm discovery has several options, each with security tradeoffs.