"pilot.validation.istio.io" 在 GKE 上失败

"pilot.validation.istio.io" fails on GKE

我使用 istio-addon 在 GKE 上启用了 Istio。根据图像,Istio 的版本是 1.6。部署包含 RequestAuthentication 资源的应用程序会出现以下错误:

 admission webhook "pilot.validation.istio.io" denied the request:
 unrecognized type RequestAuthentication

RequestAuthentication 必须在版本 1.6 中可用。有什么方法可以检查兼容性吗?

更新:在我的本地安装中,一切都适用于 Istio 1.9。配置如下:

apiVersion: security.istio.io/v1beta1
kind: RequestAuthentication
metadata: 
  name: xxx-auth
spec:
  selector:
    matchLabels:
      app: xxx-fe
  jwtRules:
  - issuer:  "{{ .Values.idp.issuer }}"
    jwksUri: "{{ .Values.idp.jwksUri }}"

我已经发布了社区维基答案以提高可见性。

正如Katya Gorshkova在评论中提到的:

Finally, I turned off istio addon and installed the newest istio 1.11.1. It worked without any problems

另见