2021-09-14 08:32:10 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2021-11-20 08:55:23 +01:00
|
|
|
set -euo pipefail
|
|
|
|
|
|
2021-09-14 08:32:10 +02:00
|
|
|
kind create cluster --config kind.yaml --wait 10m
|
|
|
|
|
|
|
|
|
|
kubectl create secret docker-registry gitlab \
|
|
|
|
|
--docker-server=registry.gitlab.com \
|
|
|
|
|
--docker-username=gitlab \
|
|
|
|
|
--docker-password="${GITLAB_TOKEN}" \
|
2023-04-10 22:30:16 +02:00
|
|
|
--docker-email=gitlab@unbound.se
|
2021-09-14 08:32:10 +02:00
|
|
|
|
|
|
|
|
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gitlab"}]}'
|
|
|
|
|
|
2023-04-10 22:30:16 +02:00
|
|
|
kubectl apply -k . || true
|
|
|
|
|
kubectl wait --for=condition=Ready pods --all -n cert-manager --timeout=5m
|
|
|
|
|
kubectl wait --for=condition=Ready pods --all -n external-secrets --timeout=5m
|
2021-09-14 08:32:10 +02:00
|
|
|
kubectl apply -k .
|
2021-10-01 17:50:01 +02:00
|
|
|
|
2022-11-17 10:00:25 +01:00
|
|
|
kubectl wait --for=condition=Ready pods --all --timeout=5m
|