k3s/cluster/addons/dns
Kubernetes Submit Queue 7ef11bd964
Merge pull request #59237 from tanshanshan/addons1
Automatic merge from submit-queue (batch tested with PRs 59767, 56454, 59237, 59730, 55479). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Change critical pods’ template to use priority

**What this PR does / why we need it**:
Change critical pods’ template to use priority
Thanks.
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
ref #57471

**Special notes for your reviewer**:

**Release note**:

```release-note

```
2018-02-12 15:44:36 -08:00
..
Makefile Add CoreDNS as an optional addon in kube-up 2017-11-13 18:38:51 -05:00
OWNERS
README.md Merge kube-dns templates into a single file 2017-10-03 09:43:52 -07:00
coredns.yaml.base add upstream 2018-01-31 13:31:58 -05:00
coredns.yaml.in add upstream 2018-01-31 13:31:58 -05:00
coredns.yaml.sed add upstream 2018-01-31 13:31:58 -05:00
kube-dns.yaml.base Merge pull request #59237 from tanshanshan/addons1 2018-02-12 15:44:36 -08:00
kube-dns.yaml.in Merge pull request #59237 from tanshanshan/addons1 2018-02-12 15:44:36 -08:00
kube-dns.yaml.sed Merge pull request #59237 from tanshanshan/addons1 2018-02-12 15:44:36 -08:00
transforms2salt.sed Add CoreDNS as an optional addon in kube-up 2017-11-13 18:38:51 -05:00
transforms2sed.sed Add CoreDNS as an optional addon in kube-up 2017-11-13 18:38:51 -05:00

README.md

kube-dns

kube-dns schedules DNS Pods and Service on the cluster, other pods in cluster can use the DNS Services IP to resolve DNS names.

Manually scale kube-dns Deployment

kube-dns creates only one DNS Pod by default. If dns-horizontal-autoscaler is not enabled, you may need to manually scale kube-dns Deployment.

Please use below kubectl scale command to scale:

kubectl --namespace=kube-system scale deployment kube-dns --replicas=<NUM_YOU_WANT>

Do not use kubectl edit to modify kube-dns Deployment object if it is controlled by Addon Manager. Otherwise the modifications will be clobbered, in addition the replicas count for kube-dns Deployment will be reset to 1. See Cluster add-ons README and #36411 for reference.

kube-dns addon templates

This directory contains the base UNDERSCORE templates that can be used to generate the kube-dns.yaml.in needed in Salt format.

Due to a varied preference in templating language choices, the transform Makefile in this directory should be enhanced to generate all required formats from the base underscore templates.

N.B.: When you add a parameter you should also update the various scripts that supply values for your new parameter. Here is one way you might find those scripts:

cd kubernetes && git grep 'kube-dns.yaml'

Base Template files

These are the authoritative base templates. Run 'make' to generate the Salt and Sed yaml templates from these.

kube-dns.yaml.base

Generated Salt files

kube-dns.yaml.in

Generated Sed files

kube-dns.yaml.sed

Analytics