add influxdb

This commit is contained in:
auricom
2020-12-04 10:11:30 +01:00
parent 6863086a50
commit f6747120c0
2 changed files with 68 additions and 0 deletions

View File

@@ -78,3 +78,13 @@ spec:
interval: 10m
url: https://kubernetes-charts.banzaicloud.com
timeout: 3m
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: influxdata-charts
namespace: flux-system
spec:
interval: 10m
url: https://helm.influxdata.com/
timeout: 3m

View File

@@ -0,0 +1,58 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: influxdb
namespace: monitoring
spec:
interval: 5m
chart:
spec:
chart: influxdb
version: 4.8.10
sourceRef:
kind: HelmRepository
name: influxdata-charts
namespace: flux-system
interval: 5m
values:
service:
type: LoadBalancer
loadBalancerIP: 192.168.9.205
persistence:
enabled: true
size: 30Gi
storageClass: "longhorn"
livenessProbe:
timeoutSeconds: 10
readinessProbe:
timeoutSeconds: 10
startupProbe:
enabled: true
failureThreshold: 6
periodSeconds: 5
config:
http:
flux-enabled: true
opentsdb:
enabled: true
graphite:
enabled: true
database: "graphite"
#retention-policy: ""
bind-address: ":2003"
protocol: "tcp"
consistency-level: "one"
tls: true
initScripts:
enabled: true
scripts:
init.iql: |-
CREATE DATABASE "pfsense" WITH DURATION 90d;
CREATE DATABASE "rpi-os" WITH DURATION 90d;
resources:
requests:
memory: 2Gi
cpu: 100m
limits:
memory: 4Gi