GoogleCloudPlatform / gke-managed-certs

Managed Certificates for Kubernetes clusters using GCLB
Apache License 2.0
246 stars 32 forks source link

Doesn't detect annotation #34

Closed mholleville closed 4 years ago

mholleville commented 5 years ago

Hi !

I'm trying to use gke-managed-certs. I following the documentation and when I deploy the controller I have this log

attempting to acquire leader lease kube-system/managed-certificate-controller...

Is it normal ?

krzykwas commented 5 years ago

It is normal.

mholleville commented 5 years ago

When I bind my cert I have this following log

Operation cannot be fulfilled on managedcertificates.networking.gke.io "test.com": the object has been modified; please apply your changes to the latest version and try again

When I show my ingress I have two cert ! Is it normal for a second certificate to be added automatically?

krzykwas commented 4 years ago

I don't know the exact steps you have made. The error you have pasted means that the GKE Managed Certificates controller tried to make a change to a ManagedCertificate resource. It failed, probably because of another change that has been made in the meantime. This is fine, the controller will retry in a moment.

A single ManagedCertificate resource attached to Ingress should only result in creating and attaching a single SslCertificate resource via Ingress annotation pre-shared-cert. It would help to see the yaml definitions of the resources you have created.

krzykwas commented 4 years ago

I'm closing this issue, but please let me know if you'd like to reopen it.