2023-12-24 16:34:33 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: ollama-webui-service
|
|
|
|
namespace: {{ .Values.namespace }}
|
|
|
|
spec:
|
2023-12-28 16:28:09 +01:00
|
|
|
type: {{ .Values.webui.service.type }} # Default: NodePort # Use LoadBalancer if you're on a cloud that supports it
|
2023-12-24 16:34:33 +01:00
|
|
|
selector:
|
|
|
|
app: ollama-webui
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: {{ .Values.webui.servicePort }}
|
|
|
|
targetPort: {{ .Values.webui.servicePort }}
|
|
|
|
# If using NodePort, you can optionally specify the nodePort:
|
|
|
|
# nodePort: 30000
|