我正在尝试使用Kubernetes部署一个网站。部署时出现此错误:
[exec kubectl]: Error from server (Forbidden): error when retrieving current configuration of:
Resource: "certmanager.k8s.io/v1alpha1, Resource=certificates", GroupVersionKind: "certmanager.k8s.io/v1alpha1, Kind=Certificate"
Name: "mysite", Namespace: "mysite-com-9777808"
Object: &{map["apiVersion":"certmanager.k8s.io/v1alpha1" "kind":"Certificate" "metadata":map["name":"mysite" "namespace":"mysite-com-9777808" "annotations":map["kubectl.kubernetes.io/last-applied-configuration":""]] "spec":map["secretName":"mysite-cert" "acme":map["config":[map["domains":["mysite.com" "www.mysite.com"] "http01":map["ingressClass":"nginx"]]]] "dnsNames":["mysite.com" "www.mysite.com"] "issuerRef":map["kind":"ClusterIssuer" "name":"letsencrypt-production"]]]}
from server for: "/mase.ai/mysite.com/deployment/webapp.yml": certificates.certmanager.k8s.io "mysite" is forbidden: User "system:serviceaccount:mysite-com-9777808:mysite-com-9777808-service-account" cannot get certificates.certmanager.k8s.io in the namespace "mysite-com-9777808"
[deployment]: An error happend during the kubectl command.
也许有人知道问题可能是什么吗? 任何帮助都非常感谢!