Skip to content

Commit

Permalink
more traefik fixed for production --no-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jan 18, 2018
1 parent a592dad commit 3861daa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion environments/production/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ global:
googleProjectId: midbarrn
projectName: midburn
enableRootChart: true
backupsBucketName: midburn-k8s-backups

traefik:
enabled: true
Expand All @@ -18,6 +19,8 @@ traefik:
main = "production.midburn.org"
[[acme.domains]]
main = "volunteers.spark.midburn.org"
# [[acme.domains]]
# main = "profiles.staging.midburn.org"
acmeEmail: [email protected]
dnsProvider: route53
AWS_ACCESS_KEY_ID: AKIAIJUE2QVTBJAN7INQ
Expand All @@ -40,7 +43,6 @@ traefik:
spark:
nodeEnv: production
enableSlackNotification: true

serverUrl: https://spark.midburn.org/

# DB
Expand Down
2 changes: 1 addition & 1 deletion templates/traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3861daa

Please sign in to comment.