apiVersion: v1
kind: Pod
metadata:
  name: "{{ include "novnc.fullname" . }}-test-connection"
  labels:
    app.kubernetes.io/name: {{ include "novnc.name" . }}
    helm.sh/chart: {{ include "novnc.chart" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
  annotations:
    "helm.sh/hook": test-success
spec:
  containers:
    - name: wget
      image: busybox
      command: ['wget']
      args:  ['{{ include "novnc.fullname" . }}:{{ .Values.service.port }}']
  restartPolicy: Never
