Skip to content

Commit

Permalink
Merge pull request #5 from Krernertok/add-nodeselector-support
Browse files Browse the repository at this point in the history
Add support for nodeSelector in qryn-deployment.yaml
  • Loading branch information
lmangani authored Dec 12, 2024
2 parents c00f9a8 + 9f34be3 commit 1881596
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions templates/qryn-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{- toYaml .Values.nodeSelector | nindent 8 }}
{{ end }}
containers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
name: {{ include "qryn-helm.fullname" . }}
Expand Down
6 changes: 5 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ livenessProbe:
endpoint: "/metrics"

podAnnotations: {}

# podLabels: {}
podLabels:
- qryn

## Custom pod annotations
podAnnotations: {}

## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/

nodeSelector: {}
# nodeSelector:
# kubernetes.io/os: linux

## Taints to tolerate on node assignment:
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
Expand Down

0 comments on commit 1881596

Please sign in to comment.