-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_dev.sh
More file actions
executable file
·36 lines (29 loc) · 880 Bytes
/
Copy pathsetup_dev.sh
File metadata and controls
executable file
·36 lines (29 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -euo pipefail
DIRNAME=$(dirname "$0")
cd "$DIRNAME"
minikube status || {
echo "minikube not ready"
exit 1
}
kubectl get secret circus-secrets || {
echo "secret doesn't exist, creating..."
kubectl create secret generic circus-secrets --from-env-file=.env
}
eval "$(minikube -p minikube docker-env)"
docker buildx bake
# Deploy infra + OTel collector via kustomize
kustomize build --enable-helm deploy/k8s/overlays/dev | kubectl apply -f-
# Create MinIO test bucket
echo "waiting to create test bucket..."
kubectl wait --for=condition=available deploy/minio --timeout=5m
kubectl exec -i deploy/minio -- sh <<EOF
mc alias set local http://localhost:9000 minioadmin minioadmin
mc mb --ignore-existing local/circus
EOF
# Deploy circus services via Helm
helm upgrade \
--install \
circus \
charts/circus \
-f charts/circus/values-dev.yaml