---
apiVersion: v1
kind: Pod
metadata:
  name: bootstrap-kube-scheduler
  namespace: kube-system
  labels:
    app.kubernetes.io/component: kube-scheduler
    app.kubernetes.io/instance: kube-scheduler-porkadot
    app.kubernetes.io/managed-by: porkadot
    app.kubernetes.io/name: kube-scheduler
    app.kubernetes.io/version: v1.21.3
    app.kubernetes.io/part-of: kubernetes
    k8s-app: kube-scheduler
spec:
  containers:
  - name: kube-scheduler
    image: k8s.gcr.io/kube-scheduler:v1.21.3
    command:
    - kube-scheduler
    - --leader-elect=true
    - --v=2
    - --kubeconfig=/etc/kubernetes/bootstrap/kubeconfig-bootstrap.yaml
    - --authentication-kubeconfig=/etc/kubernetes/bootstrap/kubeconfig-bootstrap.yaml
    - --authorization-kubeconfig=/etc/kubernetes/bootstrap/kubeconfig-bootstrap.yaml
    volumeMounts:
    - name: kubernetes
      mountPath: /etc/kubernetes
      readOnly: true
  hostNetwork: true
  volumes:
  - name: kubernetes
    hostPath:
      path: /etc/kubernetes
