Git Product home page Git Product logo

Comments (5)

rissson avatar rissson commented on June 29, 2024 1

Sorry that this is a duplicate of Deployment. I will replace it with a pod template before making a pull request.

Default is server.kind=Deployment. Unless you explicitly set server.kind=DaemonSet, it will behave as before.

Yeah I wasn't really worried about that.

When using Deployment, there is no guarantee that replicas will always be placed on different nodes. I do not want multiple replicas placed on the same node for stable operation.

On the contrary, you can specify affinity and anti-affinity rules so that pods will not end up on the same node: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity. In our helm chart, you can set global.affinity.podAntiAffinity (or override with custom rules in server.affinity and worker.affinity) to soft (the default) so that pods will not end up on the same node or hard so that they don't end up in the same zone: https://github.com/goauthentik/helm/blob/main/charts/authentik/templates/_helpers.tpl#L66.

from helm.

rissson avatar rissson commented on June 29, 2024

I'm not keen to add another template that's basically a duplicate of what is defined in the deployment one. What's the use case for this?

from helm.

eternity1984 avatar eternity1984 commented on June 29, 2024

Hi @rissson,

Sorry that this is a duplicate of Deployment. I will replace it with a pod template before making a pull request.

Default is server.kind=Deployment. Unless you explicitly set server.kind=DaemonSet, it will behave as before.

When using Deployment, there is no guarantee that replicas will always be placed on different nodes.
I do not want multiple replicas placed on the same node for stable operation.

from helm.

eternity1984 avatar eternity1984 commented on June 29, 2024

Thank you for your advice! :)
I'll try using global.affinity.podAntiAffinity

from helm.

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.