---
 apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: userprofile
   namespace: apidev
   labels:
    app: userprofile
 spec:
   replicas: 3
   selector:
    matchLabels:
      app: userprofile
   template:
    metadata:
      labels:
        app: userprofile
    spec:
      containers:
      - name: userprofile
        image: openhackteam4.azurecr.io/tripinsights/userprofile:latest
        ports:
          - containerPort: 80
        env: 
        - name: SQL_SERVER
          value: sqlserverrqe0350.database.windows.net
        - name: SQL_DB_NAME
          value: mydrivingDB
        - name: ASPNETCORE_ENVIRONMENT
          value: Development
        volumeMounts:
        - name: secrets-store01-inline
          mountPath: "/secrets"
          readOnly: true
      volumes:
      - name: secrets-store01-inline
        csi:
          driver: secrets-store.csi.k8s.io
          readOnly: true
          volumeAttributes:
            secretProviderClass: azure-kvname-user-msi