-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdev-helm.sh
More file actions
executable file
·18 lines (15 loc) · 778 Bytes
/
Copy pathdev-helm.sh
File metadata and controls
executable file
·18 lines (15 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -euf -o pipefail
NAMESPACE="${RT_DEV_NAMESPACE:-rt-dev}"
RELEASE="${RT_DEV_RELEASE:-rt}"
kubectl create namespace "${NAMESPACE}" --dry-run=client -o yaml | kubectl apply -f -
kubectl -n "${NAMESPACE}" create secret generic "${RELEASE}-request-tracker-db-creds" \
--from-literal=dbname=rt \
--from-literal=username=rt \
--from-literal=password='rt' \
--dry-run=client -o yaml | kubectl apply -f -
helm upgrade --install "${RELEASE}" helm/ --namespace "${NAMESPACE}"
kubectl -n "${NAMESPACE}" rollout status "deployment/${RELEASE}-request-tracker-db" --timeout=180s
kubectl -n "${NAMESPACE}" apply -f k8s-jobs/db-init.yaml
kubectl -n "${NAMESPACE}" wait --for=condition=complete job/db-init-job --timeout=300s
kubectl -n "${NAMESPACE}" get pods