2020-09-03 03:41:58 +08:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ include "code-server.fullname" . }}
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: {{ include "code-server.name" . }}
|
|
|
|
helm.sh/chart: {{ include "code-server.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: http
|
|
|
|
protocol: TCP
|
|
|
|
name: http
|
2023-02-14 02:56:05 +08:00
|
|
|
{{- range .Values.extraPorts }}
|
|
|
|
- port: {{ .port }}
|
|
|
|
targetPort: {{ .port }}
|
|
|
|
protocol: {{ .protocol }}
|
|
|
|
name: {{ .name }}
|
|
|
|
{{- end }}
|
2020-09-03 03:41:58 +08:00
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: {{ include "code-server.name" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|