If you’re using Kubernetes 1.27.3 to install KServe 0.9 or 0.10, you might encounter this error:
resource mapping not found for name: "activator" namespace: "knative-serving"
from "https://github.com/knative/serving/releases/download/knative-v1.7.0/serving-core.yaml":
no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"
ensure CRDs are installed first
resource mapping not found for name: "webhook" namespace: "knative-serving"
from "https://github.com/knative/serving/releases/download/knative-v1.7.0/serving-core.yaml":
no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"
Here’s the main issue:
Kubernetes 1.27.3 no longer supports the autoscaling/v2beta2
API version of HorizontalPodAutoscaler
. The Kubernetes release notes state:
The autoscaling/v2beta2 API version of
HorizontalPodAutoscaler
is no longer served as of v1.26.
Meanwhile, KNative’s release notes indicate that its v1.7 version is validated for Kubernetes v1.24 and v1.25 only, which leads to this compatibility problem.
Possible solutions:
A note that if you go the Downgrade route, you might see the following warning on your logs:
Warning: autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+;
use autoscaling/v2 HorizontalPodAutoscaler