ArgoCD integration
In case you are using ArgoCD
controller you can easily version control your HealthChecks
and NotificationRules
with ArgoCD in Git
.
We will present two simple ArgoCD applications
that can keep the operator CRDs in sync with your GitOps operations.
HealthChecks ArgoCD app
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: healthchecks
namespace: argocd
spec:
project: cloudders
source:
repoURL: https://github.com/my-amazing-org/my-amazing-monitoring.git
targetRevision: HEAD
path: healthchecks
destination:
server: https://kubernetes.default.svc
namespace: cloudders
NotificationRules ArgoCD app
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: notificationrules
namespace: argocd
spec:
project: cloudders
source:
repoURL: https://github.com/my-amazing-org/my-amazing-monitoring.git
targetRevision: HEAD
path: notificationrules
destination:
server: https://kubernetes.default.svc
namespace: cloudders