Add example Kubernetes manifest for InfluxDB

pull/675/head
pierwill 2019-12-17 14:24:08 -06:00
parent 1e5c371360
commit a552d4fdf1
1 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,57 @@
---
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: quay.io/influxdb/influxdb:2.0.0-alpha
name: influxdb
ports:
- containerPort: 9999
name: influxdb
volumeMounts:
- mountPath: /root/.influxdbv2
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
port: 9999
targetPort: 9999
selector:
app: influxdb
type: ClusterIP