Skip to content

Commit 4a8cf5c

Browse files
updated kubeadm certificate page misleading example (#38258)
* updated kubeadm certificate page misleading example * Update content/en/docs/reference/setup-tools/kubeadm/kubeadm-init.md Co-authored-by: Lubomir I. Ivanov <[email protected]> * Update content/en/docs/reference/setup-tools/kubeadm/kubeadm-init.md Co-authored-by: Lubomir I. Ivanov <[email protected]> * removed extra lines Co-authored-by: Lubomir I. Ivanov <[email protected]>
1 parent a435457 commit 4a8cf5c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

content/en/docs/reference/setup-tools/kubeadm/kubeadm-init.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,13 @@ to download the certificates when additional control-plane nodes are joining, by
267267
The following phase command can be used to re-upload the certificates after expiration:
268268

269269
```shell
270-
kubeadm init phase upload-certs --upload-certs --certificate-key=SOME_VALUE --config=SOME_YAML_FILE
270+
kubeadm init phase upload-certs --upload-certs --config=SOME_YAML_FILE
271271
```
272+
{{< note >}}
273+
A predefined `certificateKey` can be provided in `InitConfiguration` when passing the [configuration file](https://kubernetes.io/docs/reference/config-api/kubeadm-config.v1beta3/) with `--config`.
274+
{{< /note >}}
272275

273-
If the flag `--certificate-key` is not passed to `kubeadm init` and
276+
If a predefined certificate key is not passed to `kubeadm init` and
274277
`kubeadm init phase upload-certs` a new key will be generated automatically.
275278

276279
The following command can be used to generate a new key on demand:

0 commit comments

Comments
 (0)