alnoda-workspaces/workspaces/notebook-old-workspace/nbviewer/helm-chart/nbviewer/templates/service.yaml

25 lines
681 B
YAML
Raw Normal View History

2022-05-30 19:24:06 +12:00
apiVersion: v1
kind: Service
metadata:
name: {{ template "nbviewer.fullname" . }}
labels:
{{- include "nbviewer.labels" . | nindent 4 }}
annotations:
{{- if .Values.service.annotations }}
{{- .Values.service.annotations | toYaml | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
selector:
{{- include "nbviewer.matchLabels" . | nindent 4 }}
ports:
- protocol: TCP
port: 80
targetPort: 5000
{{- if .Values.service.ports.nodePort }}
nodePort: {{ .Values.service.ports.nodePort }}
{{- end }}