crooked-helicopter-55521
03/25/2020, 4:05 PMPriorityClass
. I'm trying to do the following (on GCP):
const schedulingPriorities = new k8s.scheduling.v1.PriorityClassList("scheduler-priorities", {
items: [
new k8s.scheduling.v1.PriorityClass("selector-spread-priority", {
value: 10,
metadata: {namespace: "default"}
})
]
});
but it fails with the error:
resource scheduler-priorities-5ynfh088 was not successfully created by the Kubernetes API server : failed to determine if the following GVK is namespaced: <http://scheduling.k8s.io/v1|scheduling.k8s.io/v1>, Kind=PriorityClassList
Anyone know what's going wrong there? Seems like the PriorityClassList doesn't take a namespace of its owngorgeous-egg-16927
03/25/2020, 4:08 PMPriorityClass
is a cluster-scoped Kind, so it doesn’t include a namespace. It seems like the error message isn’t very helpful, but try removing the namespace value and see if that fixes itcrooked-helicopter-55521
03/25/2020, 4:09 PMgorgeous-egg-16927
03/25/2020, 4:11 PMcrooked-helicopter-55521
03/25/2020, 4:12 PMgorgeous-egg-16927
03/25/2020, 4:12 PMPriorityClass
directly without the enclosing PriorityClassList
crooked-helicopter-55521
03/25/2020, 4:12 PMbillowy-army-68599
crooked-helicopter-55521
03/25/2020, 4:39 PM