added persistency to influxdb
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-12-02 23:34:10 +01:00
parent ef69940f2f
commit 35c3643b1a

View File

@ -1,3 +1,16 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: influxdb-pvc
namespace: turbomemer
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 15Gi
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -17,8 +30,15 @@ spec:
labels: labels:
app: birb-latency-influxdb app: birb-latency-influxdb
spec: spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: influxdb-pvc
containers: containers:
- image: "influxdb:2.1" - image: "influxdb:2.1"
volumeMounts:
- name: data
mountPath: "/var/lib/influxdb2"
imagePullPolicy: Always imagePullPolicy: Always
name: birb-latency-influxdb name: birb-latency-influxdb
envFrom: envFrom: