add influxdb
This commit is contained in:
parent
278752fa4f
commit
dd721302ee
7 changed files with 119 additions and 0 deletions
21
kubernetes/apps/database/influxdb/app/gatus.yaml
Normal file
21
kubernetes/apps/database/influxdb/app/gatus.yaml
Normal 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
|
54
kubernetes/apps/database/influxdb/app/helmrelease.yaml
Normal file
54
kubernetes/apps/database/influxdb/app/helmrelease.yaml
Normal 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"
|
7
kubernetes/apps/database/influxdb/app/kustomization.yaml
Normal file
7
kubernetes/apps/database/influxdb/app/kustomization.yaml
Normal 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
|
25
kubernetes/apps/database/influxdb/ks.yaml
Normal file
25
kubernetes/apps/database/influxdb/ks.yaml
Normal 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
|
|
@ -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
|
||||||
|
|
10
kubernetes/flux/repositories/helm/influxdata.yaml
Normal file
10
kubernetes/flux/repositories/helm/influxdata.yaml
Normal 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/
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue