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
