apiVersion: v1
kind: Pod
metadata:
  name: "{{ include "anythingllm.fullname" . }}-test-connection"
  labels:
    {{- include "anythingllm.labels" . | nindent 4 }}
  annotations:
    "helm.sh/hook": test
spec:
  containers:
    - name: healthcheck
      image: curlimages/curl:8.1.2
      command: ["sh", "-c"]
      args:
        - "curl -fsS -o /dev/null http://{{ include "anythingllm.fullname" . }}:{{ .Values.service.port }}|| exit 1"
  restartPolicy: Never