Add traefik installation to makefile to avoid depending on civo marketplace
This commit is contained in:
@ -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:
|
||||
|
||||
30
12-deploying-containers/kubernetes/traefik-values
Normal file
30
12-deploying-containers/kubernetes/traefik-values
Normal 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"
|
||||
Reference in New Issue
Block a user