apiVersion: v1
kind: Service
metadata:
  name: {{ .Values.app.svc.mobileshoppingapigw }}
  labels:
    app: {{ template "apigwms.name" . }}
    chart: {{ template "apigwms.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  type: {{ .Values.service.type }}
  ports:
    - port: {{ .Values.service.port }}
      targetPort: http
      protocol: TCP
      name: http
    - port: {{ .Values.service.adminPort }}
      targetPort: admin
      protocol: TCP
      name: admin     
  selector:
    app: {{ template "apigwms.name" . }}
    release: {{ .Release.Name }}
