mirror of
https://github.com/truenas/charts.git
synced 2026-04-24 10:30:37 +08:00
22 lines
619 B
YAML
22 lines
619 B
YAML
{{- $serviceName := (include "common.names.fullname" .) -}}
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: {{ .Release.Name }}-test-pod
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
release: {{ .Release.Name }}
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
spec:
|
|
containers:
|
|
- name: test-curl
|
|
image: alpine/curl
|
|
imagePullPolicy: "IfNotPresent"
|
|
command:
|
|
- /bin/sh
|
|
- -ec
|
|
- |
|
|
curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{.Values.web_port}}/
|
|
restartPolicy: Never
|