---
# Source: eirini/templates/core/instance-index-env-injector-deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: instance-index-env-injector
  namespace: cf-system
spec:
  selector:
    matchLabels:
      name: instance-index-env-injector
  template:
    metadata:
      labels:
        name: instance-index-env-injector
      annotations:
        sidecar.istio.io/inject: "false"
    spec:
      serviceAccountName: eirini-instance-index-env-injector
      volumes:
        - name: config-map-volume
          configMap:
            name: instance-index-env-injector
        - name: certs
          secret:
            secretName: instance-index-env-injector-certs
      securityContext:
        runAsNonRoot: true
      containers:
      - name: instance-index-env-injector
        image: eirini/instance-index-env-injector@sha256:be86bf2049e09d8c1234bb6b84f3795f3c9323c533d404481b2476b1d58c2d3d
        args: [ "--config", "/etc/eirini/config/instance-index-env-injector.yml" ]
        imagePullPolicy: IfNotPresent
        volumeMounts:
        - name: config-map-volume
          mountPath: /etc/eirini/config
        - name: certs
          mountPath: /etc/eirini/certs
        ports:
        - containerPort: 8443
          name: https
        resources:
          requests:
            cpu: 20m
            memory: 20Mi
          limits:
            cpu: 100m
            memory: 100Mi
