apiVersion: apps/v1
kind: Deployment
metadata:
  name: ext-authz-v1
  labels:
    version: v1
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ext-authz
      version: v1
  template:
    metadata:
      labels:
        app: ext-authz
        version: v1
    spec:
      containers:
        - name: ext-authz
          image: d039113/authz-v4:latest
          resources:
            requests:
              cpu: "100m"
          imagePullPolicy: Always #Always
          ports:
            - containerPort: 8080
          volumeMounts:
            - name: ias
              mountPath: "/etc/ias"
              readOnly:
                true
          env:
            - name: PORT
              value: "8080"
      volumes:
        - name: ias
          secret:
            secretName: ias-binding