-
Notifications
You must be signed in to change notification settings - Fork 238
Move Server to Deployment instead of DaemonSet #296
Move Server to Deployment instead of DaemonSet #296
Conversation
@rhysemmas @Joseph-Irving : I saw that you had recent approval activity on some closed PRs. Are you active maintainers? Are you able to review this PR? |
Would love to see this one merged, however I wonder @daviddyball if it should provide an option to either run as a DaemonSet or a Deployment depending on what a user prefers. |
Very true @stefansedich. It's currently not a helm template, so adding some sort of "switching" logic is not really possible. Perhaps just offering two different YAML files is enough? My only concern would be people blindly doing |
Ah sorry @daviddyball it is early and I failed to realize this was not the helm chart! on that note were you planning to update the Helm chart too? |
If this has gotten stale, I'm open to doing the helm chart work because as it stands, I'm about to have to start hosting the chart myself to do the daemonset vs deployment work. Please ping me if I'm open to do the helm chart work myself on a separate PR. |
This isn't exactly stale, it's just not gotten reviewed by any maintainers 😕 We've been running |
I'm curious if the maintainers have any opposition to this approach. The chart PR linked above (#332) adds an option for moving to Deployment without changing the default... so hopefully that can get accepted more easily. If the default is changing, the chart should change to match but also there are things like the README that should be updated as part of this PR. We just need input from a maintainer though. |
Scratch that, it did overwrite |
It's not a different YAML file though - it's changing the I have no authority here, just saying it may be confusing to have the README talk about using a |
I had it in my head that I'd already refactored this to make it optional which deployment method you choose... turns out I hadn't 🙄 Moved to 2x YAML file options under |
Looks good to me. I'd approve if I could. :) |
role: server | ||
spec: | ||
replicas: 3 | ||
selector: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is missing:
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
as the helm chart has here
See https://github.com/uswitch/kiam/pull/332/files#r351312455 for background.
See discussion in this issue
Considerations:
replicas
to 3, but most will want to adjust thisnodeSelector
still ensures it only runs onmaster
s, whilespec.affinity
prevents co-location on the same nodeEDIT: Also relates to issues rolling master nodes causing issues