Compare commits

...

3 commits

Author SHA1 Message Date
d5b2a38669 Update dashboard VolSync Dashboard ( 1 → 3 ) 2024-10-28 02:32:58 +00:00
7ece80ef26
correct path 2024-10-27 21:21:20 -05:00
dd721302ee
add influxdb 2024-10-27 21:18:27 -05:00
8 changed files with 120 additions and 1 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/database/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
- ./dragonfly/ks.yaml
- ./emqx/ks.yaml
- ./influxdb/ks.yaml

View file

@ -191,7 +191,7 @@ spec:
volsync:
# removate: depName="VolSync Dashboard"
gnetId: 21356
revision: 1
revision: 3
datasource:
- { name: DS_PROMETHEUS, value: Prometheus }
- { name: VAR_REPLICATIONDESTNAME, value: .*-dst }

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
- hashicorp.yaml
- hetzner.yaml
- influxdata.yaml
- ingress-nginx.yaml
- intel.yaml
- jetstack.yaml