apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: cainjector
    app.kubernetes.io/component: cainjector
    app.kubernetes.io/instance: cert-manager
    app.kubernetes.io/name: cainjector
    app.kubernetes.io/version: v1.7.1
  name: cert-manager-cainjector
  namespace: openshift-cert-manager
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/component: cainjector
      app.kubernetes.io/instance: cert-manager
      app.kubernetes.io/name: cainjector
  template:
    metadata:
      labels:
        app: cainjector
        app.kubernetes.io/component: cainjector
        app.kubernetes.io/instance: cert-manager
        app.kubernetes.io/name: cainjector
        app.kubernetes.io/version: v1.7.1
    spec:
      containers:
        - args:
            - --v=2
            - --leader-election-namespace=kube-system
          command:
            - /app/cmd/cainjector/cainjector
          env:
            - name: POD_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
          image: quay.io/jetstack/cert-manager-cainjector:v1.7.1
          imagePullPolicy: IfNotPresent
          name: cert-manager
      securityContext:
        runAsNonRoot: true
      serviceAccountName: cert-manager-cainjector
