0

I'm trying to deploy a website with Kubernetes. While deploying I get this error:

[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.

Does maybe anybody has an idea what the problem could be? Any help is very appreciated!

user9468014
  • 479
  • 2
  • 6
  • 20
  • Can you please provide info on what exactly you deploy, whats you os, whats inside your cluster, bare-metal/cloud and other things that might be helpful for community to be able to help you. – Vit Jan 17 '19 at 16:11
  • This prob has to do with RBAC. You may need to look at the permissions + user: "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" – Michael Petersen Jan 23 '19 at 19:35

0 Answers0