diff --git a/deployment/helm/ditto/templates/connectivity-deployment.yaml b/deployment/helm/ditto/templates/connectivity-deployment.yaml index 425bd34ad6..7a070ef55b 100644 --- a/deployment/helm/ditto/templates/connectivity-deployment.yaml +++ b/deployment/helm/ditto/templates/connectivity-deployment.yaml @@ -317,6 +317,7 @@ spec: runAsGroup: 1000 allowPrivilegeEscalation: false {{- end }} + priorityClassName: "{{ .Values.connectivity.priorityClassName }}" {{- with .Values.connectivity.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/deployment/helm/ditto/templates/gateway-deployment.yaml b/deployment/helm/ditto/templates/gateway-deployment.yaml index 6e79ff7b07..9e074a5083 100644 --- a/deployment/helm/ditto/templates/gateway-deployment.yaml +++ b/deployment/helm/ditto/templates/gateway-deployment.yaml @@ -287,6 +287,7 @@ spec: runAsGroup: 1000 allowPrivilegeEscalation: false {{- end }} + priorityClassName: "{{ .Values.gateway.priorityClassName }}" {{- with .Values.gateway.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/deployment/helm/ditto/templates/nginx-deployment.yaml b/deployment/helm/ditto/templates/nginx-deployment.yaml index 47f6306a8d..db106a74b6 100644 --- a/deployment/helm/ditto/templates/nginx-deployment.yaml +++ b/deployment/helm/ditto/templates/nginx-deployment.yaml @@ -141,6 +141,7 @@ spec: emptyDir: {} - name: nginx-run emptyDir: {} + priorityClassName: "{{ .Values.nginx.priorityClassName }}" {{- with .Values.nginx.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/deployment/helm/ditto/templates/policies-deployment.yaml b/deployment/helm/ditto/templates/policies-deployment.yaml index ad1bbd7b9f..68d180ae3b 100644 --- a/deployment/helm/ditto/templates/policies-deployment.yaml +++ b/deployment/helm/ditto/templates/policies-deployment.yaml @@ -306,6 +306,7 @@ spec: runAsGroup: 1000 allowPrivilegeEscalation: false {{- end }} + priorityClassName: "{{ .Values.policies.priorityClassName }}" {{- with .Values.policies.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/deployment/helm/ditto/templates/things-deployment.yaml b/deployment/helm/ditto/templates/things-deployment.yaml index f628dae349..479ec9de74 100644 --- a/deployment/helm/ditto/templates/things-deployment.yaml +++ b/deployment/helm/ditto/templates/things-deployment.yaml @@ -310,6 +310,7 @@ spec: runAsGroup: 1000 allowPrivilegeEscalation: false {{- end }} + priorityClassName: "{{ .Values.things.priorityClassName }}" {{- with .Values.things.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/deployment/helm/ditto/templates/thingssearch-deployment.yaml b/deployment/helm/ditto/templates/thingssearch-deployment.yaml index 4d4878598f..93392992a8 100644 --- a/deployment/helm/ditto/templates/thingssearch-deployment.yaml +++ b/deployment/helm/ditto/templates/thingssearch-deployment.yaml @@ -288,6 +288,7 @@ spec: runAsGroup: 1000 allowPrivilegeEscalation: false {{- end }} + priorityClassName: "{{ .Values.thingsSearch.priorityClassName }}" {{- with .Values.thingsSearch.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/deployment/helm/ditto/values.yaml b/deployment/helm/ditto/values.yaml index 4cae37d6a1..948fe560ed 100644 --- a/deployment/helm/ditto/values.yaml +++ b/deployment/helm/ditto/values.yaml @@ -502,6 +502,9 @@ policies: enabled: true # minAvailable number of replicas during voluntary disruptions minAvailable: 1 + # priorityClassName configuration for policies + # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass + priorityClassName: "" # nodeSelector configuration for policies # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector nodeSelector: {} @@ -708,6 +711,9 @@ things: enabled: true # minAvailable number of replicas during voluntary disruptions minAvailable: 1 + # priorityClassName configuration for policies + # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass + priorityClassName: "" # nodeSelector configuration for things # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector nodeSelector: {} @@ -936,6 +942,9 @@ thingsSearch: enabled: true # minAvailable number of replicas during voluntary disruptions minAvailable: 1 + # priorityClassName configuration for policies + # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass + priorityClassName: "" # nodeSelector configuration for things-search # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector nodeSelector: {} @@ -1118,6 +1127,9 @@ connectivity: enabled: true # minAvailable number of replicas during voluntary disruptions minAvailable: 1 + # priorityClassName configuration for policies + # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass + priorityClassName: "" # nodeSelector configuration for connectivity # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector nodeSelector: {} @@ -1383,6 +1395,9 @@ gateway: enabled: true # minAvailable number of replicas during voluntary disruptions minAvailable: 1 + # priorityClassName configuration for policies + # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass + priorityClassName: "" # nodeSelector configuration for gateway # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector nodeSelector: {} @@ -1546,6 +1561,9 @@ nginx: # nodePort: 30080 # annotations to add arbitrary annotations to nginx service annotations: {} + # priorityClassName configuration for policies + # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass + priorityClassName: "" # nodeSelector configuration for nginx # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector nodeSelector: {}