Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions charts/argocd-understack/templates/application-karma.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{- if or (eq (include "understack.isEnabled" (list $.Values.global "karma")) "true") (eq (include "understack.isEnabled" (list $.Values.site "karma")) "true") }}
Comment thread
skrobul marked this conversation as resolved.
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ printf "%s-%s" $.Release.Name "karma" }}
annotations:
argocd.argoproj.io/compare-options: ServerSideDiff=true,IncludeMutationWebhook=true
spec:
destination:
namespace: monitoring
server: {{ $.Values.cluster_server }}
project: understack
sources:
- chart: karma
helm:
ignoreMissingValueFiles: true
releaseName: karma
valueFiles:
- $understack/components/karma/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/karma/values.yaml
repoURL: https://wiremind.github.io/wiremind-helm-charts
targetRevision: 2.11.0
- ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/karma
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
syncPolicy:
automated:
prune: true
selfHeal: true
managedNamespaceMetadata:
annotations:
argocd.argoproj.io/sync-options: Delete=false
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
- RespectIgnoreDifferences=true
- ApplyOutOfSyncOnly=true
{{- end }}
12 changes: 12 additions & 0 deletions charts/argocd-understack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ global:
# @default -- true
enabled: true

# -- Alerts management (karma)
karma:
# -- Enable/disable deploying kube-prometheus-stack
# @default -- true
enabled: true

# -- Monitoring via kube-prometheus-stack
monitoring:
# -- Enable/disable deploying kube-prometheus-stack
Expand Down Expand Up @@ -419,6 +425,12 @@ site:
# @default -- true
enabled: true

# -- Alerts management (karma)
karma:
# -- Enable/disable deploying kube-prometheus-stack
# @default -- true
enabled: true

# -- MariaDB Operator
mariadb_operator:
# -- Enable/disable deploying MariaDB Operator
Expand Down
11 changes: 11 additions & 0 deletions components/karma/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Default values for karma.
resources:
Comment thread
skrobul marked this conversation as resolved.
limits:
cpu: 1000m
memory: 4Gi
# requests:
# cpu: 100m
# memory: 128Mi
env:
- name: ALERTMANAGER_URI
value: http://kube-prometheus-stack-alertmanager.monitoring.svc.cluster.local:9093
Loading