services/srcs/influxdb/statefulset.yaml

29 lines
539 B
YAML
Raw Normal View History

2023-03-01 04:35:44 +01:00
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: influxdb
labels:
app: influxdb
spec:
replicas: 1
serviceName: influxdb
selector:
matchLabels:
app: influxdb
template:
metadata:
labels:
app: influxdb
spec:
containers:
- name: influxdb
image: influxdb
imagePullPolicy: Never
volumeMounts:
- name: influxdb
mountPath: /var/lib/influxdb
volumes:
- name: influxdb
persistentVolumeClaim:
claimName: influxdb