apiVersion: apps/v1
kind: Deployment
metadata:
  name: calculator-${LABEL_VERSION}
  namespace: calculator-blue-green
spec:
  replicas: 2
  selector:
    matchLabels:
      app: calculator
      version: ${LABEL_VERSION}
  template:
    metadata:
      labels:
        app: calculator
        version: ${LABEL_VERSION}
    spec:
      containers:
      - name: calculator
        image: ${IMAGE_TAG}
        ports:
        - containerPort: 3000