Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
75c29adb
Commit
75c29adb
authored
Jan 06, 2017
by
Bowei Du
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update DNS readme to point to the new code repository
parent
ba215e2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
17 deletions
+27
-17
README.md
cluster/addons/dns/README.md
+27
-17
No files found.
cluster/addons/dns/README.md
View file @
75c29adb
# kube-dns
# kube-dns
kube-dns schedules DNS Pods and Service on the cluster, other pods in cluster can
use the DNS Service’s IP to resolve DNS names.
More details on http://kubernetes.io/docs/admin/dns/.
`kube-dns`
schedules DNS Pods and Service on the cluster, other pods in cluster
can use the DNS Service’s IP to resolve DNS names.
*
[
Administrators guide
](
http://kubernetes.io/docs/admin/dns/
)
*
[
Code repository
](
http://www.github.com/kubernetes/dns
)
## Manually scale kube-dns Deployment
## Manually scale kube-dns Deployment
kube-dns creates only one DNS Pod by default. If
kube-dns creates only one DNS Pod by default. If
[
dns-horizontal-autoscaler
](
../dns-horizontal-autoscaler/
)
[
dns-horizontal-autoscaler
](
../dns-horizontal-autoscaler/
)
is not enabled, you may need to manually scale kube-dns Deployment.
is not enabled, you may need to manually scale kube-dns Deployment.
...
@@ -14,27 +17,28 @@ Please use below `kubectl scale` command to scale:
...
@@ -14,27 +17,28 @@ Please use below `kubectl scale` command to scale:
kubectl --namespace=kube-system scale deployment kube-dns --replicas=<NUM_YOU_WANT>
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
Do not use
`kubectl edit`
to modify kube-dns Deployment object if it is
[
Addon Manager
](
../addon-manager/
)
. Otherwise the modifications will be clobbered,
controlled by
[
Addon Manager
](
../addon-manager/
)
. Otherwise the modifications
in addition the replicas count for kube-dns Deployment will be reset to 1. See
will be clobbered, in addition the replicas count for kube-dns Deployment will
[
Cluster add-ons README
](
../README.md
)
and
[
#36411
](
https://github.com/kubernetes/kubernetes/issues/36411
)
be reset to 1. See
[
Cluster add-ons README
](
../README.md
)
and
for reference.
[
#36411
](
https://github.com/kubernetes/kubernetes/issues/36411
)
for reference.
## kube-dns Deployment and Service templates
## kube-dns Deployment and Service templates
This directory contains the base UNDERSCORE templates that can be used
This directory contains the base UNDERSCORE templates that can be used to
to generate the kubedns-controller.yaml.in and kubedns.controller.yaml.in needed in Salt format.
generate the kubedns-controller.yaml.in and kubedns.controller.yaml.in needed in
Salt format.
Due to a varied preference in templating language choices, the transform
Due to a varied preference in templating language choices, the transform
Makefile in this directory should be enhanced to generate all required
Makefile in this directory should be enhanced to generate all required formats
formats from the base underscore templates.
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:
**NOTE WELL**
: Developers, 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
cd kubernetes && git grep 'kubedns-controller.yaml'
find [a-zA-Z0-9]* -type f -exec grep kubedns-controller.yaml \{\} \; -print -exec echo \;
```
```
### Base Template files
### Base Template files
...
@@ -42,17 +46,23 @@ find [a-zA-Z0-9]* -type f -exec grep kubedns-controller.yaml \{\} \; -print -exe
...
@@ -42,17 +46,23 @@ find [a-zA-Z0-9]* -type f -exec grep kubedns-controller.yaml \{\} \; -print -exe
These are the authoritative base templates.
These are the authoritative base templates.
Run 'make' to generate the Salt and Sed yaml templates from these.
Run 'make' to generate the Salt and Sed yaml templates from these.
```
kubedns-controller.yaml.base
kubedns-controller.yaml.base
kubedns-svc.yaml.base
kubedns-svc.yaml.base
```
### Generated Salt files
### Generated Salt files
```
kubedns-controller.yaml.in
kubedns-controller.yaml.in
kubedns-svc.yaml.in
kubedns-svc.yaml.in
```
### Generated Sed files
### Generated Sed files
```
kubedns-controller.yaml.sed
kubedns-controller.yaml.sed
kubedns-svc.yaml.sed
kubedns-svc.yaml.sed
```
[

]()
[

]()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment