From 350a912db5a74f2d2c76fe571ded323fd9f8bca6 Mon Sep 17 00:00:00 2001 From: Andrea Mazzotti Date: Mon, 20 Nov 2023 12:58:17 +0100 Subject: [PATCH] Revert QUICKSTART unreleased https changes Signed-off-by: Andrea Mazzotti --- doc/QUICKSTART.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/QUICKSTART.md b/doc/QUICKSTART.md index 85c5364c..0d5c10ba 100644 --- a/doc/QUICKSTART.md +++ b/doc/QUICKSTART.md @@ -97,12 +97,16 @@ 1. Install CAPI Core provider, the k3s Control Plane and Bootstrap providers, and the Elemental Infrastructure provider: ```bash - ELEMENTAL_ENABLE_DEBUG="\"true\"" \ - ELEMENTAL_API_ENDPOINT="192.168.122.10.sslip.io" \ - ELEMENTAL_API_PROTOCOL="https" \ clusterctl init --bootstrap k3s:v0.1.8 --control-plane k3s:v0.1.8 --infrastructure elemental:v0.2.0 ``` +1. Set the `ELEMENTAL_API_URL` on the operator: + + ```bash + export ELEMENTAL_API_URL="http://192.168.122.10:30009" + kubectl -n elemental-system patch deployment elemental-controller-manager -p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","env":[{"name":"ELEMENTAL_API_URL","value":"'${ELEMENTAL_API_URL}'"}]}]}}}}' + ``` + 1. Expose the Elemental API server: ```bash @@ -142,9 +146,6 @@ 1. Create a new `ElementalRegistration`: - **Note**: We are manually setting the `spec.config.elemental.registration.uri`. - Normally this field is auto-generated by the controller based on the `ELEMENTAL_API_PORT` and `ELEMENTAL_API_ENDPOINT` environment variables. However, here we are using a non standard port `:30009` to expose the Elemental API, so we must pass this value to the agent. - ```bash cat << EOF | kubectl apply -f - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 @@ -159,14 +160,13 @@ - name: root passwd: root elemental: - registration: - uri: https://192.168.122.10.sslip.io:30009/elemental/v1/namespaces/default/registrations/my-registration agent: hostname: useExisting: false prefix: "m-" debug: true osPlugin: "/usr/lib/elemental/plugins/elemental.so" + insecureAllowHttp: true workDir: "/oem/elemental/agent" postInstall: reboot: true