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.
- array of objectswebhooks
Required value
- objectwebhooks.clientConfig
Required value
ClientConfig defines how to communicate with the webhook.
- stringwebhooks.clientConfig.caBundle
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})$ - objectwebhooks.clientConfig.service
Required value
Access to webhook via cluster service.
- stringwebhooks.clientConfig.service.name
Required value
Service name.
Pattern:
^[0-9a-z\-]+$ - stringwebhooks.clientConfig.service.namespace
Required value
Service namespace.
Pattern:
^[0-9a-z\-]+$ - stringwebhooks.clientConfig.service.path
Required value
URI path.
Pattern:
^[0-9a-zA-Z._\/-]+$ - integerwebhooks.clientConfig.service.port
Required value
Service port.
- stringwebhooks.failurePolicy
Specifies scheduling should fail or not fail when the extender returns an error or is not reachable.
Default:
FailAllowed values:
Fail,Ignore - integerwebhooks.timeoutSeconds
Webhook timeout in seconds.
Default:
10 - integerwebhooks.weight
Required value
The numeric multiplier for the node scores that the prioritize call generates.
Allowed values:
1 <= X