|
69 | 69 | joinConfiguration: |
70 | 70 | controlPlane: {} |
71 | 71 | nodeRegistration: {} |
72 | | - ignition: |
73 | | - containerLinuxConfig: |
74 | | - additionalConfig: | |
75 | | - systemd: |
76 | | - units: |
77 | | - - name: cluster-api-init.service |
78 | | - enable: true |
79 | | - contents: |- |
80 | | - [Unit] |
81 | | - Description=Prepares the node for bootstrapping with cluster-api kubeadm |
82 | | - Before=kubeadm.service |
83 | | - After=network-online.target |
84 | | - Wants=network-online.target |
85 | | - [Service] |
86 | | - Type=oneshot |
87 | | - Restart=on-failure |
88 | | - RestartSec=5 |
89 | | - StartLimitBurst=0 |
90 | | - EnvironmentFile=/etc/environment |
91 | | - ExecStart=/var/lib/cluster-api-init/bootstrap.sh |
92 | | - [Install] |
93 | | - WantedBy=multi-user.target |
94 | | - files: |
95 | | - - path: /var/lib/cluster-api-init/bootstrap.sh |
96 | | - owner: "root:root" |
97 | | - permissions: "0744" |
98 | | - content: | |
99 | | - #!/usr/bin/env bash |
100 | | - set -eo pipefail |
101 | | - set +x |
102 | | -
|
103 | | - apt update |
104 | | - apt install conntrack |
105 | | -
|
106 | | - CNI_PLUGINS_VERSION="v1.3.0" |
107 | | - DEST="/opt/cni/bin" |
108 | | - mkdir -p "$DEST" |
109 | | - curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGINS_VERSION}/cni-plugins-linux-amd64-${CNI_PLUGINS_VERSION}.tgz" | tar -C "$DEST" -xz |
110 | | -
|
111 | | - RELEASE="v1.30.6" |
112 | | - cd /usr/local/bin |
113 | | - curl -L --remote-name-all https://dl.k8s.io/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl} |
114 | | - chmod +x {kubeadm,kubelet,kubectl} |
115 | | -
|
116 | | - RELEASE_VERSION="v0.16.2" |
117 | | - curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/krel/templates/latest/kubelet/kubelet.service" | sed "s:/usr/bin:/usr/local/bin:g" | tee /usr/lib/systemd/system/kubelet.service |
118 | | - mkdir -p /usr/lib/systemd/system/kubelet.service.d |
119 | | - curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/krel/templates/latest/kubeadm/10-kubeadm.conf" | sed "s:/usr/bin:/usr/local/bin:g" | tee /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf |
120 | | -
|
121 | | - systemctl enable kubelet.service |
122 | | - - path: /etc/containerd/config.toml |
123 | | - owner: "root:root" |
124 | | - permissions: "0644" |
125 | | - content: | |
126 | | - disabled_plugins = [] |
127 | 72 | --- |
128 | 73 | apiVersion: cluster.x-k8s.io/v1beta1 |
129 | 74 | kind: MachineDeployment |
@@ -170,58 +115,3 @@ spec: |
170 | 115 | controlPlaneEndpoint: 203.0.113.129:443 |
171 | 116 | joinConfiguration: |
172 | 117 | nodeRegistration: {} |
173 | | - ignition: |
174 | | - containerLinuxConfig: |
175 | | - additionalConfig: | |
176 | | - systemd: |
177 | | - units: |
178 | | - - name: cluster-api-init.service |
179 | | - enable: true |
180 | | - contents: |- |
181 | | - [Unit] |
182 | | - Description=Prepares the node for bootstrapping with cluster-api kubeadm |
183 | | - Before=kubeadm.service |
184 | | - After=network-online.target |
185 | | - Wants=network-online.target |
186 | | - [Service] |
187 | | - Type=oneshot |
188 | | - Restart=on-failure |
189 | | - RestartSec=5 |
190 | | - StartLimitBurst=0 |
191 | | - EnvironmentFile=/etc/environment |
192 | | - ExecStart=/var/lib/cluster-api-init/bootstrap.sh |
193 | | - [Install] |
194 | | - WantedBy=multi-user.target |
195 | | - files: |
196 | | - - path: /var/lib/cluster-api-init/bootstrap.sh |
197 | | - owner: "root:root" |
198 | | - permissions: "0744" |
199 | | - content: | |
200 | | - #!/usr/bin/env bash |
201 | | - set -eo pipefail |
202 | | - set +x |
203 | | -
|
204 | | - apt update |
205 | | - apt install conntrack |
206 | | -
|
207 | | - CNI_PLUGINS_VERSION="v1.3.0" |
208 | | - DEST="/opt/cni/bin" |
209 | | - mkdir -p "$DEST" |
210 | | - curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGINS_VERSION}/cni-plugins-linux-amd64-${CNI_PLUGINS_VERSION}.tgz" | tar -C "$DEST" -xz |
211 | | -
|
212 | | - RELEASE="v1.30.6" |
213 | | - cd /usr/local/bin |
214 | | - curl -L --remote-name-all https://dl.k8s.io/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl} |
215 | | - chmod +x {kubeadm,kubelet,kubectl} |
216 | | -
|
217 | | - RELEASE_VERSION="v0.16.2" |
218 | | - curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/krel/templates/latest/kubelet/kubelet.service" | sed "s:/usr/bin:/usr/local/bin:g" | tee /usr/lib/systemd/system/kubelet.service |
219 | | - mkdir -p /usr/lib/systemd/system/kubelet.service.d |
220 | | - curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/krel/templates/latest/kubeadm/10-kubeadm.conf" | sed "s:/usr/bin:/usr/local/bin:g" | tee /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf |
221 | | -
|
222 | | - systemctl enable kubelet.service |
223 | | - - path: /etc/containerd/config.toml |
224 | | - owner: "root:root" |
225 | | - permissions: "0644" |
226 | | - content: | |
227 | | - disabled_plugins = [] |
0 commit comments