16 lines
405 B
YAML
16 lines
405 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "fullname" . }}
|
|
labels:
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.externalPort }}
|
|
targetPort: {{ .Values.service.internalPort }}
|
|
protocol: TCP
|
|
name: {{ .Values.service.name }}
|
|
selector:
|
|
app: {{ template "fullname" . }}
|