Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

[v0.14.x] Always create dnsmasq-node-coredns-local.yaml #1902

Conversation

kfr2
Copy link
Contributor

@kfr2 kfr2 commented Aug 20, 2020

If this file does not exist (as would be the case if the CoreDNS local
feature has not been enabled), controller nodes will fail to come up
with the error:

error: the path "/srv/kubernetes/manifests/dnsmasq-node-coredns-local.yaml" does not exist

This is caused when kubectl delete is called against the file because
of the line remove "${mfdir}/dnsmasq-node-coredns-local.yaml.

This manifest must always be generated because the CoreDNS-local
feature cannot be enabled and then later disabled without otherwise
requiring manual operator intervention.


Additionally, a previous change added a serviceaccount reference to the
dnsmasq-node daemonset; this PR updates the cloud-config-controller
template to create this SA alongside the daemonset.

If this file does not exist (as would be the case if the CoreDNS local
feature has not been enabled), controller nodes will fail to come up
with the error:
> error: the path "/srv/kubernetes/manifests/dnsmasq-node-coredns-local.yaml" does not exist
This is caused when `kubectl delete` is called against the file because
of the line `remove "${mfdir}/dnsmasq-node-coredns-local.yaml`.

This manifest must always be generated because the CoreDNS-local
feature cannot be enabled and then later disabled without otherwise
requiring manual operator intervention.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 20, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign davidmccormick
You can assign the PR to them by writing /assign @davidmccormick in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kfr2 kfr2 changed the title Always create dnsmasq-node-coredns-local.yaml [v0.14.x] Always create dnsmasq-node-coredns-local.yaml Aug 20, 2020
This ServiceAccount must exist whether or not CoreDNS-local has been
enabled. Therefore, it is created alongside the DaemonSet rather than as
part of the coredns-local manifest.
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 20, 2020
@dominicgunn dominicgunn merged commit 34bb80a into kubernetes-retired:v0.14.x Aug 25, 2020
@dominicgunn dominicgunn added this to the v0.14.7 milestone Aug 25, 2020
@kfr2 kfr2 deleted the v0.14.x-always-create-coredns-local-manifest branch August 25, 2020 11:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants