apiVersion: apps/v1
kind: Deployment
metadata:
  name: lbg-api
  labels:
    app: node-app
    env: prod
spec:
  template:
    metadata:
      labels:
        app: lbg4-api
    spec:
      containers:
      - name: node-container
        image: gcr.io/lbg-210322/danproject:v{{VERSION}}
        ports:
        - containerPort: 5000
        env:
        - name: PORT
          value: "5000"
  replicas: 2
  selector:
    matchLabels:
      app: lbg4-api
  strategy:
    rollingUpdate:
      maxUnavailable: 25%
      maxSurge: 25%
