docs-v2/static/downloads/influxdb-k8-minikube.yaml

58 lines
1.1 KiB
YAML
Raw Normal View History

---
apiVersion: v1
kind: Namespace
metadata:
name: influxdb
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: influxdb
name: influxdb
namespace: influxdb
spec:
replicas: 1
selector:
matchLabels:
app: influxdb
serviceName: influxdb
template:
metadata:
labels:
app: influxdb
spec:
containers:
- image: influxdb:2.0.6
name: influxdb
ports:
2020-09-04 18:26:51 +00:00
- containerPort: 8086
name: influxdb
volumeMounts:
- mountPath: /var/lib/influxdb2
name: data
volumeClaimTemplates:
- metadata:
name: data
namespace: influxdb
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10G
---
apiVersion: v1
kind: Service
metadata:
name: influxdb
namespace: influxdb
spec:
ports:
- name: influxdb
2020-09-04 18:26:51 +00:00
port: 8086
targetPort: 8086
selector:
app: influxdb
type: ClusterIP