Skip to content

Commit

Permalink
Expose influxdb backup endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
d-mo committed Nov 6, 2018
1 parent 600991f commit 9d163c5
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api
Submodule api updated 1 files
+1 −1 src/mist/api/tasks.py
14 changes: 14 additions & 0 deletions chart/templates/influxdb-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: influxdb-configmap
data:
influxdb.conf: |+
bind-addr = "0.0.0.0:8088"
[meta]
dir = "/var/lib/influxdb/meta"
[data]
dir = "/var/lib/influxdb/data"
engine = "tsm1"
wal-dir = "/var/lib/influxdb/wal"
6 changes: 6 additions & 0 deletions chart/templates/influxdb-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ spec:
memory: 200Mi
cpu: 1000m
volumeMounts:
- name: influxdb-config
mountPath: /etc/influxdb/influxdb.conf
subPath: influxdb.conf
- mountPath: /var/lib/influxdb
name: influxdb
volumes:
- name: influxdb-config
configMap:
name: influxdb-configmap
- name: influxdb
persistentVolumeClaim:
claimName: influxdb
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ services:
gocky:
volumes:
- ./docker/gocky:/etc/gocky

influxdb:
volumes:
- ./docker/influxdb:/etc/influxdb
9 changes: 9 additions & 0 deletions docker/influxdb/influxdb.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bind-addr = "0.0.0.0:8088"

[meta]
dir = "/var/lib/influxdb/meta"

[data]
dir = "/var/lib/influxdb/data"
engine = "tsm1"
wal-dir = "/var/lib/influxdb/wal"

0 comments on commit 9d163c5

Please sign in to comment.