aibrix icon indicating copy to clipboard operation
aibrix copied to clipboard

What is the minimum k8s version requirement?

Open zhaotyer opened this issue 9 months ago • 3 comments

🐛 Describe the bug

unknown field "x-kubernetes-validations" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps k8s version: Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.15", GitCommit:"58178e7f7aab455bc8de88d3bdd314b64141e7ee", GitTreeState:"clean", BuildDate:"2021-09-27T13:35:39Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.15", GitCommit:"58178e7f7aab455bc8de88d3bdd314b64141e7ee", GitTreeState:"clean", BuildDate:"2021-09-27T13:35:39Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}

Steps to Reproduce

1.kubectl create -f https://github.com/vllm-project/aibrix/releases/download/v0.2.1/aibrix-dependency-v0.2.1.yaml error occur:

namespace/envoy-gateway-system created
error: error validating "https://github.com/vllm-project/aibrix/releases/download/v0.2.1/aibrix-dependency-v0.2.1.yaml": error validating data: ValidationError(CustomResourceDefinition.spec.versions[0].schema.openAPIV3Schema.properties.spec.properties.sessionPersistence): unknown field "x-kubernetes-validations" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps; if you choose to ignore these errors, turn validation off with --validate=false

Expected behavior

work well

Environment

v0.2.1

zhaotyer avatar Mar 25 '25 12:03 zhaotyer

@zhaotyer x-kubernetes-validations is a structural schema validation extension introduced in Kubernetes v1.23 as an alpha feature and graduated to beta in v1.25.

What you can do for short term workaround is to remove x-kubernetes-validations field in the yaml and retry it

https://github.com/vllm-project/aibrix/releases/download/v0.2.1/aibrix-dependency-v0.2.1.yaml

We will consider to provide a cleaner version soon.

Jeffwan avatar Mar 25 '25 19:03 Jeffwan

We will consider to provide a cleaner version soon.

Thanks your reply, Looking forward to new cleaner version

zhaotyer avatar Mar 26 '25 03:03 zhaotyer

For LWS, https://github.com/kubernetes-sigs/lws/blob/main/site/content/en/docs/troubleshooting/_index.md suggest upgrading the Kubernetes cluster to v1.26+ for feature gate StatefulSetStartOrdinal.

  • Edited: my fault, I thought AIBrix is using LWS. It seems not. 😅

For Kubernetes Community, https://endoflife.date/kubernetes 1.30+ would be suggested and https://github.com/kubernetes/community/tree/master/wg-lts may have some updates on official suppoted versions later.

pacoxu avatar Apr 23 '25 08:04 pacoxu