1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
trz-sentry-demo-legacy/infra/Makefile
2023-09-26 21:43:36 +00:00

49 lines
1.6 KiB
Makefile

LONGHORN_VERSION = v1.1.1
helm-repos:
helm repo add sentry https://sentry-kubernetes.github.io/charts
helm repo update
install-ingress:
kubectl apply -f https://raw.githubusercontent.com/sikalabs/sikalabs-kubernetes-toolkit/master/k8s/ingress/ingress-traefik.yml
uninstall-ingress:
kubectl delete -f https://raw.githubusercontent.com/sikalabs/sikalabs-kubernetes-toolkit/master/k8s/ingress/ingress-traefik.yml
install-sentry:
kubectl create namespace sentry || true
helm upgrade --install \
sentry \
sentry/sentry \
-n sentry \
--set ingress.regexPathStyle=traefik \
--set ingress.enabled=true \
--set ingress.hostname=sentry.example.com
uninstall-sentry:
helm uninstall sentry
kubectl delete namespace sentry
install-longhorn:
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/$(LONGHORN_VERSION)/deploy/longhorn.yaml
uninstall-longhorn:
kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/$(LONGHORN_VERSION)/deploy/longhorn.yaml
do-make-longhorn-default-storageclass:
kubectl patch storageclass do-block-storage -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
kubectl patch storageclass longhorn -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
install-longhorn-ingress:
kubectl apply -f k8s/longhorn/ingress.yml
uninstall-longhorn-ingress:
kubectl delete -f k8s/longhorn/ingress.yml
install:
make helm-repos
make install-ingress
make install-longhorn && make install-longhorn-ingress
sleep 30
make do-make-longhorn-default-storageclass
make install-sentry