Skip to content
Snippets Groups Projects
Commit eca2404d authored by Serge Logvinov's avatar Serge Logvinov Committed by Derek Su
Browse files

Add pod tolerations to the helper-pod

parent 0a41f6f5
Branches
Tags
No related merge requests found
......@@ -171,12 +171,19 @@ data:
metadata:
name: helper-pod
spec:
priorityClassName: system-node-critical
tolerations:
- key: node.kubernetes.io/disk-pressure
operator: Exists
effect: NoSchedule
containers:
- name: helper-pod
image: busybox
```
The helperPod is allowed to run on nodes experiencing disk pressure conditions, despite the potential resource constraints. When it runs on such a node, it can carry out specific cleanup tasks, freeing up space in PVCs, and resolving the disk-pressure issue.
#### `config.json`
##### Definition
......
......@@ -16,15 +16,20 @@ data:
{{- end }}
{{- $config | toPrettyJson | nindent 4 }}
setup: |-
{{ .Values.configmap.setup | nindent 4 }}
{{- .Values.configmap.setup | nindent 4 }}
teardown: |-
{{ .Values.configmap.teardown | nindent 4 }}
{{- .Values.configmap.teardown | nindent 4 }}
helperPod.yaml: |-
apiVersion: v1
kind: Pod
metadata:
name: helper-pod
spec:
priorityClassName: system-node-critical
tolerations:
- key: node.kubernetes.io/disk-pressure
operator: Exists
effect: NoSchedule
containers:
- name: helper-pod
{{- if .Values.privateRegistry.registryUrl }}
......
......@@ -35,9 +35,12 @@ data:
metadata:
name: helper-pod
spec:
priorityClassName: system-node-critical
tolerations:
- key: node.kubernetes.io/disk-pressure
operator: Exists
effect: NoSchedule
containers:
- name: helper-pod
image: busybox
imagePullPolicy: IfNotPresent
......@@ -148,9 +148,12 @@ data:
metadata:
name: helper-pod
spec:
priorityClassName: system-node-critical
tolerations:
- key: node.kubernetes.io/disk-pressure
operator: Exists
effect: NoSchedule
containers:
- name: helper-pod
image: busybox
imagePullPolicy: IfNotPresent
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment