diff --git a/charts/devtron/Chart.yaml b/charts/devtron/Chart.yaml index ba67ab87..6235d276 100644 --- a/charts/devtron/Chart.yaml +++ b/charts/devtron/Chart.yaml @@ -11,7 +11,7 @@ keywords: - argocd - Hyperion engine: gotpl -version: 0.22.51 +version: 0.22.52 sources: - https://github.com/devtron-labs/charts dependencies: diff --git a/charts/devtron/charts/argo-cd-5.9.1.tgz b/charts/devtron/charts/argo-cd-5.9.1.tgz new file mode 100644 index 00000000..8a356673 Binary files /dev/null and b/charts/devtron/charts/argo-cd-5.9.1.tgz differ diff --git a/charts/devtron/charts/security-0.1.4.tgz b/charts/devtron/charts/security-0.1.4.tgz new file mode 100644 index 00000000..6fcf0cb0 Binary files /dev/null and b/charts/devtron/charts/security-0.1.4.tgz differ diff --git a/charts/devtron/templates/app-sync-job.yaml b/charts/devtron/templates/app-sync-job.yaml index 25196831..597b3195 100644 --- a/charts/devtron/templates/app-sync-job.yaml +++ b/charts/devtron/templates/app-sync-job.yaml @@ -47,9 +47,31 @@ spec: {{- end }} {{- end }} restartPolicy: OnFailure + {{- if .Values.components.migrator }} + {{- if .Values.components.migrator.appSync }} + {{- if or $.Values.components.migrator.appSync.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.components.migrator.appSync.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.migrator.appSync.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.migrator.appSync.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.migrator.appSync.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.migrator.appSync.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- end }} + {{- end }} + {{- end }} backoffLimit: 4 --- -{{- end }} {{- if .Capabilities.APIVersions.Has "batch/v1/CronJob" }} apiVersion: batch/v1 {{- else -}} diff --git a/charts/devtron/templates/dashboard.yaml b/charts/devtron/templates/dashboard.yaml index 57d16c04..1db47a0d 100644 --- a/charts/devtron/templates/dashboard.yaml +++ b/charts/devtron/templates/dashboard.yaml @@ -69,6 +69,24 @@ spec: spec: terminationGracePeriodSeconds: 30 restartPolicy: Always + {{- if or $.Values.components.dashboard.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.components.dashboard.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.dashboard.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.dashboard.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.dashboard.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.dashboard.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} containers: - name: dashboard image: {{ .image }} diff --git a/charts/devtron/templates/devtron.yaml b/charts/devtron/templates/devtron.yaml index bcbd4d87..10029f7a 100644 --- a/charts/devtron/templates/devtron.yaml +++ b/charts/devtron/templates/devtron.yaml @@ -97,6 +97,24 @@ spec: terminationGracePeriodSeconds: 30 restartPolicy: Always serviceAccountName: devtron + {{- if or $.Values.components.devtron.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.components.devtron.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.devtron.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.devtron.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.devtron.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.devtron.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} containers: - name: devtron {{- if $.Values.installer.modules }} diff --git a/charts/devtron/templates/dex.yaml b/charts/devtron/templates/dex.yaml index d6583a25..fcdad434 100644 --- a/charts/devtron/templates/dex.yaml +++ b/charts/devtron/templates/dex.yaml @@ -68,6 +68,18 @@ spec: app.kubernetes.io/part-of: argocd topologyKey: kubernetes.io/hostname weight: 5 + {{- if or $.Values.components.argocdDexServer.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.argocdDexServer.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.argocdDexServer.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.argocdDexServer.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} containers: - command: - /shared/authenticator diff --git a/charts/devtron/templates/grafana.yaml b/charts/devtron/templates/grafana.yaml index 984b1cf3..ebdce9d5 100644 --- a/charts/devtron/templates/grafana.yaml +++ b/charts/devtron/templates/grafana.yaml @@ -15,6 +15,18 @@ spec: template: spec: serviceAccountName: devtron + {{- with $.Values.monitoring.grafana.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with $.Values.monitoring.grafana.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with $.Values.monitoring.grafana.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: grafana-restart image: "quay.io/devtron/kubectl:latest" @@ -660,6 +672,24 @@ metadata: namespace: devtroncd spec: serviceAccountName: devtron-grafana-test + {{- if or $.Values.monitoring.grafana.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.monitoring.grafana.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 4 }} + {{- end }} + {{- end }} + {{- if or $.Values.monitoring.grafana.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.monitoring.grafana.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 4 }} + {{- end }} + {{- end }} + {{- if or $.Values.monitoring.grafana.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.monitoring.grafana.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 4 }} + {{- end }} + {{- end }} containers: - name: devtron-test image: "quay.io/devtron/bats:v1.4.1" diff --git a/charts/devtron/templates/install.yaml b/charts/devtron/templates/install.yaml index a4d03c4a..2cf5b84b 100644 --- a/charts/devtron/templates/install.yaml +++ b/charts/devtron/templates/install.yaml @@ -108,6 +108,24 @@ spec: {{- end }} restartPolicy: Always serviceAccountName: installer + {{- if or $.Values.installer.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.installer.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.installer.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.installer.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.installer.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.installer.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} terminationGracePeriodSeconds: 30 {{- end }} {{- end }} diff --git a/charts/devtron/templates/kubelink.yaml b/charts/devtron/templates/kubelink.yaml index 90a09d18..bca7655f 100644 --- a/charts/devtron/templates/kubelink.yaml +++ b/charts/devtron/templates/kubelink.yaml @@ -21,6 +21,24 @@ spec: spec: terminationGracePeriodSeconds: 30 restartPolicy: Always + {{- if or $.Values.components.kubelink.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.components.kubelink.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.kubelink.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.kubelink.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.kubelink.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.kubelink.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} serviceAccount: devtron containers: - name: kubelink diff --git a/charts/devtron/templates/migrator.yaml b/charts/devtron/templates/migrator.yaml index 15494c8e..1e996a71 100644 --- a/charts/devtron/templates/migrator.yaml +++ b/charts/devtron/templates/migrator.yaml @@ -48,6 +48,24 @@ spec: {{- end }} {{- end }} restartPolicy: OnFailure + {{- if or $.Values.components.migrator.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.components.migrator.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.migrator.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.migrator.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.migrator.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.migrator.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} backoffLimit: 20 activeDeadlineSeconds: 1500 --- @@ -113,6 +131,24 @@ spec: memory: 500Mi {{- end }} restartPolicy: OnFailure + {{- if or $.Values.components.migrator.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.components.migrator.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.migrator.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.migrator.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.migrator.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.migrator.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} backoffLimit: 20 activeDeadlineSeconds: 1500 {{- end }} diff --git a/charts/devtron/templates/minio.yaml b/charts/devtron/templates/minio.yaml index b637e734..08882b11 100644 --- a/charts/devtron/templates/minio.yaml +++ b/charts/devtron/templates/minio.yaml @@ -260,6 +260,24 @@ spec: release: {{ $.Release.Name }} spec: serviceAccountName: "devtron-minio" + {{- if or $.Values.minio.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.minio.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.minio.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.minio.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.minio.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.minio.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} securityContext: runAsUser: 1000 runAsGroup: 1000 @@ -337,6 +355,18 @@ spec: - secret: name: devtron-minio serviceAccountName: "devtron-minio" + {{- with $.Values.minio.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with $.Values.minio.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with $.Values.minio.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: minio-mc image: {{ $.Values.minio.mbImage }} @@ -383,6 +413,18 @@ spec: release: devtron-minio spec: serviceAccountName: "devtron-minio" + {{- with $.Values.minio.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with $.Values.minio.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with $.Values.minio.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: minio image: "quay.io/devtron/minio:RELEASE.2020-12-03T05-49-24Z" diff --git a/charts/devtron/templates/notifier.yaml b/charts/devtron/templates/notifier.yaml index f327422c..6c00f32e 100644 --- a/charts/devtron/templates/notifier.yaml +++ b/charts/devtron/templates/notifier.yaml @@ -74,6 +74,24 @@ spec: spec: terminationGracePeriodSeconds: 30 restartPolicy: Always + {{- if or $.Values.notifier.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.notifier.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.notifier.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.notifier.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.notifier.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.notifier.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} containers: - name: notifier image: {{ .image }} diff --git a/charts/devtron/templates/postgresql.yaml b/charts/devtron/templates/postgresql.yaml index 343f69e1..aa45903b 100644 --- a/charts/devtron/templates/postgresql.yaml +++ b/charts/devtron/templates/postgresql.yaml @@ -115,6 +115,24 @@ spec: spec: securityContext: fsGroup: 1001 + {{- if or $.Values.components.postgres.affinity (and $.Values.global $.Values.global.affinity ) }} + {{- with $.Values.components.postgres.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.postgres.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.postgres.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.postgres.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.postgres.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} initContainers: - name: init-chmod-data image: "quay.io/devtron/minideb:latest" @@ -444,6 +462,24 @@ spec: spec: securityContext: fsGroup: 999 + {{- if or $.Values.components.postgres.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.components.postgres.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.postgres.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.components.postgres.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.components.postgres.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.components.postgres.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} initContainers: - name: postgres-init securityContext: diff --git a/charts/devtron/templates/workflow.yaml b/charts/devtron/templates/workflow.yaml index 1548e275..70bc8272 100644 --- a/charts/devtron/templates/workflow.yaml +++ b/charts/devtron/templates/workflow.yaml @@ -363,6 +363,24 @@ spec: labels: app: workflow-controller spec: + {{- if or $.Values.workflowController.affinity (and $.Values.global $.Values.global.affinity) }} + {{- with $.Values.workflowController.affinity | default $.Values.global.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.workflowController.tolerations (and $.Values.global $.Values.global.tolerations ) }} + {{- with $.Values.workflowController.tolerations | default $.Values.global.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + {{- if or $.Values.workflowController.nodeSelector (and $.Values.global $.Values.global.nodeSelector ) }} + {{- with $.Values.workflowController.nodeSelector | default $.Values.global.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} containers: - args: - --configmap diff --git a/charts/devtron/values.yaml b/charts/devtron/values.yaml index 245346c0..d60954b2 100644 --- a/charts/devtron/values.yaml +++ b/charts/devtron/values.yaml @@ -8,7 +8,9 @@ installer: # mode: "dashboard" # Available options are dashboard, full and hyperion (deprecated) NOT USING THIS modules: [] # Available options are cicd production_overrides: "" # Set true if you want to use this Devtron stack in Production (This will require more resources) - + # nodeSelector: {} + # tolerations: [] + # affinity: {} # Change the below values for full mode only #Use secrets in plaintext, they'll be encoded to base64 automatically. @@ -45,12 +47,18 @@ components: applicationMetrics: "true" image: "quay.io/devtron/dashboard:de186b14-325-12876" imagePullPolicy: IfNotPresent + # nodeSelector: {} + # tolerations: [] + # affinity: {} devtron: image: "quay.io/devtron/hyperion:e3c5a3a2-280-12878" cicdImage: "quay.io/devtron/devtron:e3c5a3a2-434-12877" imagePullPolicy: IfNotPresent customOverrides: {} + # nodeSelector: {} + # tolerations: [] + # affinity: {} serviceMonitor: enabled: false service: @@ -82,16 +90,25 @@ components: kubelink: image: "quay.io/devtron/kubelink:a5e179d4-318-12564" imagePullPolicy: IfNotPresent + # nodeSelector: {} + # tolerations: [] + # affinity: {} postgres: image: "quay.io/devtron/postgres:11.9.0-debian-10-r26" armImage: "quay.io/devtron/postgres:11.9" imagePullPolicy: "IfNotPresent" + # nodeSelector: {} + # tolerations: [] + # affinity: {} persistence: volumeSize: "20Gi" migrator: image: "quay.io/devtron/migrator:71748de9-149-11112" + # nodeSelector: {} + # tolerations: [] + # affinity: {} envVars: devtron: GIT_BRANCH: "main" @@ -281,6 +298,9 @@ notifier: secretName: postgresql-postgresql keyName: postgresql-password resources: {} + # nodeSelector: {} + # tolerations: [] + # affinity: {} # Set enable to true if you want to use minio for storing cache and logs minio: enabled: false @@ -289,12 +309,18 @@ minio: imagePullPolicy: IfNotPresent mbImage: "quay.io/devtron/minio-mc:RELEASE.2021-02-14T04-28-06Z" mbImagePullPolicy: IfNotPresent + # nodeSelector: {} + # tolerations: [] + # affinity: {} persistence: storage: "50Gi" # Change below values for workflow controller workflowController: image: "quay.io/argoproj/workflow-controller:v3.0.7" executorImage: "quay.io/argoproj/argoexec:v3.0.7" + # nodeSelector: {} + # tolerations: [] + # affinity: {} # Values for grafana integration monitoring: grafana: @@ -302,9 +328,17 @@ monitoring: image: "quay.io/devtron/grafana:7.3.1" imagePullPolicy: IfNotPresent resources: {} + # nodeSelector: {} + # tolerations: [] + # affinity: {} grafanaDashboards: image: "quay.io/kiwigrid/k8s-sidecar:1.1.0" imagePullPolicy: IfNotPresent resources: {} persistence: storage: "2Gi" + +global: + nodeSelector: {} + tolerations: [] + affinity: {} \ No newline at end of file diff --git a/charts/discord-alertmanager/Chart.yaml b/charts/discord-alertmanager/Chart.yaml index 88dfeff8..95e2c19f 100644 --- a/charts/discord-alertmanager/Chart.yaml +++ b/charts/discord-alertmanager/Chart.yaml @@ -1,7 +1,7 @@ name: discord-alertmanager description: Helm chart to deploy webhook integration for sending alert manager alerts on discord. -version: 0.10.0 -appVersion: 0.1.0 +version: 0.11.0 +appVersion: 0.2.0 maintainers: - email: ajay@devtron.ai name: Ajay diff --git a/charts/discord-alertmanager/templates/deployment.yaml b/charts/discord-alertmanager/templates/deployment.yaml index e4b4a838..d32fbe57 100644 --- a/charts/discord-alertmanager/templates/deployment.yaml +++ b/charts/discord-alertmanager/templates/deployment.yaml @@ -31,4 +31,11 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} - \ No newline at end of file + {{- with $.Values.tolerations }} + tolerations: + {{- toYaml . | nindent 10 }} + {{- end }} + {{ if $.Values.affinity }} + affinity: +{{ toYaml $.Values.affinity | indent 8 }} + {{- end }} diff --git a/charts/discord-alertmanager/values.yaml b/charts/discord-alertmanager/values.yaml index 9c677de5..953f3926 100644 --- a/charts/discord-alertmanager/values.yaml +++ b/charts/discord-alertmanager/values.yaml @@ -28,4 +28,24 @@ resources: {} # memory: 128Mi # requests: # cpu: 100m - # memory: 128Mi \ No newline at end of file + # memory: 128Mi + +tolerations: [] + # - key: "key1" + # operator: "Equal" + # value: "value1" + # effect: "NoSchedule" + +affinity: {} + # nodeAffinity: + # requiredDuringSchedulingIgnoredDuringExecution: + # nodeSelectorTerms: + # - matchExpressions: + # - key: topology.kubernetes.io/zone + # operator: In + # values: + # - us-east-2a + # - key: topology.kubernetes.io/region + # operator: In + # values: + # - us-east-2 \ No newline at end of file