apiVersion: v1 kind: Pod metadata: name: "{{ include "ragflow.fullname" . }}-test-connection" labels: {{- include "ragflow.labels" . | nindent 4 }} annotations: "helm.sh/hook": test spec: containers: - name: wget image: busybox command: - 'wget' args: - -qO- - {{ printf "http://%s.%s.svc:%d/v1/system/ping" (include "ragflow.componentFullname" (dict "root" . "component" "api")) .Release.Namespace (int .Values.ragflow.api.service.port) }} restartPolicy: Never