Commit 1be78024 authored by Manuel Hoffmann's avatar Manuel Hoffmann Committed by David McKay

Add rm operation after backup upload. Increase influxdb chart version.

parent b1765d03
apiVersion: v1 apiVersion: v1
name: influxdb name: influxdb
version: 4.8.9 version: 4.8.10
appVersion: 1.8.0 appVersion: 1.8.0
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
......
...@@ -76,6 +76,7 @@ spec: ...@@ -76,6 +76,7 @@ spec:
gcloud auth activate-service-account --key-file $KEY_FILE gcloud auth activate-service-account --key-file $KEY_FILE
fi fi
gsutil -m cp -r /backup/* "$DST_URL" gsutil -m cp -r /backup/* "$DST_URL"
rm -rf /backup/*
volumeMounts: volumeMounts:
- name: backup - name: backup
mountPath: /backup mountPath: /backup
...@@ -103,6 +104,7 @@ spec: ...@@ -103,6 +104,7 @@ spec:
- | - |
az storage container create --name "$DST_CONTAINER" az storage container create --name "$DST_CONTAINER"
az storage blob upload-batch --destination "$DST_CONTAINER" --destination-path "$DST_PATH" --source "$SRC_URL" az storage blob upload-batch --destination "$DST_CONTAINER" --destination-path "$DST_PATH" --source "$SRC_URL"
rm -rf /backup/*
volumeMounts: volumeMounts:
- name: backup - name: backup
mountPath: /backup mountPath: /backup
...@@ -130,6 +132,7 @@ spec: ...@@ -130,6 +132,7 @@ spec:
- '-c' - '-c'
- | - |
aws {{- if .Values.backup.s3.endpointUrl }} --endpoint-url={{ .Values.backup.s3.endpointUrl }} {{- end }} s3 cp --recursive "$SRC_URL" "$DST_URL" aws {{- if .Values.backup.s3.endpointUrl }} --endpoint-url={{ .Values.backup.s3.endpointUrl }} {{- end }} s3 cp --recursive "$SRC_URL" "$DST_URL"
rm -rf /backup/*
volumeMounts: volumeMounts:
- name: backup - name: backup
mountPath: /backup mountPath: /backup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment