Skip to content

Commit eca1083

Browse files
authored
Merge pull request #30 from Kristian-ZH/priority-class
Add priorityClass and also better utilization of the resources
2 parents 184c5dc + 88cd9ab commit eca1083

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

helm/endpoint-copier-operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
labels:
2121
{{- include "endpoint-copier-operator.selectorLabels" . | nindent 8 }}
2222
spec:
23+
{{- if .Values.priorityClassName }}
24+
priorityClassName: {{ .Values.priorityClassName }}
25+
{{- end }}
2326
securityContext:
2427
{{- toYaml .Values.podSecurityContext | nindent 8 }}
2528
{{- with .Values.nodeSelector }}

helm/endpoint-copier-operator/values.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ podSecurityContext:
2929
seccompProfile:
3030
type: RuntimeDefault
3131

32+
priorityClassName: "system-cluster-critical"
33+
3234
securityContext:
3335
allowPrivilegeEscalation: false
3436
capabilities:
@@ -37,11 +39,11 @@ securityContext:
3739

3840
resources:
3941
limits:
40-
cpu: 500m
41-
memory: 128Mi
42-
requests:
43-
cpu: 10m
42+
cpu: 100m
4443
memory: 64Mi
44+
requests:
45+
cpu: 5m
46+
memory: 32Mi
4547

4648
autoscaling:
4749
enabled: false

0 commit comments

Comments
 (0)