terraform-provider-kubernetes
terraform-provider-kubernetes copied to clipboard
Missing schedulerName in Pod spec
Description
The k8s PodSpec object has a field called schedulerName
, to choose which scheduler should be used to schedule the Pod. It defaults to default-scheduler
and can otherwise be set to the name of a profile from any scheduler in the cluster's configuration.
I expected to find it as scheduler_name
in kubernetes_pod{,_v1}
as well as kubernetes_deployment{,_v1}
and the various other resources that control Pods. However, it's missing.
Potential Terraform Configuration
resource "kubernetes_deployment_v1" "foo" {
metadata {
name = "foo"
}
spec {
# ...
template {
# ...
spec {
scheduler_name = "foo-scheduler"
# ...
}
}
}
References
- https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podspec-v1-core
- https://kubernetes.io/docs/tasks/extend-kubernetes/configure-multiple-schedulers/
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment