---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    component: scheduler
    tier: control-plane
  name: kaiwo-scheduler
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      component: scheduler
      tier: control-plane
  template:
    metadata:
      labels:
        component: scheduler
        tier: control-plane
        version: second
    spec:
      containers:
        - command:
            - /usr/local/bin/kube-scheduler
            - --config=/etc/kubernetes/kaiwo-scheduler/kaiwo-scheduler-config.yaml
          image: registry.k8s.io/kube-scheduler@sha256:1ce9d9222572dc72760ba18589a048b3cf32163dac0708522f3b991974fafdec # Original tag: v1.32.0
          livenessProbe:
            httpGet:
              path: /healthz
              port: 10259
              scheme: HTTPS
            initialDelaySeconds: 15
          name: kube-second-scheduler
          readinessProbe:
            httpGet:
              path: /healthz
              port: 10259
              scheme: HTTPS
          resources:
            limits:
              memory: 4Gi
            requests:
              cpu: 200m
              memory: 256Mi
          securityContext:
            privileged: false
          volumeMounts:
            - mountPath: /etc/kubernetes/kaiwo-scheduler
              name: config-volume
      hostNetwork: false
      hostPID: false
      serviceAccountName: kaiwo-scheduler
      volumes:
        - configMap:
            name: kaiwo-scheduler-config
          name: config-volume