File tree 1 file changed +15
-1
lines changed 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,21 @@ provision:
97
97
kubeadm config images list
98
98
kubeadm config images pull --cri-socket=unix:///run/containerd/containerd.sock
99
99
# Initializing your control-plane node
100
- kubeadm init --cri-socket=unix:///run/containerd/containerd.sock --pod-network-cidr=10.244.0.0/16 --apiserver-cert-extra-sans 127.0.0.1
100
+ cat <<EOF >kubeadm-config.yaml
101
+ kind: InitConfiguration
102
+ apiVersion: kubeadm.k8s.io/v1beta3
103
+ nodeRegistration:
104
+ criSocket: unix:///run/containerd/containerd.sock
105
+ ---
106
+ kind: ClusterConfiguration
107
+ apiVersion: kubeadm.k8s.io/v1beta3
108
+ apiServer:
109
+ certSANs: # --apiserver-cert-extra-sans
110
+ - "127.0.0.1"
111
+ networking:
112
+ podSubnet: "10.244.0.0/16" # --pod-network-cidr
113
+ EOF
114
+ kubeadm init --config kubeadm-config.yaml
101
115
# Installing a Pod network add-on
102
116
kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/v0.14.0/Documentation/kube-flannel.yml
103
117
# Control plane node isolation
You can’t perform that action at this time.
0 commit comments