---
 apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: tripviewer
   namespace: webdev
   labels:
    app: tripviewer
 spec:
   replicas: 3
   selector:
    matchLabels:
      app: tripviewer
   template:
    metadata:
      labels:
        app: tripviewer
    spec:
      containers:
      - name: tripviewer
        image: openhackteam4.azurecr.io/tripinsights/tripviewer:latest
        ports:
          - containerPort: 80
        env: 
        - name: TRIPS_API_ENDPOINT
          value: http://trips-service.apidev.svc.cluster.local
        - name: USERPROFILE_API_ENDPOINT
          value: http://userprofile-service.apidev.svc.cluster.local
