-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.sh
executable file
·21 lines (15 loc) · 1007 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
export NAVARCOS_DOMAIN_SUFFIX=".$(kubectl get node navarcos-control-plane -o jsonpath='{.status.addresses[0].address}').nip.io"
envsubst < deploy/templates/backend-ingress-template.yaml > deploy/resources/backend-ingress.yaml
envsubst < deploy/templates/frontend-ingress-template.yaml > deploy/resources/frontend-ingress.yaml
envsubst < deploy/templates/frontend-env-template.yaml > deploy/resources/frontend-env.yaml
kubectl apply -f deploy/resources
NAVARCOS_CA=$(kubectl get secret navarcos-ca -n plancia -o jsonpath='{.data.ca\.crt}'|base64 -d)
echo "NAVARCOS CA:"
echo "${NAVARCOS_CA}"
KEYCLOAK_URL=$(kubectl get cm plancia-config -n plancia -o jsonpath='{.data.URLkeycloak}')
echo "Keycloak is reachable at: ${KEYCLOAK_URL}"
BE_URL=$(kubectl get cm plancia-config -n plancia -o jsonpath='{.data.URLplancia-be}')
echo "Backend is reachable at: ${BE_URL}"
FE_URL=$(kubectl get cm plancia-config -n plancia -o jsonpath='{.data.URLplancia-fe}')
echo "Plancia is reachable at: ${FE_URL}"