Enforce to amd64 nodes using nodeSelector

Signed-off-by: Marco Franssen <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-02-18 13:04:02 +01:00
committed by Marco Franssen
parent e9912ba39a
commit 5cb6ebe95e
4 changed files with 20 additions and 3 deletions
@@ -27,6 +27,10 @@ spec:
# from https://github.com/lqhl/wait-for-it
image: gcr.io/spiffe-io/wait-for-it:latest
args: ["-t", "30", "{{ include "spire.fullname" . }}-server:8081"]
{{- with .Values.agent.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-agent
image: "{{ .Values.agent.image.repository }}:{{ .Values.agent.image.tag | default .Chart.AppVersion }}"
@@ -32,6 +32,10 @@ spec:
shareProcessNamespace: true
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- with .Values.server.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-server
securityContext: