26 lines
643 B
YAML
26 lines
643 B
YAML
---
|
|
{{- if .Values.tests.enabled }}
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: "{{ include "ollama.fullname" . }}-test-connection"
|
|
namespace: {{ include "ollama.namespace" . }}
|
|
labels:
|
|
{{- include "ollama.labels" . | nindent 4 }}
|
|
{{- with .Values.tests.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
{{- with .Values.tests.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
containers:
|
|
- name: wget
|
|
image: busybox
|
|
command: ['wget']
|
|
args: ['{{ include "ollama.fullname" . }}:{{ .Values.service.port }}']
|
|
restartPolicy: Never
|
|
{{ end }}
|