apiVersion: apps/v1
kind: StatefulSet
metadata:
  labels:
    kustomize.component: admission-webhook-bootstrap
  name: admission-webhook-bootstrap-stateful-set
  namespace: kubeflow
spec:
  replicas: 1
  selector:
    matchLabels:
      kustomize.component: admission-webhook-bootstrap
  serviceName: service
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: "false"
      labels:
        kustomize.component: admission-webhook-bootstrap
    spec:
      containers:
      - command:
        - sh
        - /var/webhook-config/create_ca.sh
        image: gcr.io/kubeflow-images-public/ingress-setup:latest
        name: bootstrap
        volumeMounts:
        - mountPath: /var/webhook-config/
          name: admission-webhook-config
      restartPolicy: Always
      serviceAccountName: admission-webhook-bootstrap-service-account
      volumes:
      - configMap:
          name: admission-webhook-bootstrap-config-map
        name: admission-webhook-config
  volumeClaimTemplates: []
