birb_latency_collector/k8s/influxdb.yaml

100 lines
1.9 KiB
YAML
Raw Normal View History

2021-12-02 23:34:10 +01:00
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: influxdb-pvc
namespace: turbomemer
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 15Gi
---
2021-11-17 23:07:46 +01:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: birb-latency-influxdb
2021-11-27 01:35:58 +01:00
namespace: turbomemer
2021-11-17 23:07:46 +01:00
labels:
app: birb-latency-influxdb
spec:
replicas: 1
selector:
matchLabels:
app: birb-latency-influxdb
strategy:
type: Recreate
template:
metadata:
labels:
app: birb-latency-influxdb
spec:
2021-12-02 23:34:10 +01:00
volumes:
- name: data
persistentVolumeClaim:
claimName: influxdb-pvc
2021-11-17 23:07:46 +01:00
containers:
- image: "influxdb:2.1"
2021-12-02 23:34:10 +01:00
volumeMounts:
- name: data
mountPath: "/var/lib/influxdb2"
2021-11-17 23:07:46 +01:00
imagePullPolicy: Always
name: birb-latency-influxdb
envFrom:
- configMapRef:
name: birb-latency-influxdb
ports:
- containerPort: 8086
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: birb-latency-influxdb
2021-11-27 01:38:18 +01:00
namespace: turbomemer
2021-11-17 23:07:46 +01:00
labels:
app: birb-latency-influxdb
spec:
ports:
- name: birb-latency-influxdb
port: 8086
targetPort: 8086
protocol: TCP
selector:
app: birb-latency-influxdb
type: ClusterIP
---
apiVersion: v1
2021-11-17 23:22:09 +01:00
kind: Service
metadata:
name: birb-latency-influxdb-pub
2021-11-27 01:38:18 +01:00
namespace: turbomemer
2021-11-17 23:22:09 +01:00
labels:
app: birb-latency-influxdb
spec:
ports:
- name: birb-latency-influxdb-pub
port: 8086
targetPort: 8086
protocol: TCP
selector:
app: birb-latency-influxdb
type: NodePort
---
apiVersion: v1
2021-11-17 23:07:46 +01:00
kind: ConfigMap
metadata:
name: birb-latency-influxdb
labels:
app: birb-latency-influxdb
2021-11-27 01:38:18 +01:00
namespace: turbomemer
2021-11-17 23:07:46 +01:00
data:
DOCKER_INFLUXDB_INIT_USERNAME: admin
DOCKER_INFLUXDB_INIT_PASSWORD: adminadmin
DOCKER_INFLUXDB_INIT_ORG: alma
DOCKER_INFLUXDB_INIT_BUCKET: alma
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: my-super-secret-auth-token