apiVersion: v1
kind: Service
metadata:
  name: "metasfresh-core-stack-mf15-dev"
  labels:
    de.metas.deployment.type: metasfresh-core-stack
    de.metas.deployment.stage: "dev"
    de.metas.deployment.user: "mf15"
  namespace: default
spec:
  ports:
  - name: webapi-http
    port: 8080
    protocol: TCP
    targetPort: 8080
  - name: webapi-remote-debug
    port: 8789
    protocol: TCP
    targetPort: 8789    
  - name: app-http
    port: 8282
    protocol: TCP
    targetPort: 8282
  - name: app-remote-debug
    port: 8788
    protocol: TCP
    targetPort: 8788
  selector:
    de.metas.deployment.stage: "dev"
    de.metas.deployment.type: metasfresh-core-stack
    de.metas.deployment.user: "mf15"
  sessionAffinity: None
# ClusterIP is the default; we use it because we don't want to make the service available to the outside (we have the ingress for that)
# see https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types
  type: ClusterIP