2021-01-13 04:26:19 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ include "docker-osx.fullname" . }}
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: {{ include "docker-osx.name" . }}
|
|
|
|
helm.sh/chart: {{ include "docker-osx.chart" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
spec:
|
|
|
|
type: {{ .Values.service.type }}
|
|
|
|
ports:
|
|
|
|
- port: {{ .Values.service.port }}
|
|
|
|
targetPort: {{ .Values.service.targetPort }}
|
|
|
|
protocol: TCP
|
|
|
|
name: http
|
|
|
|
- port: 8888
|
|
|
|
targetPort: 5999
|
|
|
|
protocol: TCP
|
|
|
|
name: vnc
|
2021-01-22 03:48:05 +00:00
|
|
|
{{- range .Values.service.extraPorts }}
|
|
|
|
- port: {{ .port }}
|
|
|
|
targetPort: {{ .targetPort }}
|
|
|
|
protocol: {{ .protocol }}
|
|
|
|
name: {{ .name }}
|
|
|
|
{{- end }}
|
2021-01-13 04:26:19 +00:00
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: {{ include "docker-osx.name" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
{{- if .Values.service.ip }}
|
|
|
|
loadBalancerIP: {{ .Values.service.ip }}
|
|
|
|
{{- end }}
|