maabara/manifests/pihole/templates/tests/test-pihole-endpoint.yml

15 lines
365 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-smoke-test"
annotations:
"helm.sh/hook": test
spec:
containers:
- name: hook1-container
image: curlimages/curl
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'curl http://{{ template "pihole.fullname" . }}-web:80/']
restartPolicy: Never
terminationGracePeriodSeconds: 0