forked from mtusi2026/mtusi2026lab6
feat: add bounded observability and verified SLO incident alerts
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{{- if .Values.load.enabled }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: load-{{ .Values.load.run }}
|
||||
spec:
|
||||
backoffLimit: 0
|
||||
activeDeadlineSeconds: 300
|
||||
ttlSecondsAfterFinished: 86400
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: load
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: k6
|
||||
image: grafana/k6:1.3.0
|
||||
args: [run, --quiet, /scripts/{{ .Values.load.script }}]
|
||||
env:
|
||||
- name: BASE_URL
|
||||
value: "https://{{ .Values.ingress.host }}"
|
||||
- name: TARGET_INSTANCE_ID
|
||||
value: {{ .Values.load.target | default "" | quote }}
|
||||
- name: DURATION
|
||||
value: {{ .Values.load.duration | quote }}
|
||||
- name: VUS
|
||||
value: {{ .Values.load.vus | quote }}
|
||||
resources:
|
||||
requests: {cpu: 250m, memory: 128Mi}
|
||||
limits: {cpu: '2', memory: 256Mi}
|
||||
volumeMounts:
|
||||
- name: scripts
|
||||
mountPath: /scripts
|
||||
volumes:
|
||||
- name: scripts
|
||||
configMap:
|
||||
name: load-scripts
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user