mirror of
https://github.com/bluxmit/alnoda-workspaces.git
synced 2024-05-15 19:42:16 +12:00
25 lines
681 B
YAML
25 lines
681 B
YAML
|
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 }}
|