diff --git a/tools/stress-cluster/chaos/examples/stress-debug-share-example/Chart.yaml b/tools/stress-cluster/chaos/examples/stress-debug-share-example/Chart.yaml new file mode 100644 index 000000000000..467c5defefc9 --- /dev/null +++ b/tools/stress-cluster/chaos/examples/stress-debug-share-example/Chart.yaml @@ -0,0 +1,14 @@ +apiVersion: v2 +name: debug-share-example +description: An example stress test chart that uses a file share for debugging (e.g. for large log files, heap dumps) +version: 0.1.1 +appVersion: v0.1 +annotations: + stressTest: 'true' # enable auto-discovery of this test via `find-all-stress-packages.ps1` + example: 'true' # enable auto-discovery filtering `find-all-stress-packages.ps1 -filters @{example='true'}` + namespace: 'examples' + +dependencies: +- name: stress-test-addons + version: 0.1.9 + repository: https://stresstestcharts.blob.core.windows.net/helm/ diff --git a/tools/stress-cluster/chaos/examples/stress-debug-share-example/templates/debug-share-job.yaml b/tools/stress-cluster/chaos/examples/stress-debug-share-example/templates/debug-share-job.yaml new file mode 100644 index 000000000000..d3805fb418ca --- /dev/null +++ b/tools/stress-cluster/chaos/examples/stress-debug-share-example/templates/debug-share-job.yaml @@ -0,0 +1,21 @@ +{{- include "stress-test-addons.env-job-template.from-pod" (list . "stress.deploy-example") -}} +{{- define "stress.deploy-example" -}} +metadata: + labels: + testName: "debug-share-example" +spec: + containers: + - name: debug-share-example + image: busybox + command: ['sh', '-c'] + args: + - | + cd $DEBUG_SHARE; + pwd; + mkdir example; + echo "debug share example success" > example/success; + ls; ls example; cat example/success; + # The file share is mounted by default at the path $DEBUG_SHARE + # when including the container-env template + {{- include "stress-test-addons.container-env" . | nindent 6 }} +{{- end -}}