feat(operators): add Victoria Metrics operator

This commit is contained in:
David Landry 2024-09-08 13:41:29 -04:00
parent f85a269f38
commit df138d257f
4 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/VictoriaMetrics/operator/config/base?ref=v0.47.3
images:
- name: manager
newName: victoriametrics/operator
newTag: v0.47.3

View file

@ -0,0 +1,11 @@
{
"appName": "victoriametrics",
"userGivenName": "victoriametrics",
"destNamespace": "monitoring-system",
"destServer": "https://kubernetes.default.svc",
"srcPath": "apps/victoriametrics/overlays/system",
"srcRepoURL": "ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View file

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
namespace: monitoring-system
patches:
- manager.patch.yaml

View file

@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: vm-operator
name: vm-operator
spec:
template:
spec:
containers:
- name: manager
env:
- name: VM_ENABLEDPROMETHEUSCONVERTER_PODMONITOR
value: "false"
- name: VM_ENABLEDPROMETHEUSCONVERTER_SERVICESCRAPE
value: "false"
- name: VM_ENABLEDPROMETHEUSCONVERTER_PROMETHEUSRULE
value: "false"
- name: VM_ENABLEDPROMETHEUSCONVERTER_PROBE
value: "false"
- name: VM_ENABLEDPROMETHEUSCONVERTER_ALERTMANAGERCONFIG
value: "false"