From 9e9ab30e9bb7e350dcd6a78670462260863da27d Mon Sep 17 00:00:00 2001 From: Brendon Lloyd <blloyd@revacomm.com> Date: Mon, 3 Oct 2022 16:05:54 +0000 Subject: [PATCH] Add /etc/hosts file entries for other apps and keycloak's NodeHosts entry in coredns (technically this is a doc update) --- docs/assets/scripts/developer/k3d-dev.sh | 7 +++++-- docs/developer/aws-k3d-script.md | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/assets/scripts/developer/k3d-dev.sh b/docs/assets/scripts/developer/k3d-dev.sh index 19bf7da388..0b966bdcba 100755 --- a/docs/assets/scripts/developer/k3d-dev.sh +++ b/docs/assets/scripts/developer/k3d-dev.sh @@ -469,9 +469,12 @@ if [[ "$METAL_LB" == true ]]; then # fix /etc/hosts for new cluster sudo sed -i '/bigbang.dev/d' /etc/hosts sudo bash -c "echo '## begin bigbang.dev section' >> /etc/hosts" - sudo bash -c "echo 172.20.1.240 keycloak.bigbang.dev >> /etc/hosts" - sudo bash -c "echo 172.20.1.241 gitlab.bigbang.dev >> /etc/hosts" + sudo bash -c "echo 172.20.1.240 keycloak.bigbang.dev vault.bigbang.dev >> /etc/hosts" + sudo bash -c "echo 172.20.1.241 anchore-api.bigbang.dev anchore.bigbang.dev argocd.bigbang.dev gitlab.bigbang.dev registry.bigbang.dev tracing.bigbang.dev kiali.bigbang.dev kibana.bigbang.dev chat.bigbang.dev minio.bigbang.dev minio-api.bigbang.dev alertmanager.bigbang.dev grafana.bigbang.dev prometheus.bigbang.dev nexus.bigbang.dev sonarqube.bigbang.dev tempo.bigbang.dev twistlock.bigbang.dev >> /etc/hosts" sudo bash -c "echo '## end bigbang.dev section' >> /etc/hosts" + # run kubectl to add keycloak and vault's hostname/IP to the configmap for coredns, restart coredns + kubectl get configmap -n kube-system coredns -o yaml | sed '/^ 172.20.0.1 host.k3d.internal$/a\ \ \ \ 172.20.1.240 keycloak.bigbang.dev vault.bigbang.dev' | kubectl apply -f - + kubectl delete pod -n kube-system -l k8s-app=kube-dns ENDSSH fi diff --git a/docs/developer/aws-k3d-script.md b/docs/developer/aws-k3d-script.md index 2f09e4905d..af3f7bf859 100644 --- a/docs/developer/aws-k3d-script.md +++ b/docs/developer/aws-k3d-script.md @@ -2,7 +2,7 @@ > NOTE: This script does not does not install Flux or deploy Big Bang. You must handle those deployments after your k3d dev cluster is ready. -The instance will automatically terminate in the middle of the night at 08:00 UTC. +The instance will automatically terminate 8 hours after creation. ## Install and Configure Dependencies -- GitLab