apiVersion: apps/v1
kind: Deployment
metadata:
  name: tripsinsights-trips
spec:
  replicas: 1
  selector:
    matchLabels:
      app: tripsinsights-trips
  template:
    metadata:
      labels:
        app: tripsinsights-trips
    spec:
      nodeSelector:
        "beta.kubernetes.io/os": linux
      containers:
      - name: tripsinsights-trips
        # image: openhacker3acr.azurecr.io/trips:1.0
        image: acrName
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
          limits:
            cpu: 250m
            memory: 256Mi
        ports:
        - containerPort: 80
        volumeMounts:
            - name: secrets-store-inline
              mountPath: "/mnt/secrets-store"
              readOnly: true
        env:
            - name: CONFIG_FILES_PATH
              value: /mnt/secrets-store
      volumes:
        - name: secrets-store-inline
          csi:
            driver: secrets-store.csi.k8s.io
            readOnly: true
            volumeAttributes:
              secretProviderClass: "azure-kvname"
            nodePublishSecretRef:
              name: secrets-store-creds
