-
Notifications
You must be signed in to change notification settings - Fork 715
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
Persist dns configuration on upgrade #1954
Comments
IIUC, you expect the opposite: dns replicas not set back to kubeadm default. Regarding persistence through upgrades: I think that if the coredns deployment yaml used by kubeadm did not contain a replica count, the number of replicas would not be reset when upgrading (assuming kubeadm does the equivalent of |
@pickledrick as i've mentioned on the PR, v1beta2 is locked for new features. |
also @ereslibre is working on a document related to how to handle coredns Deployment issues. |
instead of modifying the API i proposed to @pickledrick to allow upgrades to keep the existing replica count instead of redeploying with 2. cc @rajansandeep @chrisohaver WDYT? |
@neolit123, sounds fine to me. One very simple way of doing this could be to remove the replica count line from the coredns Deployment yaml. |
Commenting here instead of the PR. I am a bit opposed to having a replica count field in the kubeadm config. This is specific to the DNS deployment and not to kubeadm itself. What we should do itself is to base our updated deployment on the one currently in use in the cluster (in effect patch it). |
I also think we shoud not include the replica count in the kubeadm config.
Yes, and I'll follow up with the document about that. There are slightly different approaches, but all of them should patch and not override existing deployment settings. Didn't have the time yet but we should be able to do something along these lines. |
Hi Everyone, Thanks for the comments, I have taken another go at this given the feedback from the related PR. The idea is to check if there is an existing DNS deployment and don't touch it if it exists (unless switching between |
keeping this issue open to track the potential persisting of more fields than just the replica count: /assign @rajansandeep @ereslibre |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
let's log separate tickets for extra options that should persists. |
@neolit123: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
EDIT: this issue is tracking the potential to persist configuration options from the old coredns deployment after upgrade.
this PR made it possible to persist the replica count:
kubernetes/kubernetes#85837
What keywords did you search in kubeadm issues before filing this one? kubeadm dns coredns replicas
Is this a BUG REPORT or FEATURE REQUEST?
FEATURE REQUEST
If this is a FEATURE REQUEST, please:
Versions
kubeadm version (use
kubeadm version
):Environment:
kubectl version
):1.16.3
uname -a
): n/aWhat happened?
After cluster creation with the default replica count set. Scaling the coredns replicas up and then performing upgrade caused replicas to be reset to default
What you expected to happen?
dns replicas set back to kubeadm default
How to reproduce it (as minimally and precisely as possible)?
after a default kubeadm init
using the following command
kubectl -n kube-system scale --replicas=15 deployment.apps/coredns
and then performing an upgrade
kubeadm upgrade apply
resets the replicas back to the default. Along with this persistence during upgrades. It would also be nice to have this configurable during init.
The text was updated successfully, but these errors were encountered: