Coder Social home page Coder Social logo

Comments (5)

dkorunic avatar dkorunic commented on August 25, 2024

This feature was intended for upcoming 1.5 Ingress Controller image. We'll internally discuss if we'll backport required features to 1.4 branch or wait for 1.5 final release and I'll get back to you.

from helm-charts.

tbnguyen1407 avatar tbnguyen1407 commented on August 25, 2024

Thanks for the info. I also notice a privileged initContainer is created when enabling this config. It would be nice to make it optional for hardened environment.

from helm-charts.

dkorunic avatar dkorunic commented on August 25, 2024

@tbnguyen1407 As much as we would like, it's unavoidable as otherwise Controller can't bind privileged ports. Making it optional would most likely cause people to stumble on privileged ports issue when running unprivileged and we in reality use initContainer just to run a single sysctl.

from helm-charts.

tbnguyen1407 avatar tbnguyen1407 commented on August 25, 2024

What about binding to unprivileged ports on container by default, while maintaining default ports for Service

  • containerPort: 8080/8443
  • servicePort: 80/443

I checked some other controllers are using this approach (Kong, Traefik)

from helm-charts.

Mo3m3n avatar Mo3m3n commented on August 25, 2024

That would probably work @tbnguyen1407 except when using hostNetwork/hostPort configuration where in such case the service layer is usually not used to translate 8080 --> 80 and the connection is made directly to the k8s node.
Although this use case is not a k8s best practice, but still users in such case, and without initContainer, won't be able to run unprivileged mode and keep listening on 80/443.

We have considered other alternatives but they all seem to have their limitations.
Example:

  • Using linux capabilities, issue is kubernetes/kubernetes#56374
  • Setcap on docker images itself, issue is image won't work with old kernels with Aufs

Anyway users feedback is welcome to have the right compromise.

from helm-charts.

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.