kind: Service
apiVersion: v1
metadata:
  name: ${APP_NAME}
  namespace: ${KUBE_NAMESPACE}
spec:
  selector:
    app: ${APP_LABEL}
  type: NodePort
  ports:
  - port: 10001
    targetPort: 10001
    nodePort: 31401
    protocol: TCP
    name: main-app
  - port: 10003
    targetPort: 10003
    nodePort: 31402
    protocol: TCP
    name: ms-business
  - port: 10004
    targetPort: 10004
    nodePort: 31403
    protocol: TCP
    name: process-bff
  - port: 10005
    targetPort: 10005
    nodePort: 31404
    protocol: TCP
    name: auth-server-bff
---
kind: Deployment
apiVersion: apps/v1
metadata:
  name: ${APP_NAME}
  namespace: ${KUBE_NAMESPACE}
  labels:
    app: ${APP_LABEL}
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ${APP_LABEL}
  template:
    metadata:
      labels:
        app: ${APP_LABEL}
    spec:
      imagePullSecrets:
      - name: bss-perimeter-registry-secret
      containers:
      - name: ${APP_NAME}
        image: "${DOCKER_IMAGE_TAG}"
        ports:
        - containerPort: 10001
        - containerPort: 10003
        - containerPort: 10004
        - containerPort: 10005
      nodeSelector:
        kubernetes.io/hostname: msk03
  
        