apiVersion: apps/v1
kind: Deployment
metadata:
  name: tripviewer
  namespace: web
  labels:
    app: tripviewer
spec:
  replicas: 1
  selector:
    matchLabels:
      app: tripviewer
  template:
    metadata:
      labels:
        app: tripviewer
    spec:
      containers:
        - name: tripviewer
          image: registryahg5580.azurecr.io/tripinsights/tripviewer:1.0
          env:
            - name: TRIPS_API_ENDPOINT
              value: "http://trips.api.svc.cluster.local"
            - name: USERPROFILE_API_ENDPOINT
              value: "http://userprofile.api.svc.cluster.local"
          resources:
            requests:
              cpu: 100m
              memory: 128Mi
            limits:
              cpu: 250m
              memory: 256Mi
          ports:
            - containerPort: 80
              name: tripviewer
