diff --git a/README.md b/README.md index 72fe122..20d3627 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,7 @@ dd if=/dev/zero of=/tmp/data bs=10M count=1024; dd if=/tmp/data of=$DISK/output; ```bash kubectl exec -it $(kubectl get pod --selector=app=monitor --output=jsonpath={.items..metadata.name}) -c disk -- bash -export DISK=/tmp/hdd/ -export DISK=/tmp/nvme/ +export DISK=/mnt/test/ ``` ### Mainframe diff --git a/helm/templates/daemonset.yaml b/helm/templates/daemonset.yaml new file mode 100644 index 0000000..e39a62f --- /dev/null +++ b/helm/templates/daemonset.yaml @@ -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 }} \ No newline at end of file diff --git a/helm/templates/deploy.yaml b/helm/templates/deploy.yaml index 34217f8..7d4e3c5 100644 --- a/helm/templates/deploy.yaml +++ b/helm/templates/deploy.yaml @@ -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 diff --git a/helm/values.yaml b/helm/values.yaml index 3c12d0a..9dce41f 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -2,6 +2,7 @@ image: hub.ducoterra.net/ducoterra/temp:0.0.10 glances: true iperf: true disk: true -stress: false -stress_cpu: "6" +stress: true +stress_cpu: "16" +stress_mem: "16Gi" exporter: true \ No newline at end of file