Code Monkey home page Code Monkey logo

traefik's People

Contributors

admin9705 avatar cringely avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

traefik's Issues

Gcloud failing - file referenced in environment variable needs volume mapping

So I've been updating my server from 8.3 and have run into an issue regarding Traefik.

With the 8.5 rewrite to make Traefik more modular (nice work!) it has broken providers that reference files in their environment variables. For example, Google Cloud's GCE_SERVICE_ACCOUNT_FILE environment variable, which gets mapped to a volume in v8.4 for later usage.

The fix for this is to go the old way, add the file referenced in the env variable as a volume. I hardcoded it in my fork, however obviously this isn't ideal....


Traefik also started erroring when using GCE_SERVICE_ACCOUNT_FILE,:

cannot get ACME client googlecloud: unable to get Google Cloud client: google: could not find default credentials

however changing the environment variable to GOOGLE_APPLICATION_CREDENTIALS as per Google's documentation, which is now also supported by go-acme/lego (and as such Traefik) it started to work with no issues (after the above hardcoding in my fork, without it it said the file referenced in the env was not found...)

I'd recommend switching GCE_SERVICE_ACCOUNT_FILE to GOOGLE_APPLICATION_CREDENTIALS however it could pose issues with those using gcloud currently... though for those using gcloud currently it's unlikely Traefik is working for them anyway using the newer versions...

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.