Skip to content

Commit

Permalink
Revert QUICKSTART unreleased https changes
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti committed Nov 20, 2023
1 parent 126a1d7 commit 350a912
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc/QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 350a912

Please sign in to comment.