daemonset stress
This commit is contained in:
@@ -60,8 +60,7 @@ dd if=/dev/zero of=/tmp/data bs=10M count=1024; dd if=/tmp/data of=$DISK/output;
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- bash
|
kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- bash
|
||||||
export DISK=/tmp/hdd/
|
export DISK=/mnt/test/
|
||||||
export DISK=/tmp/nvme/
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Mainframe
|
### Mainframe
|
||||||
|
|||||||
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
|
- mountPath: /mnt/test
|
||||||
name: {{ .Release.Name }}
|
name: {{ .Release.Name }}
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ if .Values.exporter }}
|
||||||
- name: exporter
|
- name: exporter
|
||||||
image: hub.ducoterra.net/ducoterra/glances:latest
|
image: hub.ducoterra.net/ducoterra/glances:latest
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ image: hub.ducoterra.net/ducoterra/temp:0.0.10
|
|||||||
glances: true
|
glances: true
|
||||||
iperf: true
|
iperf: true
|
||||||
disk: true
|
disk: true
|
||||||
stress: false
|
stress: true
|
||||||
stress_cpu: "6"
|
stress_cpu: "16"
|
||||||
|
stress_mem: "16Gi"
|
||||||
exporter: true
|
exporter: true
|
||||||
Reference in New Issue
Block a user