helm/templates/tests/test-connection.yaml
raw| 1 | apiVersion: v1 |
| 2 | kind: Pod |
| 3 | metadata: |
| 4 | name: "{{ include "helm.fullname" . }}-test-connection" |
| 5 | labels: |
| 6 | {{- include "helm.labels" . | nindent 4 }} |
| 7 | annotations: |
| 8 | "helm.sh/hook": test-success |
| 9 | spec: |
| 10 | containers: |
| 11 | - name: wget |
| 12 | image: busybox |
| 13 | command: ['wget'] |
| 14 | args: ['{{ include "helm.fullname" . }}:{{ .Values.service.port }}'] |
| 15 | restartPolicy: Never |