googlearchive / k8s-service-catalog

[DEPRECATED] Commandline tool to manage Service Catalog lifecycle and GCP Service Broker atop Kubernetes Cluster
Apache License 2.0
69 stars 31 forks source link

Certs between apiserver and controller-manager pods can get out of sync after repeated `sc install` #166

Closed kibbles-n-bytes closed 6 years ago

kibbles-n-bytes commented 6 years ago

Running sc install will always generate new certs, but pods don't automatically pick up changes to secrets, so the running pods' certs may be out-of-date compared to what's in the secret. If the apiserver and controller-manager pods' views of the certs get out of sync, communication between them will fail.

We should probably keep generating new certs for security's sake (since someone could have created their own service-catalog namespace and put their own certs in there, so we don't want to just use those). The best solution is to manually kill the API server and controller manager pods (but not the etcd) after applying the new templates, to ensure that the pods pick up the new certs.