Skip to content

Commit

Permalink
Add step to manually update LB hieradata
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyTetrahedron committed Nov 18, 2024
1 parent b263563 commit 86b47ef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/modules/ROOT/partials/install/bootstrap-nodes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,26 @@ done && echo -e "\nCilium config updated"
kubectl -n cilium rollout restart ds/cilium
----

ifeval::["{provider}" == "cloudscale"]
. Add Infra Node IPs to LB Hieradata
+
[source,bash]
----
git clone [email protected]:appuio/appuio_hieradata.git

pushd appuio_hieradata/lbaas

kubectl get node -l "node-role.kubernetes.io/infra" -oyaml | yq '.items[].status.addresses | filter(.type == "InternalIP") | map(.address)' > ips.yml

yq -i '."profile_openshift4_gateway::backends".router = load("ips.yml")' "${CLUSTER_ID}.yaml"

rm ips.yml

git commit -am "Add infra nodes as backends for ${CLUSTER_ID}."
git push
popd
----
endif::[]
ifeval::["{provider}" != "cloudscale"]
. Approve node certs
+
Expand Down

0 comments on commit 86b47ef

Please sign in to comment.