GKE配置连接器StorageBucket资源在kubectl上超时

我正在尝试从Google的示例清单中应用以下StorageBucket resource

apiVersion: storage.cnrm.cloud.google.com/v1alpha2
kind: StorageBucket
metadata:
  labels:
    label-one: "value-one"
  name: dmacthedestroyer-hdjkwhekhjewkjeh-storagebucket-sample
spec:
  lifecycleRule:
    - action:
        type: Delete
      condition:
        age: 7
  versioning:
    enabled: true
  cors:
    - origin: ["http://example.appspot.com"]
      responseHeader: ["Content-Type"]
      method: ["GET","HEAD","DELETE"]
      maxAgeSeconds: 3600

响应超时并出现以下错误:

$ kubectl apply -f sample.yaml
Error from server (Timeout): error when creating "sample.yaml": Timeout: request did not complete within requested timeout 30s

更新: 由于某些未知原因,错误消息已更改为:

Error from server (InternalError): error when creating "sample.yaml": Internal error occurred: failed calling webhook "cnrm-deny-unknown-fields-webhook.google.com": Post https://cnrm-validating-webhook-service.cnrm-system.svc:443/deny-unknown-fields?timeout=30s: net/http: TLS handshake timeout

我已经在两个不同的网络上对此进行了测试,但结果相同。

我按照their documentation的说明,使用具有roles/owner权限的专用服务帐户安装了Config Connector组件,完全按照上述说明进行了操作。

通过此设置,我已经成功部署了IAMServiceAccountIAMServiceAccountKey资源。

我应该如何解决此问题?

a19811204 回答:GKE配置连接器StorageBucket资源在kubectl上超时

我的问题是由于服务帐户配置不正确。

特别是,我正在将owner角色分配给另一个项目。

正确配置我的服务帐户后,超时错误得到解决。

本文链接:https://www.f2er.com/3156180.html

大家都在问