-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add step to manually update LB hieradata
- Loading branch information
1 parent
b263563
commit 86b47ef
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
+ | ||
|