Skip to content

Commit

Permalink
Merge pull request #37 from mia-platform/feat/argocd_support
Browse files Browse the repository at this point in the history
[ monitoring ] ArgoCD Support
  • Loading branch information
verdienansein authored Nov 15, 2024
2 parents d88f0e8 + aa4e313 commit fe642ca
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/monitoring/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: monitoring
version: 2.2.5
version: 2.3.0
kubeVersion: ">= 1.20.0-0"
appVersion: v0.74.0
description: "A Kubernetes monitoring stack based on Prometheus Operator"
Expand Down
7 changes: 5 additions & 2 deletions charts/monitoring/templates/hooks/create-certificates.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "mia-monitoring.hooks.fullname" . | quote }}
name: create-certificates
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
helm.sh/hook: "pre-install,pre-upgrade"
helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded"
helm.sh/hook-weight: "-1"
labels:
{{- include "mia-monitoring.hooks.labels" . | nindent 4 }}
spec:
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 60
template:
metadata:
name: {{ include "mia-monitoring.hooks.fullname" . | quote }}
Expand Down
7 changes: 5 additions & 2 deletions charts/monitoring/templates/hooks/patch-webhooks.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "mia-monitoring.hooks.fullname" . | quote }}
name: patch-webhooks
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
helm.sh/hook: "post-install,post-upgrade"
helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded"
helm.sh/hook-weight: "-1"
labels:
{{- include "mia-monitoring.hooks.labels" . | nindent 4 }}
spec:
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 60
template:
metadata:
name: {{ include "mia-monitoring.hooks.fullname" . | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/monitoring/templates/hooks/rbac/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ metadata:
labels:
{{- include "mia-monitoring.hooks.labels" . | nindent 4 }}
annotations:
argocd.argoproj.io/hook: PreSync,PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
helm.sh/hook: "pre-install,pre-upgrade,post-install,post-upgrade"
helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded"
helm.sh/hook-weight: "-5"
rules:
- apiGroups:
- ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ metadata:
labels:
{{- include "mia-monitoring.hooks.labels" . | nindent 4 }}
annotations:
argocd.argoproj.io/hook: PreSync,PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
helm.sh/hook: "pre-install,pre-upgrade,post-install,post-upgrade"
helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded"
helm.sh/hook-weight: "-5"
roleRef:
apiGroup: "rbac.authorization.k8s.io"
kind: "ClusterRole"
Expand Down
3 changes: 3 additions & 0 deletions charts/monitoring/templates/hooks/rbac/psp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ metadata:
labels:
{{- include "mia-monitoring.hooks.labels" . | nindent 4 }}
annotations:
argocd.argoproj.io/hook: PreSync,PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
helm.sh/hook: "pre-install,pre-upgrade,post-install,post-upgrade"
helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded"
helm.sh/hook-weight: "-5"
seccomp.security.alpha.kubernetes.io/allowedProfileNames: "runtime/default"
seccomp.security.alpha.kubernetes.io/defaultProfileName: "runtime/default"
spec:
Expand Down
3 changes: 3 additions & 0 deletions charts/monitoring/templates/hooks/rbac/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ metadata:
labels:
{{- include "mia-monitoring.hooks.labels" . | nindent 4 }}
annotations:
argocd.argoproj.io/hook: PreSync,PostSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
helm.sh/hook: "pre-install,pre-upgrade,post-install,post-upgrade"
helm.sh/hook-delete-policy: "before-hook-creation,hook-succeeded"
helm.sh/hook-weight: "-5"
2 changes: 1 addition & 1 deletion charts/monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ kubeStateMetrics:
replicas: 1
image:
# Override the default Docker image name if you use a custom image or a repository mirror
name: "k8s.gcr.io/kube-state-metrics/kube-state-metrics"
name: "registry.k8s.io/kube-state-metrics/kube-state-metrics"
# Use this optional value to override the tag of the image to relase instead of relying on the Chart one
version: "v2.12.0"

Expand Down

0 comments on commit fe642ca

Please sign in to comment.