Skip to content

Commit

Permalink
[#39] Parametrize common values
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Nov 9, 2021
1 parent f43468b commit 8ac713a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
14 changes: 12 additions & 2 deletions k8s/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ spec:
replicas: {{ .Values.deployment.replicas }}
selector:
matchLabels:
app: {{ .Release.Name }}
app.kubernetes.io/name: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ .Release.Name }}
app.kubernetes.io/name: {{ .Release.Name }}
{{- if .Values.deployment.labels }}
{{ toYaml .Values.deployment.labels | indent 16 }}
{{- end }}

{{- with .Values.deployment.annotations }}
annotations:
{{ toYaml . | indent 20 }}
{{ end }}
spec:
{{- with .Values.deployment.imagePullSecrets }}
imagePullSecrets:
Expand Down Expand Up @@ -74,3 +82,5 @@ spec:
value: {{ $val | quote }}
{{- end }}
{{ end }}
resources:
{{- toYaml .Values.deployment.resources | nindent 22 }}
9 changes: 9 additions & 0 deletions k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ deployment:
nodeSelector: {}
affinity: {}
tolerations: []
annotations: {}
resources:
requests:
memory: "128Mi"
cpu: "0"
limits:
memory: "512Mi"
cpu: "4"


ingress:
enabled: true
Expand Down

0 comments on commit 8ac713a

Please sign in to comment.