add victoria metrics operator

This commit is contained in:
Joseph Hanson 2024-10-04 15:55:56 -05:00
parent 599842790d
commit 57bb6768ab
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
4 changed files with 70 additions and 1 deletions

View file

@ -6,5 +6,6 @@ resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
# Flux-Kustomizations
- ./prometheus-operator-crds/ks.yaml
- ./gatus/ks.yaml
- ./prometheus-operator-crds/ks.yaml
- ./vicotria-metrics/ks.yaml

View file

@ -0,0 +1,20 @@
---
# 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 vm-operator
namespace: flux-system
spec:
targetNamespace: observability
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/apps/observability/victoria-metrics/operator
prune: true
sourceRef:
kind: GitRepository
name: theshire
wait: true
interval: 30m
retryInterval: 1m

View file

@ -0,0 +1,38 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: vm-operator
spec:
interval: 30m
chart:
spec:
chart: victoria-metrics-operator
version: 0.35.2
sourceRef:
kind: HelmRepository
name: victoria-metrics-charts
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
fullnameOverride: vm-operator
rbac:
pspEnabled: false
operator:
enable_converter_ownership: true
useCustomConfigReloader: true
resources:
limits:
cpu: 220m
memory: 320Mi
requests:
cpu: 80m
memory: 120Mi

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: victoria-metrics
spec:
interval: 30m
url: https://victoriametrics.github.io/helm-charts/
timeout: 3m