deployments/charts/order-api-server/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.service.name | quote }}
labels:
app: {{ template "order-api.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: {{ .Values.service.type }}
ports:
- name: {{ .Values.service.name | quote }}
port: {{ .Values.service.port }}
targetPort: {{ .Values.service.name | quote }}
selector:
app: {{ template "order-api.fullname" . }}