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
30558d25
Commit
30558d25
authored
Jun 11, 2015
by
Abhi Shah
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9548 from brendandburns/docsfix3
Add instructions for validating the DNS server.
parents
87d0208d
ebe43fd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
README.md
cluster/addons/dns/README.md
+62
-0
No files found.
cluster/addons/dns/README.md
View file @
30558d25
...
@@ -100,6 +100,68 @@ Salt. You will need to replace the `{{ <param> }}` blocks with your own values
...
@@ -100,6 +100,68 @@ Salt. You will need to replace the `{{ <param> }}` blocks with your own values
for the config variables mentioned above. Other than the templating, these are
for the config variables mentioned above. Other than the templating, these are
normal kubernetes objects, and can be instantiated with
`kubectl create`
.
normal kubernetes objects, and can be instantiated with
`kubectl create`
.
## How do I test if it is working?
First deploy DNS as described above.
### 1 Create a simple Pod to use as a test environment.
Create a file named busybox.yaml with the
following contents:
```
yaml
apiVersion
:
v1beta3
kind
:
Pod
metadata
:
name
:
busybox
namespace
:
default
spec
:
containers
:
-
image
:
busybox
command
:
-
sleep
-
"
3600"
imagePullPolicy
:
IfNotPresent
name
:
busybox
restartPolicy
:
Always
```
Then create a pod using this file:
```
kubectl create -f busybox.yaml
```
### 2 Wait for this pod to go into the running state.
You can get its status with:
```
kubectl get pods busybox
```
You should see:
```
NAME READY REASON RESTARTS AGE
busybox 1/1 Running 0 <some-time>
```
### 3 Validate DNS works
Once that pod is running, you can exec nslookup in that environment:
```
kubectl exec busybox -- nslookup kubernetes
```
You should see something like:
```
Server: 10.0.0.10
Address 1: 10.0.0.10
Name: kubernetes
Address 1: 10.0.0.1
```
If you see that, DNS is working correctly.
## How does it work?
## How does it work?
SkyDNS depends on etcd for what to serve, but it doesn't really need all of
SkyDNS depends on etcd for what to serve, but it doesn't really need all of
what etcd offers (at least not in the way we use it). For simplicty, we run
what etcd offers (at least not in the way we use it). For simplicty, we run
...
...
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