You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you expect to see?
We expect to see the tidb-operator is successfully deployed with the admission webhook enabled.
What did you see instead?
The operator fails to deploy, throwing the following error message:
Error: unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "APIService" in version "apiregistration.k8s.io/v1beta1", unable to recognize "": no matches for kind "MutatingWebhookConfiguration" in version "admissionregistration.k8s.io/v1beta1", unable to recognize "": no matches for kind "ValidatingWebhookConfiguration" in version "admissionregistration.k8s.io/v1beta1"]
Possible reason
We think this is caused because we are using kubernetes version newer than v1.22. Kubernetes v1.22 has several API removals as described here: https://kubernetes.io/blog/2021/07/14/upcoming-changes-in-kubernetes-1-22/
To migrate, we need to change the apiVersion from admissionregistration.k8s.io/v1beta1 to admissionregistration.k8s.io/v1, apiregistration.k8s.io/v1.
Additional notes
However, after making these changes in the admission-webhook-registration.yaml, we still get the following error message from the helm install:
Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: [ValidationError(MutatingWebhookConfiguration.webhooks[0]): missing required field "sideEffects" in io.k8s.api.admissionregistration.v1.MutatingWebhook, ValidationError(MutatingWebhookConfiguration.webhooks[0]): missing required field "admissionReviewVersions" in io.k8s.api.admissionregistration.v1.MutatingWebhook]
There seems to be some required fields for the webhook resources.
The text was updated successfully, but these errors were encountered:
Bug Report
What version of Kubernetes are you using?
What version of TiDB Operator are you using?
n/a
What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?
n/a
What's the status of the TiDB cluster pods?
n/a
What did you do?
We tried to deploy the tidb-operator with admission webhook enabled using helm chart following the instructions described here: https://docs.pingcap.com/tidb-in-kubernetes/stable/enable-admission-webhook
What did you expect to see?
We expect to see the tidb-operator is successfully deployed with the admission webhook enabled.
What did you see instead?
The operator fails to deploy, throwing the following error message:
Possible reason
We think this is caused because we are using kubernetes version newer than v1.22. Kubernetes v1.22 has several API removals as described here: https://kubernetes.io/blog/2021/07/14/upcoming-changes-in-kubernetes-1-22/
To migrate, we need to change the apiVersion from
admissionregistration.k8s.io/v1beta1
toadmissionregistration.k8s.io/v1
,apiregistration.k8s.io/v1
.Additional notes
However, after making these changes in the
admission-webhook-registration.yaml
, we still get the following error message from the helm install:There seems to be some required fields for the webhook resources.
The text was updated successfully, but these errors were encountered: