go-guess/deploy/helm/go-guess/templates/tests/test-connection.yaml
2026-10-03 04:39:14 +02:00

27 lines
No EOL
732 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: "{{ include "go-guess.fullname" . }}-test-connection"
labels:
{{- include "go-guess.labels" . | nindent 4 }}
annotations:
helm.sh/hook: test
helm.sh/hook-delete-policy: before-hook-creation
spec:
automountServiceAccountToken: false
restartPolicy: Never
containers:
- name: wget
image: busybox:1.37
command:
- wget
args:
- -qO-
- "http://{{ include "go-guess.apiServiceName" . }}:{{ .Values.api.service.port }}/api/health"
- name: wget-web
image: busybox:1.37
command:
- wget
args:
- -qO-
- "http://{{ include "go-guess.webDeploymentName" . }}:{{ .Values.web.service.port }}/"