Newer
Older

andrew.greene
committed
apiVersion: batch/v1
kind: Job
metadata:
name: kubevirt-service-test
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": test

andrew.greene
committed
# post-install was deploying this job immediately with helm install
"helm.sh/hook-delete-policy": hook-succeeded

andrew.greene
committed
template:
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}

andrew.greene
committed
containers:
- command: ["/bin/sh"]
args: ["-c", "nc -w 3 virt-api.kubevirt.svc.cluster.local 443;exit $?;"]
image: busybox:1.36.0

andrew.greene
committed
name: kubevirt-service-test
restartPolicy: Never