41 lines
1.6 KiB
Makefile
41 lines
1.6 KiB
Makefile
set dotenv-load
|
|
|
|
default:
|
|
@just --choose
|
|
|
|
setup: kind-create sealed-secrets-install argo-install
|
|
|
|
teardown: kind-delete
|
|
|
|
kind-create:
|
|
kind create cluster --name learn-helm --config kind-config.yaml
|
|
|
|
kind-delete:
|
|
kind delete cluster --name learn-helm
|
|
|
|
sealed-secrets-install:
|
|
kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.19.4/controller.yaml
|
|
|
|
sealed-secretes-backup:
|
|
kubectl get secret -n kube-system -l sealedsecrets.bitnami.com/sealed-secrets-key -o yaml > private/sealed-secrets-key.yaml
|
|
|
|
seal-openweathermap-api-key:
|
|
kubectl create secret generic openweathermap-api-key --from-literal=openweathermap-api-key=${OPENWEATHERMAP_API_KEY} --dry-run=client -o yaml > private/openweathermap-api-key.yaml
|
|
kubeseal --namespace temperature-cronjob-helm --format=yaml < private/openweathermap-api-key.yaml > temperature-cronjob/templates/sealed-openweathermap-api-key.yaml
|
|
kubeseal --namespace temperature-cronjob-manifest --format=yaml < private/openweathermap-api-key.yaml > temperature-cronjob-manifest/sealed-openweathermap-api-key.yaml
|
|
|
|
argo-install:
|
|
kubectl create namespace argocd
|
|
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
|
kubectl get pods -n argocd
|
|
kubectl apply -f argo
|
|
|
|
argo-forward:
|
|
kubectl port-forward svc/argocd-server -n argocd 8080:443
|
|
|
|
argo-password:
|
|
kubectl -n argocd get secret argocd-initial-admin-secret \
|
|
-o jsonpath="{.data.password}" | base64 -d; echo
|
|
|
|
datasette-forward:
|
|
kubectl port-forward svc/datasette -n default 8001:80
|