add influxdb

This commit is contained in:
Joseph Hanson 2024-10-27 21:18:27 -05:00
parent 278752fa4f
commit dd721302ee
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
7 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1,21 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: influxdb-gatus-ep
labels:
gatus.io/enabled: "true"
data:
config.yaml: |
endpoints:
- name: influxdb
group: infrastructure
url: tcp://influxdb.database.svc.cluster.local:8086
interval: 1m
ui:
hide-url: true
hide-hostname: true
conditions:
- "[CONNECTED] == true"
alerts:
- type: pushover

View file

@ -0,0 +1,54 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app influxdb
spec:
interval: 30m
chart:
spec:
chart: influxdb2
version: 2.1.2
sourceRef:
kind: HelmRepository
name: influxdata
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
fullnameOverride: *app
securityContext:
allowPrivilegeEscalation: false
capabilities: { drop: ["ALL"] }
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 568
runAsGroup: 568
seccompProfile: { type: RuntimeDefault }
env:
- name: INFLUXD_REPORTING_DISABLED
value: "true"
persistence:
storageClass: ceph-block
size: 50Gi
volumes:
- name: tmp
emptyDir: {}
mountPoints:
- name: tmp
mountPath: /tmp
service:
port: 8086
ingress:
enabled: true
className: internal-nginx
hostname: "{{ Release.Name }}.jahanson.tech"

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./gatus.yaml
- ./helmrelease.yaml

View file

@ -0,0 +1,25 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app influxdb
namespace: flux-system
spec:
targetNamespace: database
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: rook-ceph-cluster
path: ./kubernetes/apps/observability/influxdb/app
prune: true
sourceRef:
kind: GitRepository
name: theshire
wait: false
interval: 30m
retryInterval: 1m
postBuild:
substitute:
APP: *app

View file

@ -9,3 +9,4 @@ resources:
- ./crunchy-postgres-operator/ks.yaml - ./crunchy-postgres-operator/ks.yaml
- ./dragonfly/ks.yaml - ./dragonfly/ks.yaml
- ./emqx/ks.yaml - ./emqx/ks.yaml
- ./influxdb/ks.yaml

View file

@ -0,0 +1,10 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/source.toolkit.fluxcd.io/helmrepository_v1.json
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: influxdata
namespace: flux-system
spec:
interval: 2h
url: https://helm.influxdata.com/

View file

@ -22,6 +22,7 @@ resources:
- grafana.yaml - grafana.yaml
- hashicorp.yaml - hashicorp.yaml
- hetzner.yaml - hetzner.yaml
- influxdata.yaml
- ingress-nginx.yaml - ingress-nginx.yaml
- intel.yaml - intel.yaml
- jetstack.yaml - jetstack.yaml