Open hemanth7787 opened 6 years ago
It seems the problem is related to service account creation https://github.com/jetstack/kube-lego/issues/290
See @michailbrynard 's answer
Solution:
gcloud info | grep Account
myname@mycompany.com
kubectl create clusterrolebinding myname-cluster-admin-binding --clusterrole=cluster-admin --user=myname@mycompany.com
After that follow this tutorial https://github.com/jetstack/kube-lego/blob/master/examples/gce/README.md
This should work too if you're logged in:
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole cluster-admin \
--user $(gcloud config get-value account)
Followed instruction from this readme: https://github.com/GoogleCloudPlatform/endpoints-samples/tree/master/k8s/dns-ssl-kube-lego
Waited fro 30mins
The HTTP endpoint is working but HTTPS is not
dig echo.endpoints.${PROJECT_ID}.cloud.goog
curl http://echo.endpoints.${PROJECT_ID}.cloud.goog/.well-known/acme-challenge/_selftest
kubectl --namespace=echo get secret echo-tls
kubectl logs kube-lego-7dcvc89cb5-fbm5k --namespace kube-lego