daemonset stress
This commit is contained in:
25
helm/templates/daemonset.yaml
Normal file
25
helm/templates/daemonset.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
{{ if .Values.stress }}
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: stress-{{ .Release.Name }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: stress-{{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: stress-{{ .Release.Name }}
|
||||
spec:
|
||||
containers:
|
||||
- name: stress
|
||||
image: hub.ducoterra.net/ducoterra/stress:latest
|
||||
resources:
|
||||
requests:
|
||||
memory: 1Mi
|
||||
cpu: 1m
|
||||
limits:
|
||||
memory: {{ .Values.stress_mem | quote }}
|
||||
cpu: {{ .Values.stress_cpu | quote }}
|
||||
{{ end }}
|
||||
@@ -56,17 +56,6 @@ spec:
|
||||
- mountPath: /mnt/test
|
||||
name: {{ .Release.Name }}
|
||||
{{ end }}
|
||||
{{ if .Values.stress }}
|
||||
- name: stress
|
||||
image: hub.ducoterra.net/ducoterra/stress:latest
|
||||
resources:
|
||||
requests:
|
||||
memory: 128Mi
|
||||
cpu: 1m
|
||||
limits:
|
||||
memory: 512Mi
|
||||
cpu: {{ .Values.stress_cpu | quote }}
|
||||
{{ end }}
|
||||
{{ if .Values.exporter }}
|
||||
- name: exporter
|
||||
image: hub.ducoterra.net/ducoterra/glances:latest
|
||||
|
||||
Reference in New Issue
Block a user