Code Monkey home page Code Monkey logo

Comments (11)

sethvargo avatar sethvargo commented on July 3, 2024 2

Some k8s tools upgraded to go 1.17 without a regard for backwards compat, which is making this impossible to deploy to Cloud Functions right now, since the latest available version there is 1.16.

#180 is the update PR. You can put it in a container and run it on Cloud Run, but there's no way to run it on Cloud Functions right now.

from berglas.

sethvargo avatar sethvargo commented on July 3, 2024 2

Right - you can do this without the webhook. The webhook just automates the steps you described above (although it uses a sidecar instead).

from berglas.

martinlevesque avatar martinlevesque commented on July 3, 2024 1

@peterldowns

if I understand correctly, the changes in #180 can be used with Cloud Run, as the Dockerfile/build can use the latest go (1.17) version?
Will try it also in few weeks/months also.

from berglas.

martinlevesque avatar martinlevesque commented on July 3, 2024

ping! No auto close please :-)

from berglas.

peterldowns avatar peterldowns commented on July 3, 2024

Also interested in the response here, I have never worked on kubernetes things before but we would like to upgrade our cluster to 1.22 (currently on 1.21) and the MutatingWebhookConfiguration beta api "will no longer be served". Happy users of Berglas, but not sure how to make this fix ourselves.

from berglas.

peterldowns avatar peterldowns commented on July 3, 2024

@sethvargo thank you for the explanation, and for having already fixed this and gotten it ready to go in your PR! I see that you are a member of Google Cloud Platform and work at Google -- is there anything I can do to help request that Cloud Functions add a go1.17/go1.18 runtime? I don't know if you're directly involved, but maybe there's a better place to ask than here? Thank you again for your time and for maintaining Berglas, it's been a wonderfully simple solution that's let us use the Google Cloud Secrets Manager for everything both inside k8s and outside.

from berglas.

sethvargo avatar sethvargo commented on July 3, 2024

I don't have any control over that, sorry.

from berglas.

peterldowns avatar peterldowns commented on July 3, 2024

No problem. We'll just deploy the Cloud Run container instead. Thank you again for your support.

from berglas.

sethvargo avatar sethvargo commented on July 3, 2024

Correct - you can use Cloud Run. I didn't want to switch to Cloud Run because it introduces complexity that folks who aren't familiar with Docker or containers might not want to take on.

from berglas.

martinlevesque avatar martinlevesque commented on July 3, 2024

After looking at the gcloud run samples, my current solution for "typical" kubernetes deployments without using the kubernetes webhook approach:

  • Add this line in the Dockerfile to add the berglas binary: COPY --from=us-docker.pkg.dev/berglas/berglas/berglas:latest /bin/berglas /bin/berglas
  • In the deployment container spec, set a command line (example with python): command: ["/bin/berglas", "exec", "--", "python", "server.py"]
  • Ensure to have a proper kubernetes service account in the namespace.

The remaining thing is to make it work for helm charts, which do not have the /bin/berglas binary. Many helms allow to pass a command, so this part is fine. For the /bin/berglas binary, I guess you could inject it using an initContainer and mount a volume if the helm has initContainer parameters. But if it does not have initContainer parameters, not sure how it can be done. Any ideas?

from berglas.

github-actions avatar github-actions commented on July 3, 2024

This issue is stale because it has been open for 14 days with no
activity. It will automatically close after 7 more days of inactivity.

from berglas.

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.