You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `kubeadm init` flags `--config` and `--certificate-key` cannot be mixed, therefore if you want
123
-
to use the [kubeadm configuration](https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2) you must add the `certificateKey` field in the appropriate config locations (under `InitConfiguration` and `JoinConfiguration: controlPlane`).
122
+
to use the [kubeadm configuration](https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2)
123
+
you must add the `certificateKey` field in the appropriate config locations
124
+
(under `InitConfiguration` and `JoinConfiguration: controlPlane`).
124
125
{{< /note >}}
125
126
126
127
{{< note >}}
@@ -132,34 +133,34 @@ option. Your cluster requirements may need a different configuration.
132
133
133
134
- The output looks similar to:
134
135
135
-
```sh
136
-
...
137
-
You can now join any number of control-plane node by running the following command on each as a root:
- You can also specify a custom `--certificate-key` during `init` that can later be used by `join`.
158
159
To generate such a key you can use the following command:
159
160
160
-
```sh
161
-
kubeadm alpha certs certificate-key
162
-
```
161
+
```sh
162
+
kubeadm alpha certs certificate-key
163
+
```
163
164
164
165
{{< note >}}
165
166
The `kubeadm-certs` Secret and decryption key expire after two hours.
@@ -170,7 +171,8 @@ Then you can join any number of worker nodes by running the following on each as
170
171
{{< /caution >}}
171
172
172
173
1. Apply the CNI plugin of your choice:
173
-
[Follow these instructions](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network) to install the CNI provider. Make sure the configuration corresponds to the Pod CIDR specified in the kubeadm configuration file if applicable.
174
+
[Follow these instructions](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network)
175
+
to install the CNI provider. Make sure the configuration corresponds to the Pod CIDR specified in the kubeadm configuration file if applicable.
174
176
175
177
In this example we are using Weave Net:
176
178
@@ -203,7 +205,7 @@ For each additional control plane node you should:
203
205
204
206
- The `--control-plane` flag tells `kubeadm join` to create a new control plane.
205
207
- The `--certificate-key ...` will cause the control plane certificates to be downloaded
206
-
from the `kubeadm-certs` Secret in the cluster and be decrypted using the given key.
208
+
from the `kubeadm-certs` Secret in the cluster and be decrypted using the given key.
0 commit comments