Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

helm: support affinity and resources #48

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions helm/appidentityandaccessadapter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ spec:
volumeMounts:
- name: transient-storage
mountPath: /volume
resources:
{{ toYaml .Values.resources | indent 12 }}
volumes:
- name: transient-storage
emptyDir: {}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
19 changes: 19 additions & 0 deletions helm/appidentityandaccessadapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,22 @@ logging:
## from -1 to 7
## See zapcore: https://godoc.org/go.uber.org/zap/zapcore#Level
level: 0

# resources:
# limits:
# cpu: 100m
# memory: 80Mi
# requests:
# cpu: 10m
# memory: 40Mi

affinity: {}
# podAntiAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 5
# podAffinityTerm:
# topologyKey: "kubernetes.io/hostname"
# labelSelector:
# matchLabels:
# app: {{ template "dex.name" . }}
# release: "{{ .Release.Name }}"