Coder Social home page Coder Social logo

Comments (5)

byxorna avatar byxorna commented on July 2, 2024

Hey @like-inspur - looks like the injector decided that the annotation required is injector.tumblr.com/request.

From your logs:

I0521 06:20:35.624673       1 webhook.go:165] Pod monitoring/consul-0 annotation **injector.tumblr.com/request is missing**, skipping injection

https://github.com/tumblr/k8s-sidecar-injector/blob/master/cmd/main.go#L63 looks like you can pass the --annotation-namespace argument to the service at boot to change that.

from k8s-sidecar-injector.

like-inspur avatar like-inspur commented on July 2, 2024

I have config env ANNOTATION_NAMESPACE as injector.inspur.com in k8s-sidecar-injector deployment and work fine with 0.1.8 version, but work failed with 0.4.0

from k8s-sidecar-injector.

byxorna avatar byxorna commented on July 2, 2024

I have config env ANNOTATION_NAMESPACE as injector.inspur.com in k8s-sidecar-injector deployment and work fine with 0.1.8 version, but work failed with 0.4.0

Interesting - I did a quick grep back through the 0.1.8 release (and HEAD) and cannot find anywhere we are pulling the ANNOTATION_NAMESPACE out of the environment. This is very curious that it was working for you before!

The fix here would be to pass --annotation-namespace=injector.inspur.com to the entrypoint script. Sorry about that odd behavior! If you would like to submit a PR to handle ANNOTATION_NAMESPACE in entrypoint.sh, it would be much appreciated!

from k8s-sidecar-injector.

like-inspur avatar like-inspur commented on July 2, 2024

sorry, I forget I have modify dockerfile on 0.1.8 like you previously mentioned, I'd like to create pull request for this

from k8s-sidecar-injector.

byxorna avatar byxorna commented on July 2, 2024

Fixed via #31. The docker image in tumblr/k8s-sidecar-injector:latest will respect ANNOTATION_NAMESPACE env var now :)

Thanks for reporting this!

from k8s-sidecar-injector.

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.