Giter Club home page Giter Club logo

Comments (7)

devth avatar devth commented on May 14, 2024

I fixed the JWS issue so ignore that part (I had to delete the kube-lego-account secret when switching between staging and prod). Still a heads up about the 500s: apparently they are benign?

from kube-lego.

simonswine avatar simonswine commented on May 14, 2024

The 503 could come from multiple sources.

Please provide a bit more context:

  • Which cloud you are running in?
  • Can you reach nginx in general "http://foo.com/" should so the service from ingress?
  • Can you verify the k8s services have endpoints assinged?

from kube-lego.

devth avatar devth commented on May 14, 2024
  • GKE
  • Yes, and SSL is configured and working
  • Yes, nginx service has an external IP

from kube-lego.

simonswine avatar simonswine commented on May 14, 2024

I think it's normal that you see a couple of 503s before nginx actually routes the traffic to kube-lego. Can you provide a more detailed log?

from kube-lego.

devth avatar devth commented on May 14, 2024

Here's the log from startup up until it actually obtains the cert:

time="2016-06-06T13:07:44Z" level=info msg="kube-lego 0.0.2-4c1dd2c0 starting" context=kubelego
time="2016-06-06T13:07:44Z" level=info msg="connected to kubernetes api v1.2.4" context=kubelego
time="2016-06-06T13:07:44Z" level=info msg="start event watcher" context=kubelego
time="2016-06-06T13:07:44Z" level=info msg="server listening on http://:8080/" context=acme
time="2016-06-06T13:07:44Z" level=info msg="CREATE default/foo" context=kubelego
time="2016-06-06T13:07:44Z" level=info msg="Worker: begin processing true" context=kubelego
time="2016-06-06T13:07:44Z" level=info msg="ignoring as has no annotiation 'kubernetes.io/tls-acme'" context=ingress name=kube-lego namespace=default
time="2016-06-06T13:07:44Z" level=info msg="update challenge endpoint ingress, if needed" context=kubelego
time="2016-06-06T13:07:44Z" level=info msg="challenge endpoints don't need an update" context=ingress name=kube-lego namespace=default
time="2016-06-06T13:07:44Z" level=info msg="process certificates requests for ingresses" context=kubelego
time="2016-06-06T13:07:44Z" level=info msg="creating new secret" context=secret name=foo-tls namespace=default
time="2016-06-06T13:07:44Z" level=info msg="no cert associated with ingress" context="ingress_tls" name=foo namespace=default
time="2016-06-06T13:07:44Z" level=info msg="requesting certificate for foo.com" context="ingress_tls" name=foo namespace=default
time="2016-06-06T13:07:44Z" level=debug msg="testing reachablity of http://foo.com/.well-known/acme-challenge/_selftest" context=acme host=foo.com
time="2016-06-06T13:07:44Z" level=warning msg="wrong status code '503'" context=acme host=foo.com
time="2016-06-06T13:07:45Z" level=debug msg="testing reachablity of http://foo.com/.well-known/acme-challenge/_selftest" context=acme host=foo.com
time="2016-06-06T13:07:45Z" level=warning msg="wrong status code '503'" context=acme host=foo.com
time="2016-06-06T13:07:46Z" level=debug msg="testing reachablity of http://foo.com/.well-known/acme-challenge/_selftest" context=acme host=foo.com
time="2016-06-06T13:07:46Z" level=info msg="initialize lego acme connection" context=acme
time="2016-06-06T13:07:46Z" level=info msg="creating new secret" context=secret name=kube-lego-account namespace=default
2016/06/06 13:07:46 [INFO] acme: Registering account for [email protected]
time="2016-06-06T13:07:47Z" level=info msg="creating new secret" context=secret name=kube-lego-account namespace=default
2016/06/06 13:07:47 [INFO][foo.com] acme: Obtaining bundled SAN certificate
2016/06/06 13:07:47 [INFO][foo.com] acme: Trying to solve HTTP-01
time="2016-06-06T13:07:47Z" level=info msg="responding to challenge request" basePath="/.well-known/acme-challenge" context=acme host=foo.com token="fehKLcN4MKvX-2fgkCOmss9qzcq805wvXHws_shI8_Y"
2016/06/06 13:07:48 [INFO][foo.com] The server validated our request
2016/06/06 13:07:48 [INFO][foo.com] acme: Validations succeeded; requesting certificates
2016/06/06 13:07:49 [INFO] acme: Requesting issuer cert from https://acme-v01.api.letsencrypt.org/acme/issuer-cert
2016/06/06 13:07:49 [INFO][foo.com] Server responded with a certificate.

from kube-lego.

simonswine avatar simonswine commented on May 14, 2024

That's a completely normal output, I have just have to move the 503 output from level warn to debug/info.

The first self-test requests fail, because nginx reconfiguration takes some time. kube-lego is just retrying with an exponential back-off...

from kube-lego.

devth avatar devth commented on May 14, 2024

👍

from kube-lego.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.