KubeSchedulerWebhookConfiguration

Scope: Cluster
Version: v1alpha1

Defines the configuration for connecting a third-party kube-scheduler extender webhook.

An external kube-scheduler webhook allows expanding the capabilities of the scheduler and consider more complex conditions when planning the load in the Kubernetes cluster.

  • webhooks
    array of objects

    Required value

    • webhooks.clientConfig
      object

      Required value

      ClientConfig defines how to communicate with the webhook.

      • webhooks.clientConfig.caBundle
        string

        Required value

        caBundle is a PEM encoded CA bundle which will be used to validate the webhook’s server certificate.

        Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{4}|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}={2})$

      • webhooks.clientConfig.service
        object

        Required value

        Access to webhook via cluster service.

        • webhooks.clientConfig.service.name
          string

          Required value

          Service name.

          Pattern: ^[0-9a-z\-]+$

        • webhooks.clientConfig.service.namespace
          string

          Required value

          Service namespace.

          Pattern: ^[0-9a-z\-]+$

        • webhooks.clientConfig.service.path
          string

          Required value

          URI path.

          Pattern: ^[0-9a-zA-Z._\/-]+$

        • webhooks.clientConfig.service.port
          integer

          Required value

          Service port.

    • webhooks.failurePolicy
      string

      Specifies scheduling should fail or not fail when the extender returns an error or is not reachable.

      Default: "Fail"

      Allowed values: Fail, Ignore

    • webhooks.timeoutSeconds
      integer

      Webhook timeout in seconds.

      Default: 10

    • webhooks.weight
      integer

      Required value

      The numeric multiplier for the node scores that the prioritize call generates.

      Allowed values: 1 <= X