Skip to content

Commit

Permalink
Merge pull request #9 from nokia/helm-102
Browse files Browse the repository at this point in the history
affinity, updatestrategy, tolerations ...
  • Loading branch information
Khushi Jain authored Feb 29, 2024
2 parents 4e847c9 + f754ef8 commit f1f97ee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deployments/helm/templates/daemon-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ spec:
selector:
matchLabels:
instrumentation: {{ include "beyla.fullname" . }}
{{- with .Values.updateStrategy }}
strategy:
{{- toYaml . | trim | nindent 4 }}
{{- end }}
template:
metadata:
labels:
Expand Down Expand Up @@ -50,4 +54,16 @@ spec:
- name: {{ $key | quote }}
valueFrom:
{{- tpl (toYaml $value) $ | nindent 16 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- tpl (toYaml .) $ | nindent 12 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 12 }}
{{- end }}
6 changes: 6 additions & 0 deletions deployments/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ readinessProbe:
path: /
port: http


## See `kubectl explain deployment.spec.strategy` for more
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
updateStrategy:
type: RollingUpdate

autoscaling:
enabled: false
minReplicas: 1
Expand Down

0 comments on commit f1f97ee

Please sign in to comment.