Skip to content
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

kubernetes: add mount of /tmp #137

Closed
johnbelamaric opened this issue Mar 28, 2019 · 12 comments
Closed

kubernetes: add mount of /tmp #137

johnbelamaric opened this issue Mar 28, 2019 · 12 comments
Assignees

Comments

@johnbelamaric
Copy link
Member

In order to fix coredns/coredns#2464 and related issues with crashing due to glog/klog issues, we should just add an EmptyDir volume and mount it on /tmp

@chrisohaver
Copy link
Member

chrisohaver commented Mar 28, 2019

@johnbelamaric, to clarify - you mean as temporary fix for people using 1.3.1?
This issue is already fixed in 1.4.0.

@johnbelamaric
Copy link
Member Author

johnbelamaric commented Mar 28, 2019 via email

@fturib
Copy link
Contributor

fturib commented Mar 28, 2019

NOTE:

  • 1.4.0 could be compatible for most of people - at least would not reject a config -. But there is a bug on reload - which is used on default config for Kubernetes
  • any further version (currently master) hhas backward incompatibility and the default config provided with k8s v1.14 would fail CoreDNS.

For people having an issue with glog/klog, solution could be:
1- mount /tmp (as proposed here)
2- either use the version 1.3.0

@johnbelamaric
Copy link
Member Author

johnbelamaric commented Mar 28, 2019 via email

@fturib
Copy link
Contributor

fturib commented Mar 28, 2019

Hum ... I am not sure I understand.
1.4.1 does not exist yet ... let say we build it now, it will be out of mater that is already incompatible (no proxy, and "upstream" option of kubernetes does not exist anymore)

So you cannot use an image CoreDNS 1.4.1 for a Corefile we ship in k8s v1.14 - or earlier.

@johnbelamaric
Copy link
Member Author

johnbelamaric commented Mar 28, 2019 via email

@fturib
Copy link
Contributor

fturib commented Mar 28, 2019

You are right, I understand the plan is to go straight to 1.5.0

@fturib
Copy link
Contributor

fturib commented Mar 28, 2019

But 1.4.1 cannot get out of current master.
It would need to be a fork from 1.4.0 and cherry-pick the PR that fix the bug of reload.

@miekg
Copy link
Member

miekg commented Mar 31, 2019

emptyDir for glog should not be needed. What would be needed is a test that catches when glog/klog starts barfing output again.

@johnbelamaric
Copy link
Member Author

It's needed for 1.3.1, which doesn't have the fix.

@chrisohaver
Copy link
Member

Yeah, i think this workaround should be in place until we update the image to a version that fixes the g/klog issue, at which point we should remove it.

@rajansandeep, can you create a PR to add this to the Deployment yaml... see
https://kubernetes.io/docs/concepts/storage/volumes/#emptydir

@chrisohaver
Copy link
Member

Perhaps we should be tagging releases in this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants