|
83 | 83 | cat << EOF > $HOME/.cluster-api/clusterctl.yaml |
84 | 84 | providers: |
85 | 85 | - name: "elemental" |
86 | | - url: "https://github.com/rancher-sandbox/cluster-api-provider-elemental/releases/v0.0.1/infrastructure-components.yaml" |
| 86 | + url: "https://github.com/rancher-sandbox/cluster-api-provider-elemental/releases/v0.0.2/infrastructure-components.yaml" |
87 | 87 | type: "InfrastructureProvider" |
| 88 | + - name: "k3s" |
| 89 | + url: "https://github.com/cluster-api-provider-k3s/cluster-api-k3s/releases/v0.1.8/bootstrap-components.yaml" |
| 90 | + type: "BootstrapProvider" |
| 91 | + - name: "k3s" |
| 92 | + url: "https://github.com/cluster-api-provider-k3s/cluster-api-k3s/releases/v0.1.8/control-plane-components.yaml" |
| 93 | + type: "ControlPlaneProvider" |
88 | 94 | EOF |
89 | 95 | ``` |
90 | 96 |
|
91 | | -1. Install CAPI Core provider and the Elemental Infrastructure provider: |
92 | | -
|
93 | | - ```bash |
94 | | - clusterctl init --bootstrap "-" --control-plane "-" --infrastructure elemental:v0.0.1 |
95 | | - ``` |
96 | | -
|
97 | | -1. Install the **k3s** bootstrap and control plane providers: |
98 | | -
|
99 | | - **Note**: This is a workaround for the current [issue](https://github.com/cluster-api-provider-k3s/cluster-api-k3s/issues/55) using `clusterctl init`. |
| 97 | +1. Install CAPI Core provider, the k3s Control Plane and Bootstrap providers, and the Elemental Infrastructure provider: |
100 | 98 |
|
101 | 99 | ```bash |
102 | | - kubectl apply -f https://github.com/cluster-api-provider-k3s/cluster-api-k3s/releases/download/v0.1.7/bootstrap-components.yaml |
103 | | - kubectl apply -f https://github.com/cluster-api-provider-k3s/cluster-api-k3s/releases/download/v0.1.7/control-plane-components.yaml |
| 100 | + clusterctl init --bootstrap k3s:v0.1.8 --control-plane k3s:v0.1.8 --infrastructure elemental:v0.0.2 |
104 | 101 | ``` |
105 | 102 |
|
106 | 103 | 1. Expose the Elemental API server: |
|
135 | 132 |
|
136 | 133 | ```bash |
137 | 134 | CONTROL_PLANE_ENDPOINT_IP=192.168.122.100 clusterctl generate cluster \ |
138 | | - --infrastructure elemental:v0.0.1 \ |
| 135 | + --infrastructure elemental:v0.0.2 \ |
139 | 136 | --flavor k3s-single-node \ |
140 | 137 | --kubernetes-version v1.28.2 \ |
141 | 138 | elemental-cluster-k3s > $HOME/elemental-cluster-k3s.yaml |
@@ -176,7 +173,7 @@ For more information on how to configure and use the agent, please read the [doc |
176 | 173 | 1. Install the agent: |
177 | 174 |
|
178 | 175 | ```bash |
179 | | - curl -L https://github.com/rancher-sandbox/cluster-api-provider-elemental/releases/download/v0.0.1/elemental_agent_linux_amd64 -o elemental-agent |
| 176 | + curl -L https://github.com/rancher-sandbox/cluster-api-provider-elemental/releases/download/v0.0.2/elemental_agent_linux_amd64 -o elemental-agent |
180 | 177 | install -o root -g root -m 0755 elemental-agent /usr/local/sbin/elemental-agent |
181 | 178 | ``` |
182 | 179 |
|
@@ -247,23 +244,3 @@ The `k3s` components also need to be deleted. |
247 | 244 |
|
248 | 245 | hostnamectl set-hostname my-bare-metal-host |
249 | 246 | ``` |
250 | | -
|
251 | | -<!-- This part is not really working yet: https://github.com/cluster-api-provider-k3s/cluster-api-k3s/issues/55 --> |
252 | | -<!-- 1. Configure `clusterctl` to use the custom providers: |
253 | | -
|
254 | | - ```bash |
255 | | - mkdir -p $HOME/.cluster-api |
256 | | -
|
257 | | - cat << EOF > $HOME/.cluster-api/clusterctl.yaml |
258 | | - providers: |
259 | | - - name: "elemental" |
260 | | - url: "https://github.com/rancher-sandbox/cluster-api-provider-elemental/releases/v0.0.1/infrastructure-components.yaml" |
261 | | - type: "InfrastructureProvider" |
262 | | - - name: "k3s" |
263 | | - url: "https://github.com/cluster-api-provider-k3s/cluster-api-k3s/releases/v0.1.7/bootstrap-components.yaml" |
264 | | - type: "BootstrapProvider" |
265 | | - - name: "k3s" |
266 | | - url: "https://github.com/cluster-api-provider-k3s/cluster-api-k3s/releases/v0.1.7/control-plane-components.yaml" |
267 | | - type: "ControlPlaneProvider" |
268 | | - EOF |
269 | | - ``` --> |
0 commit comments