ollama-service.yaml 471 B

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