apiVersion: apps/v1
kind: Deployment
metadata:
  name: service-tracker-ui-aci
spec:
  replicas: 3
  selector:
    matchLabels:
      app: service-tracker-ui
  template:
    metadata:
      labels:
        app: service-tracker-ui
    spec:
      containers:
        - image: chzbrgr71/service-tracker-ui:1.0
          imagePullPolicy: Always
          name: service-tracker-ui
          env:
            - name: FLIGHT_API_ROOT
              value: http://flights-api.hackfest.svc.cluster.local:3003/
            - name: WEATHER_API_ROOT
              value: http://weather-api.hackfest.svc.cluster.local:3015/
            - name: QUAKES_API_ROOT
              value: http://quakes-api.hackfest.svc.cluster.local:3012/
            - name: APPINSIGHTS_INSTRUMENTATIONKEY
              value: 538ca440-0fb6-418c-968b-555245770918
          ports:
          - containerPort: 3009
            protocol: TCP
      restartPolicy: Always 
      nodeSelector:
        kubernetes.io/role: agent
        beta.kubernetes.io/os: linux
        type: virtual-kubelet
      tolerations:
      - key: virtual-kubelet.io/provider
        operator: Exists
      - key: azure.com/aci
        effect: NoSchedule       