aboutsummaryrefslogtreecommitdiff
path: root/srcs/influxdb
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/influxdb')
-rw-r--r--srcs/influxdb/influxdb.yaml66
1 files changed, 66 insertions, 0 deletions
diff --git a/srcs/influxdb/influxdb.yaml b/srcs/influxdb/influxdb.yaml
new file mode 100644
index 0000000..996f1e0
--- /dev/null
+++ b/srcs/influxdb/influxdb.yaml
@@ -0,0 +1,66 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: influxdb-deployment
+ labels:
+ app: influxdb
+spec:
+ selector:
+ matchLabels:
+ app: influxdb
+ replicas: 1
+ strategy:
+ rollingUpdate:
+ maxSurge: 1
+ template:
+ metadata:
+ labels:
+ app: influxdb
+ spec:
+ containers:
+ - image: cacharle-influxdb
+ imagePullPolicy: Never
+ name: cacharle-influxdb-container
+ ports:
+ - containerPort: 8086
+ volumeMounts:
+ - name: influxdb-volume
+ mountPath: /var/lib/influxdb
+ volumes:
+ - name: influxdb-volume
+ persistentVolumeClaim:
+ claimName: influxdb-volume
+
+---
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: influxdb-service
+ labels:
+ app: influxdb
+ annotations:
+ metallb.universe.tf/allow-shared-ip: shared
+spec:
+ type: ClusterIP
+ ports:
+ - name: influxdb
+ port: 8086
+ targetPort: 8086
+ selector:
+ app: influxdb
+
+---
+
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: influxdb-volume
+ labels:
+ app: influxdb
+spec:
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi