diff --git a/environments/production/values.yaml b/environments/production/values.yaml index 6eebd38..ed6ed53 100644 --- a/environments/production/values.yaml +++ b/environments/production/values.yaml @@ -8,6 +8,7 @@ global: googleProjectId: midbarrn projectName: midburn enableRootChart: true + backupsBucketName: midburn-k8s-backups traefik: enabled: true @@ -18,6 +19,8 @@ traefik: main = "production.midburn.org" [[acme.domains]] main = "volunteers.spark.midburn.org" +# [[acme.domains]] +# main = "profiles.staging.midburn.org" acmeEmail: ori@uumpa.com dnsProvider: route53 AWS_ACCESS_KEY_ID: AKIAIJUE2QVTBJAN7INQ @@ -40,7 +43,6 @@ traefik: spark: nodeEnv: production enableSlackNotification: true - serverUrl: https://spark.midburn.org/ # DB diff --git a/templates/traefik.yaml b/templates/traefik.yaml index ce0b30c..7bd5cd7 100644 --- a/templates/traefik.yaml +++ b/templates/traefik.yaml @@ -76,7 +76,7 @@ spec: while true; do HISTORY_BACKUP="gs://{{ .Values.global.backupsBucketName }}/{{ .Values.global.environmentName }}/traefik-acme/`date +%Y-%m-%d-%H-%M`/" echo "HISTORY_BACKUP=${HISTORY_BACKUP}" - ! gsutil -m rsync -x '^done|synced$' -r /traefik-acme/ gs://{{ .Values.global.backupsBucketName }}/{{ .Values.global.environmentName }}/traefik-acme/latest/ \ + ! gsutil -m rsync -x '^done|synced$' -r /traefik-acme/ "${LATEST_BACKUP}" \ && echo "failed to sync latest backup" && exit 1 ! gsutil -m rsync -x '^done|synced$' -r /traefik-acme/ "${HISTORY_BACKUP}" \ && echo "failed to sync ${HISTORY_BACKUP}" && exit 1