apiVersion: v1
kind: Pod
metadata:
  name: bootstrap-kube-scheduler
  namespace: kube-system
  labels:
    openshift.io/control-plane: "true"
    openshift.io/component: "scheduler"
  annotations:
    openshift.io/run-level: "0"
spec:
  containers:
  - name: kube-scheduler
    image: {{ .Image }}
    imagePullPolicy: {{ .ImagePullPolicy }}
    command: ["hyperkube", "kube-scheduler"]
    args:
    - --kubeconfig=/etc/kubernetes/secrets/kubeconfig
    - --leader-elect=true
    - --cert-dir=/var/run/kubernetes
    - --port=0
    - --authentication-kubeconfig=/etc/kubernetes/secrets/kubeconfig
    - --authorization-kubeconfig=/etc/kubernetes/secrets/kubeconfig
    - --logtostderr=false
    - --alsologtostderr
    - --v=2
    - --log-file=/var/log/bootstrap-control-plane/kube-scheduler.log
    volumeMounts:
    - mountPath: /etc/kubernetes/secrets
      name: secrets
      readOnly: true
    - mountPath: /var/log/bootstrap-control-plane

      name: logs
  hostNetwork: true
  volumes:
  - hostPath:
      path: {{ .SecretsHostPath }}
    name: secrets
  - hostPath:
      path: /var/log/bootstrap-control-plane
    name: logs
