From 56303926ef4bf643780d1e969670daebaa3cdb17 Mon Sep 17 00:00:00 2001 From: Ferdows Shahryar Date: Fri, 6 Aug 2021 11:06:47 +0200 Subject: [PATCH] add normal stuff --- charts/wave/templates/deployment.yaml | 7 +++++++ charts/wave/values.yaml | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/charts/wave/templates/deployment.yaml b/charts/wave/templates/deployment.yaml index e0ef9e27..7a1f3b1c 100644 --- a/charts/wave/templates/deployment.yaml +++ b/charts/wave/templates/deployment.yaml @@ -12,6 +12,10 @@ spec: {{ include "wave-labels.chart" . | indent 6 }} template: metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} labels: {{ include "wave-labels.chart" . | indent 8 }} spec: @@ -29,7 +33,10 @@ spec: - --sync-period={{ .Values.syncPeriod }} {{- end }} volumeMounts: {{ toYaml .Values.extraVolumeMounts | nindent 12 }} + resources: {{- toYaml .Values.resources | nindent 12 }} securityContext: {{ toYaml .Values.securityContext | nindent 8 }} serviceAccountName: {{ .Values.serviceAccount.name | default (include "wave-fullname" .) }} nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + affinity: {{ toYaml .Values.affinity | nindent 8 }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} volumes: {{ toYaml .Values.extraVolumes | nindent 8 }} diff --git a/charts/wave/values.yaml b/charts/wave/values.yaml index bb100f64..e9ee1951 100644 --- a/charts/wave/values.yaml +++ b/charts/wave/values.yaml @@ -45,3 +45,21 @@ serviceAccount: # Period for reconciliation # syncPeriod: 5m + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +tolerations: [] + +affinity: {} + +podAnnotations: {}