---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: node-app
spec:
  selector:
    matchLabels:
      app: node-app
  replicas: 1
  template:
    metadata:
      labels:
        app: node-app
    spec:
      nodeSelector:
        kubernetes.azure.com/mode: user
      tolerations:
      - key: "kubernetes.azure.com/scalesetpriority"
        operator: "Exists"
        effect: "NoSchedule"
      containers:
        - name: node-app
          image: containerrepoakstest.azurecr.io/node-app:SET_TAG_IN_OVERLAY
          command: ["node"]
          args: ["websocket-server.js"]
          env:
            - name: GRPC_HOST
              value: "python-app:50051"
          ports:
            - containerPort: 8080
              name: ws
              protocol: TCP
          resources:
            limits:
              memory: 200Mi
              cpu: "200m"
            requests:
              memory: 200Mi
              cpu: "200m"
