-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure dns replicas #30
Conversation
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.
Some specs would be nice.
I wasn't aware we had specs yet |
lib/kupo/phases/configure_dns.rb
Outdated
|
||
module Kupo::Phases | ||
class ConfigureDNS < Base | ||
# @param config [Kupo::Config] |
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.
Missing yardoc for master.
lib/kupo/config.rb
Outdated
if hosts.length == 1 | ||
return 1 | ||
else | ||
return 1 + (hosts.length / HOSTS_PER_DNS_REPLICA.to_f).ceil |
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 like this logic :)
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.
LGTM
Fixes #2
Refactors
Kupo::Kube
to getupdate_resource
vsapply_resource
Testing
With deployment strategy defaults
The deployment rollout gets stuck with two replicas on two nodes: it is unable to provision the new rs to two replicas while the old rs still has a pod occupying the other node.