ollama-service.yaml 524 B

1234567891011121314151617181920212223
  1. {{- if not .Values.ollama.externalHost }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "ollama.name" . }}
  6. labels:
  7. {{- include "ollama.labels" . | nindent 4 }}
  8. {{- with .Values.ollama.service.annotations }}
  9. annotations:
  10. {{- toYaml . | nindent 4 }}
  11. {{- end }}
  12. spec:
  13. selector:
  14. {{- include "ollama.selectorLabels" . | nindent 4 }}
  15. {{- with .Values.ollama.service }}
  16. type: {{ .type }}
  17. ports:
  18. - protocol: TCP
  19. name: http
  20. port: {{ .port }}
  21. targetPort: http
  22. {{- end }}
  23. {{- end }}