-
Notifications
You must be signed in to change notification settings - Fork 320
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
[EKS] CoreDNS v1.7.0 fails to start after upgrading cluster to Kubernetes 1.18 #1115
Comments
I cannot find an upgrade guide about CoreDNS' ConfigMap in AWS's document. |
@ueokande good to know, thanks! I deleted the |
Yes. An upgrade guide will be helpful. I went through this to figure out the correct config: coredns/deploy.sh |
see also awsdocs/amazon-eks-user-guide#212 |
Thanks for reporting. We have updated our user guide with instructions to remove the upstream directive as part of upgrading to CoreDNS 1.7.0 https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html |
@mikestef9 Thank you for this, but the documentation only includes manual steps for fixing the configmap ( |
you can run a kubectl patch as one of your iaac step |
Yes. I'm working on that now. Unfortunately, the change required here is a surgical edit inside the content of a multi-line string value. So it's not a straightforward patch operation. |
Here's a working version of a bit of bash script which fetches the configmap, strips out the "upstream" line, and patches the converted string back to the configmap. Note that it requires
|
You don't need jq, can filter output with jsonpath . Something like -o=jsonpath="{$.data.Corefile) |
You're probably right, but again it's not that simple. :) Your suggestion outputs a multiline string, which won't feed into |
this example works for me on a test config map ( sorry i can't use it on a k8s 1.18 ) , but i think if you can use jq is more clear
|
We had the same issue just recently updating our EKS from v1.17 to v1.18, we also like to automate this type of stuff as much as possible As part of our automation we use Octopus Deploy to manage our EKS cluster deployments with many of the process steps using Powershell The below takes a wee bit from the bash comment by @Ghazgkull and @ghdiska (thanks) I'm NO Powershell expert but this what I cobbled together yesterday to manage this:
If anyone has a better grasp of the powershell syntax and thinks this script can be refactored feel free to amend, comment and make it better Thanks |
@mikestef9 Some people may bump 2 versions at once, so in my understanding it would be great to have instructions for upstream to all versions documentation after 1.7.0 where starting to fail. |
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I upgraded an existing EKS cluster from Kubernetes 1.17 to Kubernetes 1.18 and followed the steps for updating an Amazon EKS cluster Kubernetes version. I updated the VPC CNI and KubeProxy images without incident, however the CoreDNS image fails to start with the following in the logs:
coredns
config map:Are you currently working around this issue?
Yes, by reverting to CoreDNS v1.6.6.
The text was updated successfully, but these errors were encountered: