Skip to content
Snippets Groups Projects
service.yaml 538 B
Newer Older
Andrea Michelotti's avatar
Andrea Michelotti committed
apiVersion: v1
kind: Service
metadata:
  name: {{ include "jupyter-control-notebook-chart.fullname" . }}
  labels:
    {{- include "jupyter-control-notebook-chart.labels" . | nindent 4 }}
spec:
  type: {{ .Values.service.type }}
Andrea Michelotti's avatar
Andrea Michelotti committed
  {{- if .Values.staticIP }}
  clusterIP: {{.Values.staticIP}}
  {{- else }}
  clusterIP: None
  {{- end }}
Andrea Michelotti's avatar
Andrea Michelotti committed
  ports:
    - port: {{ .Values.service.port }}
      targetPort: http
      protocol: TCP
      name: http
  selector:
    {{- include "jupyter-control-notebook-chart.selectorLabels" . | nindent 4 }}