add victoria metrics operator
This commit is contained in:
parent
599842790d
commit
57bb6768ab
4 changed files with 70 additions and 1 deletions
|
@ -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
|
||||
|
|
20
kubernetes/apps/observability/victoria-metrics/ks.yaml
Normal file
20
kubernetes/apps/observability/victoria-metrics/ks.yaml
Normal 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
|
|
@ -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
|
10
kubernetes/flux/repositories/helm/victoria-metrics.yaml
Normal file
10
kubernetes/flux/repositories/helm/victoria-metrics.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: victoria-metrics
|
||||
spec:
|
||||
interval: 30m
|
||||
url: https://victoriametrics.github.io/helm-charts/
|
||||
timeout: 3m
|
Loading…
Reference in a new issue