Add traefik installation to makefile to avoid depending on civo marketplace

This commit is contained in:
sid palas
2023-02-13 13:46:57 -05:00
parent ff4ee381c1
commit caeafd6195
5 changed files with 67 additions and 23 deletions

View File

@ -1,7 +1,12 @@
.PHONY: deploy-traefik
deploy-traefik:
-helm repo add traefik https://traefik.github.io/charts
helm upgrade --install -n traefik --create-namespace -f traefik-values traefik traefik/traefik
.PHONY: deploy-postgres
deploy-postgres:
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install db bitnami/postgresql --set auth.postgresPassword=foobarbaz
-helm repo add bitnami https://charts.bitnami.com/bitnami
helm upgrade --install db bitnami/postgresql --set auth.postgresPassword=foobarbaz
.PHONY: deploy-app
deploy-app:

View File

@ -0,0 +1,30 @@
# Taken from CIVO marketplace values
deployment:
kind: DaemonSet
rbac:
enabled: true
ports:
websecure:
tls:
enabled: true
podAnnotations:
prometheus.io/port: "8082"
prometheus.io/scrape: "true"
providers:
kubernetesIngress:
publishedService:
enabled: true
priorityClassName: "system-cluster-critical"
# Rancher didn't have the latest v2.9.6 image associate with the latest helm chart
# Using the default dockerhub traefik image instead
# image:
# name: "rancher/mirrored-library-traefik"
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"