19 lines
552 B
YAML
19 lines
552 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "go-tell.fullname" . }}
|
|
labels:
|
|
{{- include "go-tell.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
selector:
|
|
{{- include "go-tell.selectorLabels" . | nindent 4 }}
|
|
app.kubernetes.io/component: application
|
|
ports:
|
|
- name: http
|
|
port: {{ .Values.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
|
|
nodePort: {{ .Values.service.nodePort }}
|
|
{{- end }}
|