Last active
January 14, 2026 14:05
-
-
Save thekoma/35d0a60039403c08959bab95393c29be to your computer and use it in GitHub Desktop.
checkmk argocd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: argoproj.io/v1alpha1 | |
| kind: Application | |
| metadata: | |
| name: checkmk | |
| namespace: argocd | |
| annotations: | |
| vault.security.banzaicloud.io/mutate: skip | |
| spec: | |
| project: default | |
| source: | |
| chart: application | |
| repoURL: https://stakater.github.io/stakater-charts | |
| targetRevision: 6.14.0 | |
| helm: | |
| releaseName: checkmk | |
| valuesObject: | |
| applicationName: checkmk | |
| deployment: | |
| replicas: 1 | |
| strategy: | |
| type: Recreate | |
| podSecurityContext: | |
| fsGroup: 1000 | |
| image: | |
| repository: checkmk/check-mk-raw | |
| tag: 2.4.0p18 | |
| pullPolicy: IfNotPresent | |
| initContainers: | |
| - name: fix-permissions | |
| image: busybox | |
| command: ["sh", "-c", "chown -R 1000:1000 /omd/sites"] | |
| volumeMounts: | |
| - name: tmp | |
| mountPath: /omd/sites/cmk/tmp | |
| - name: monitoring-data | |
| mountPath: /omd/sites | |
| volumeMounts: | |
| - name: tmp | |
| mountPath: /omd/sites/cmk/tmp | |
| - name: localtime | |
| mountPath: /etc/localtime | |
| readOnly: true | |
| - name: monitoring-data | |
| mountPath: /omd/sites | |
| # Liveness/Readiness probes | |
| readinessProbe: | |
| enabled: true | |
| httpGet: | |
| path: / | |
| port: 5000 | |
| initialDelaySeconds: 60 | |
| periodSeconds: 20 | |
| timeoutSeconds: 10 | |
| failureThreshold: 5 | |
| livenessProbe: | |
| enabled: true | |
| httpGet: | |
| path: / | |
| port: 5000 | |
| initialDelaySeconds: 120 | |
| periodSeconds: 300 | |
| timeoutSeconds: 10 | |
| failureThreshold: 5 | |
| resources: | |
| requests: | |
| cpu: 500m | |
| memory: 1Gi | |
| limits: | |
| cpu: 2000m | |
| memory: 4Gi | |
| containerSecurityContext: | |
| readOnlyRootFilesystem: false | |
| runAsNonRoot: false | |
| additionalContainers: | |
| - name: alloy-sidecar | |
| image: grafana/alloy:latest | |
| args: | |
| [ | |
| "run", | |
| "--server.http.listen-addr=0.0.0.0:12345", | |
| "--storage.path=/var/lib/alloy/data", | |
| "/etc/alloy/config.alloy", | |
| ] | |
| volumeMounts: | |
| - name: monitoring-data | |
| mountPath: /omd/sites | |
| readOnly: true | |
| - name: alloy-config | |
| mountPath: /etc/alloy | |
| ports: | |
| - name: alloy-http | |
| containerPort: 12345 | |
| volumes: | |
| - name: tmp | |
| emptyDir: | |
| medium: Memory | |
| sizeLimit: 1Gi | |
| - name: localtime | |
| hostPath: | |
| path: /etc/localtime | |
| - name: monitoring-data | |
| persistentVolumeClaim: | |
| claimName: checkmk-pvc | |
| - name: alloy-config | |
| configMap: | |
| name: checkmk-alloy-config | |
| configMap: | |
| enabled: true | |
| files: | |
| alloy-config: | |
| config.alloy: | | |
| local.file_match "checkmk_logs" { | |
| path_targets = [ | |
| {"__path__" = "/omd/sites/cmk/var/log/*.log", "job" = "checkmk", "app" = "checkmk"}, | |
| {"__path__" = "/omd/sites/cmk/var/log/**/*.log", "job" = "checkmk", "app" = "checkmk"}, | |
| {"__path__" = "/omd/sites/cmk/var/log/apache/*_log", "job" = "checkmk", "app" = "checkmk"}, | |
| ] | |
| } | |
| loki.source.file "checkmk_logs" { | |
| targets = local.file_match.checkmk_logs.targets | |
| forward_to = [loki.write.default.receiver] | |
| } | |
| loki.write "default" { | |
| endpoint { | |
| url = "http://loki.logging.svc.cluster.local:3100/loki/api/v1/push" | |
| } | |
| } | |
| service: | |
| enabled: true | |
| type: LoadBalancer | |
| ports: | |
| - name: http | |
| port: 8080 | |
| targetPort: 5000 | |
| protocol: TCP | |
| - name: agent-tcp | |
| port: 8000 | |
| targetPort: 8000 | |
| protocol: TCP | |
| ingress: | |
| enabled: true | |
| ingressClassName: nginx | |
| annotations: | |
| cert-manager.io/cluster-issuer: cloudflare | |
| hosts: | |
| - host: checkmk.your.domain | |
| paths: | |
| - path: / | |
| pathType: Prefix | |
| tls: | |
| - secretName: checkmk-tls | |
| hosts: | |
| - checkmk.your.domain | |
| destination: | |
| server: https://kubernetes.default.svc | |
| namespace: monitoring # User asked for infrastructure/odin/monitoring, assuming namespace 'monitoring' exists or should be used. | |
| syncPolicy: | |
| automated: | |
| prune: true | |
| selfHeal: true | |
| syncOptions: | |
| - CreateNamespace=true | |
| --- | |
| apiVersion: kustomize.config.k8s.io/v1beta1 | |
| kind: Kustomization | |
| resources: | |
| - ns.yaml | |
| - checkmk.yaml | |
| - ingress-internal.yaml | |
| - pvc.yaml | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: monitoring | |
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: checkmk-pvc | |
| namespace: monitoring | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: | |
| storage: 20Gi | |
| storageClassName: zfs-generic-iscsi-csi-delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment