diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-28 15:13:08 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-28 16:09:37 +0100 |
| commit | 7de2bedaae3bd64894a497e31a44914d4c033531 (patch) | |
| tree | e6ffec98c0ea9bc92962823f205df73d00d0983b /srcs/influxdb/influxdb.yaml | |
| parent | 9331a07c32297a7aa68089d17f0c30e7c08bde13 (diff) | |
| download | ft_services-7de2bedaae3bd64894a497e31a44914d4c033531.tar.gz ft_services-7de2bedaae3bd64894a497e31a44914d4c033531.tar.bz2 ft_services-7de2bedaae3bd64894a497e31a44914d4c033531.zip | |
Added influx and grafana to kubernetes
Diffstat (limited to 'srcs/influxdb/influxdb.yaml')
| -rw-r--r-- | srcs/influxdb/influxdb.yaml | 66 |
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 |
