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
Required value
- webhooks.clientConfig
Required value
ClientConfig defines how to communicate with the webhook.
- webhooks.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})$
- webhooks.clientConfig.service
Required value
Access to webhook via cluster service.
- webhooks.clientConfig.service.name
Required value
Service name.
Pattern:
^[0-9a-z\-]+$
- webhooks.clientConfig.service.namespace
Required value
Service namespace.
Pattern:
^[0-9a-z\-]+$
- webhooks.clientConfig.service.path
Required value
URI path.
Pattern:
^[0-9a-zA-Z._\/-]+$
- webhooks.clientConfig.service.port
Required value
Service port.
- webhooks.failurePolicy
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
Webhook timeout in seconds.
Default:
10
- webhooks.weight
Required value
The numeric multiplier for the node scores that the prioritize call generates.
Allowed values:
1 <= X