Kubernetes DNS service
This is the repository for Kubernetes DNS.
Node-local DNS Cache, which used to be a part of this repository, is now at https://github.com/kubernetes-sigs/node-local-dns.
make targets:
| target | description |
|---|---|
| all, build | build all binaries |
| test | run unit tests |
| containers | build the containers |
| images-clean | clear image build artifacts from workdir |
| push | push containers to the registry |
| help | this help message |
| version | show package version |
| {build,containers,push}-ARCH | do action for specific ARCH |
| all-{build,containers,push} | do action for all ARCH |
| only-push-BINARY | push just BINARY |
VERBOSE=1 will show additional build logging.VERSION will override the container version tag.Follow the instructions below depending on the vulnerability, then send a PR (example PR). Once the PR has merged, a new release tag should be cut by a maintainer. The rest of the release process is described further down.
Update the BUILD_IMAGE in Makefile.
Hints for finding up to date images are placed in relevant files next to the variables.
For dnsmasq and dnsmasq-nanny: Update the BASEIMAGE and both COMPILE_IMAGEs in images/dnsmasq/Makefile.
For other images: Update the BASEIMAGE in rules.mk.
go get DEPENDENCY@VERSION
go mod tidy
go mod vendorFollow these steps to make changes and release a new binary.
make images-clean; make build; make containers; make test). make containers CONTAINER_BINARIES=kube-dns.presubmits.sh which is run by the test-infra prow job.git tag -a 1.21.4 -m "Build images using golang 1.17."
git push upstream 1.21.4k8s.io/test-infra/.../k8s-staging-dns.yaml. A manual cloud build can be submitted via
gcloud builds submit --config cloudbuild.yaml, but this requires owner permissions in k8s-staging-dns project.
The automated job pushes images for all architectures and makes them available in gcr.io/k8s-staging-dns.
Status for build jobs can be checked at - https://testgrid.k8s.io/sig-network-dns#dns-push-imagesgcr.io/k8s-artifacts-prod using the process described
in this link.
The image SHAs should be added to images/k8s-staging-dns/images.yaml.
The SHAs can be obtained by running the command python parse-image-sha.py
kube-dns images are promoted if there is a change to kubedns/vulnerability fix.pull-kubernetes-e2e-gci-gce-kube-dns-nodecache and correct your PR if needed before merging.There is no version compatibility requirements with Kubernetes releases. Version numbers in this repo are not related to Kubernetes versions.
No open issues yet, or sync has not completed.