apiVersion: apps/v1
kind: Deployment
metadata:
  name: tripviewer
spec:
  replicas: 1
  selector:
    matchLabels:
      app: tripviewer
  template:
    metadata:
      labels:
        app: tripviewer
    spec:
      containers:
      - name: tripviewer
        image: registryssn3831.azurecr.io/tripinsights/tripviewer:1.0
        env:
          - name: TRIPS_API_ENDPOINT
            value: "http://trips-service.default.svc.cluster.local"
          - name: USERPROFILE_API_ENDPOINT
            value: "http://user-profile-js-service.default.svc.cluster.local"
          - name: ASPNETCORE_ENVIRONMENT
            value: "Development"
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
          limits:
            cpu: 250m
            memory: 256Mi
        ports:
        - containerPort: 80