File tree 4 files changed +22
-3
lines changed
4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 29
29
{{- if .Values.rbac.enabled }}
30
30
serviceAccountName : ' akri-agent-sa'
31
31
{{- end }}
32
+ {{- with .Values.agent.tolerations }}
33
+ tolerations :
34
+ {{- toYaml . | nindent 8 }}
35
+ {{- end }}
32
36
containers :
33
37
- name : akri-agent
34
38
{{- $repository := ternary .Values.agent.image.fullRepository .Values.agent.image.repository .Values.agent.full -}}
@@ -107,5 +111,7 @@ spec:
107
111
- name : devices
108
112
hostPath :
109
113
path : " {{ .Values.agent.host.udev }}"
110
- {{- end }}
114
+
115
+ /Users/marcelauge/workspace/k3s/ts464/einsatzimporter/templates/cronjob :
116
+ yaml : {{- end }}
111
117
{{- end }}
Original file line number Diff line number Diff line change @@ -58,11 +58,16 @@ spec:
58
58
imagePullSecrets :
59
59
{{- toYaml . | nindent 8 }}
60
60
{{- end }}
61
- {{- if .Values.controller.allowOnControlPlane }}
61
+ {{- if or .Values.controller.allowOnControlPlane .Values.controller.tolerations }}
62
62
tolerations :
63
+ {{- if .Values.controller.allowOnControlPlane }}
63
64
{{- /* Allow this pod to run on the master. */}}
64
65
- key : node-role.kubernetes.io/master
65
66
effect : NoSchedule
67
+ {{- end }}
68
+ {{- if .Values.controller.tolerations }}
69
+ {{- toYaml .Values.controller.tolerations | nindent 2 }}
70
+ {{- end }}
66
71
{{- end }}
67
72
nodeSelector :
68
73
{{- if .Values.controller.onlyOnControlPlane }}
Original file line number Diff line number Diff line change @@ -101,11 +101,16 @@ items:
101
101
imagePullSecrets :
102
102
{{- toYaml . | nindent 12 }}
103
103
{{- end }}
104
- {{- if .Values.webhookConfiguration.allowOnControlPlane }}
104
+ {{- if or .Values.webhookConfiguration.allowOnControlPlane .Values.webhookConfiguration.tolerations }}
105
105
tolerations :
106
+ {{- if .Values.webhookConfiguration.allowOnControlPlane }}
106
107
{{- /* Allow this pod to run on the master. */}}
107
108
- key : node-role.kubernetes.io/master
108
109
effect : NoSchedule
110
+ {{- end }}
111
+ {{- if .Values.webhookConfiguration.tolerations }}
112
+ {{- toYaml .Values.controller.tolerations | nindent 2 }}
113
+ {{- end }}
109
114
{{- end }}
110
115
nodeSelector :
111
116
{{- if .Values.webhookConfiguration.nodeSelectors }}
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ controller:
69
69
# allowOnControlPlane dictates whether a toleration will be added to allow to Akri Controller
70
70
# to run on the control plane node
71
71
allowOnControlPlane : true
72
+ tolerations : { }
72
73
# nodeSelectors is the array of nodeSelectors used to target nodes for the Akri Controller to run on
73
74
# This can be set from the helm command line using `--set controller.nodeSelectors.label="value"`
74
75
nodeSelectors : {}
@@ -119,6 +120,7 @@ agent:
119
120
# nodeSelectors is the array of nodeSelectors used to target nodes for the Akri Agent to run on
120
121
# This can be set from the helm command line using `--set agent.nodeSelectors.label="value"`
121
122
nodeSelectors : {}
123
+ tolerations : { }
122
124
resources :
123
125
# memoryRequest defines the minimum amount of RAM that must be available to this Pod
124
126
# for it to be scheduled by the Kubernetes Scheduler
@@ -878,6 +880,7 @@ webhookConfiguration:
878
880
# nodeSelectors is the array of nodeSelectors used to target nodes for the Akri Webhook to run on
879
881
# This can be set from the helm command line using `--set webhookConfiguration.nodeSelectors.label="value"`
880
882
nodeSelectors : {}
883
+ tolerations : { }
881
884
resources :
882
885
# memoryRequest defines the minimum amount of RAM that must be available to this Pod
883
886
# for it to be scheduled by the Kubernetes Scheduler
You can’t perform that action at this time.
0 commit comments