test-connection.yaml 434 B

123456789101112131415
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: "{{ include "chart.fullname" . }}-test-connection"
  5. labels:
  6. {{- include "chart.labels" . | nindent 4 }}
  7. annotations:
  8. "helm.sh/hook": test
  9. spec:
  10. containers:
  11. - name: wget
  12. image: busybox
  13. command: ['wget']
  14. args: ['{{ include "chart.componentFullname" (dict "root" . "name" "frontend") }}:{{ .Values.components.frontend.service.port }}']
  15. restartPolicy: Never