Ran*_*sts 3 google-compute-engine kubernetes google-kubernetes-engine
我正在使用 K8s ManagedCertificate 在 GCE 上创建证书。我想向我的证书添加一个新的子域,因此更新 yaml 文件并应用 kubectl。我尝试描述我的证书以查看是否一切正常,但发现错误
Warning BackendError 16m (x144 over 36h) managed-certificate-controller googleapi: Error 400: The ssl_certificate resource '< redated >' is already being used by '< redated >', resourceInUseByAnotherResource
Run Code Online (Sandbox Code Playgroud)
另外,在描述中,我没有看到我尝试添加为活动状态的新子域。
Spec:
Domains:
web.sub1.domain1.com
web.sub1.domain2.com
web.newsub.domain2.com
web.sub2.domain2.com
web.sub1.domain3.com
Status:
Certificate Name: < redated >
Certificate Status: Active
Domain Status:
Domain: web.sub1.domain1.com
Status: Active
Domain: web.sub1.domain2.com
Status: Active
Domain: web.sub2.domain2.com
Status: Active
Domain: web.sub1.domain3.com
Status: Active
Expire Time: 2021-07-30T00:54:02.000-07:00
Run Code Online (Sandbox Code Playgroud)
正如 John Hanley 提到的,您无法更新 SSL 证书。Google API for SSL 证书没有更新方法。因此删除了资源并使用kubectl delete -f <cert>.yaml再次创建它kubectl apply -f <cert>.yaml并且它有效
| 归档时间: |
|
| 查看次数: |
484 次 |
| 最近记录: |