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
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.
You can generate a `ClusterConfiguration` object with default values by running `kubeadm config print init-defaults` and saving the output to a file of your choice.
50
+
You can generate a `ClusterConfiguration` object with default values by running `kubeadm config print init-defaults`
51
+
and saving the output to a file of your choice.
31
52
{{< /note >}}
32
53
54
+
{{< note >}}
55
+
The `ClusterConfiguration` object is currently global in kubeadm clusters. This means that any flags that you add,
56
+
will apply to all instances of the same component on different nodes. To apply individual configuration per component
57
+
on different nodes you can use [patches](#patches).
58
+
{{< /note >}}
33
59
60
+
{{< note >}}
61
+
Duplicate flags (keys), or passing the same flag `--foo` multiple times, is currently not supported.
62
+
To workaround that you must use [patches](#patches).
63
+
{{< /note >}}
34
64
35
-
<!-- body -->
36
-
37
-
## APIServer flags
65
+
### APIServer flags
38
66
39
67
For details, see the [reference documentation for kube-apiserver](/docs/reference/command-line-tools-reference/kube-apiserver/).
To make things clearer, here is an example kubeadm [configuration file](https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2)`kubeadm-config.yaml` for the primary dual-stack control plane node.
48
+
To make things clearer, here is an example kubeadm [configuration file](https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3)`kubeadm-config.yaml` for the primary dual-stack control plane node.
49
49
50
50
```yaml
51
51
---
52
-
apiVersion: kubeadm.k8s.io/v1beta2
52
+
apiVersion: kubeadm.k8s.io/v1beta3
53
53
kind: ClusterConfiguration
54
54
featureGates:
55
55
IPv6DualStack: true
56
56
networking:
57
57
podSubnet: 10.244.0.0/16,2001:db8:42:0::/56
58
58
serviceSubnet: 10.96.0.0/16,2001:db8:42:1::/112
59
59
---
60
-
apiVersion: kubeadm.k8s.io/v1beta2
60
+
apiVersion: kubeadm.k8s.io/v1beta3
61
61
kind: InitConfiguration
62
62
localAPIEndpoint:
63
63
advertiseAddress: "10.100.0.1"
@@ -85,10 +85,10 @@ The `--apiserver-advertise-address` flag does not support dual-stack.
85
85
86
86
Before joining a node, make sure that the node has IPv6 routable network interface and allows IPv6 forwarding.
87
87
88
-
Here is an example kubeadm [configuration file](https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2) `kubeadm-config.yaml` for joining a worker node to the cluster.
88
+
Here is an example kubeadm [configuration file](https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3) `kubeadm-config.yaml` for joining a worker node to the cluster.
89
89
90
90
```yaml
91
-
apiVersion: kubeadm.k8s.io/v1beta2
91
+
apiVersion: kubeadm.k8s.io/v1beta3
92
92
kind: JoinConfiguration
93
93
discovery:
94
94
bootstrapToken:
@@ -98,9 +98,9 @@ nodeRegistration:
98
98
node-ip: 10.100.0.3,fd00:1:2:3::3
99
99
```
100
100
101
-
Also, here is an example kubeadm [configuration file](https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2) `kubeadm-config.yaml` for joining another control plane node to the cluster.
101
+
Also, here is an example kubeadm [configuration file](https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3) `kubeadm-config.yaml` for joining another control plane node to the cluster.
Enabling the dual-stack feature doesn't mean that you need to use dual-stack addressing.
127
+
Enabling the dual-stack feature doesn't mean that you need to use dual-stack addressing.
128
128
You can deploy a single-stack cluster that has the dual-stack networking feature enabled.
129
129
{{< /note >}}
130
130
@@ -134,10 +134,10 @@ In 1.21 the `IPv6DualStack` feature is Beta and the feature gate is defaulted to
134
134
kubeadm init --feature-gates IPv6DualStack=false
135
135
```
136
136
137
-
To make things more clear, here is an example kubeadm [configuration file](https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2) `kubeadm-config.yaml` for the single-stack control plane node.
137
+
To make things more clear, here is an example kubeadm [configuration file](https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3) `kubeadm-config.yaml` for the single-stack control plane node.
0 commit comments