mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
25 lines
959 B
YAML
25 lines
959 B
YAML
{{- if eq .Values.mode "distributed" }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "common.names.fullname" . }}-scheduler
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/component: scheduler
|
|
{{- if .Values.service.annotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.service.annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: mxnet
|
|
name: mxnet
|
|
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePort)) }}
|
|
nodePort: {{ .Values.service.nodePort }}
|
|
{{- else if eq .Values.service.type "ClusterIP" }}
|
|
nodePort: null
|
|
{{- end }}
|
|
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
|
|
app.kubernetes.io/component: scheduler
|
|
{{- end }}
|