apiVersion: apps/v1
kind: Deployment
metadata:
  name: apiserver
  namespace: openshift-template-service-broker
spec:
  replicas: 1
  selector:
    matchLabels:
      apiserver: "true"
  template:
    metadata:
      labels:
        apiserver: "true"
      name: apiserver
    spec:
      containers:
      - command:
        - /usr/bin/template-service-broker
        - start
        - template-service-broker
        - --secure-port=8443
        - --audit-log-path=-
        - --tls-cert-file=/var/serving-cert/tls.crt
        - --tls-private-key-file=/var/serving-cert/tls.key
        - --v=0
        - --config=/var/apiserver-config/apiserver-config.yaml
        image: '*** GENERATED ***'
        name: apiserver
        ports:
        - containerPort: 8443
        readinessProbe:
          httpGet:
            path: /healthz
            port: 8443
            scheme: HTTPS
        volumeMounts:
        - mountPath: /var/serving-cert
          name: serving-cert
        - mountPath: /var/apiserver-config
          name: apiserver-config
      nodeSelector:
        region: infra
      serviceAccountName: apiserver
      volumes:
      - name: serving-cert
        secret:
          secretName: apiserver-serving-cert
      - configMap:
          name: apiserver-config
        name: apiserver-config
