19 lines
571 B
YAML
19 lines
571 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: "{{ include "trigger-v4.fullname" . }}-test-webapp"
|
|
labels:
|
|
{{- include "trigger-v4.labels" . | nindent 4 }}
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: test-webapp
|
|
image: curlimages/curl:8.14.1
|
|
command: ['sh', '-c']
|
|
args:
|
|
- |
|
|
echo "Testing webapp health endpoint..."
|
|
curl -f http://{{ include "trigger-v4.fullname" . }}-webapp:{{ .Values.webapp.service.port }}/healthcheck
|
|
echo "Webapp test completed successfully" |