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
4a8406ee
Commit
4a8406ee
authored
May 11, 2015
by
wizard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use v0.15.0 dns manifest
parent
ab084484
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
69 deletions
+52
-69
deployAddons.sh
cluster/ubuntu/deployAddons.sh
+2
-2
skydns-rc.yaml
cluster/ubuntu/skydns-rc.yaml
+0
-66
skydns-rc.yaml.template
cluster/ubuntu/skydns-rc.yaml.template
+49
-0
skydns-svc.yaml.template
cluster/ubuntu/skydns-svc.yaml.template
+1
-1
No files found.
cluster/ubuntu/deployAddons.sh
View file @
4a8406ee
...
@@ -23,8 +23,8 @@ source "config-default.sh"
...
@@ -23,8 +23,8 @@ source "config-default.sh"
if
[
"
${
ENABLE_CLUSTER_DNS
}
"
==
true
]
;
then
if
[
"
${
ENABLE_CLUSTER_DNS
}
"
==
true
]
;
then
echo
"Deploying DNS on kubernetes"
echo
"Deploying DNS on kubernetes"
sed
-e
"s/{{ pillar
\[
'dns_replicas'
\]
}}/
${
DNS_REPLICAS
}
/g;s/{{ pillar
\[
'dns_domain'
\]
}}/
${
DNS_DOMAIN
}
/g"
../../cluster/addons/dns/skydns-rc.yaml.in
>
skydns-rc.yaml
sed
-e
"s/{{ pillar
\[
'dns_replicas'
\]
}}/
${
DNS_REPLICAS
}
/g;s/{{ pillar
\[
'dns_domain'
\]
}}/
${
DNS_DOMAIN
}
/g"
skydns-rc.yaml.template
>
skydns-rc.yaml
sed
-e
"s/{{ pillar
\[
'dns_server'
\]
}}/
${
DNS_SERVER_IP
}
/g"
../../cluster/addons/dns/skydns-svc.yaml.in
>
skydns-svc.yaml
sed
-e
"s/{{ pillar
\[
'dns_server'
\]
}}/
${
DNS_SERVER_IP
}
/g"
skydns-svc.yaml.template
>
skydns-svc.yaml
# use kubectl to create skydns rc and service
# use kubectl to create skydns rc and service
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
create
-f
skydns-rc.yaml
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
create
-f
skydns-rc.yaml
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
create
-f
skydns-svc.yaml
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
create
-f
skydns-svc.yaml
...
...
cluster/ubuntu/skydns-rc.yaml
deleted
100644 → 0
View file @
ab084484
apiVersion
:
v1beta3
kind
:
ReplicationController
metadata
:
labels
:
k8s-app
:
kube-dns
kubernetes.io/cluster-service
:
"
true"
name
:
kube-dns
namespace
:
default
spec
:
replicas
:
1
selector
:
k8s-app
:
kube-dns
template
:
metadata
:
labels
:
k8s-app
:
kube-dns
kubernetes.io/cluster-service
:
"
true"
name
:
kube-dns
spec
:
containers
:
-
name
:
etcd
image
:
gcr.io/google_containers/etcd:2.0.9
command
:
-
/usr/local/bin/etcd
-
--addr
-
127.0.0.1:4001
-
--bind-addr
-
127.0.0.1:4001
-
-initial-cluster-token=skydns-etcd
-
name
:
kube2sky
image
:
gcr.io/google_containers/kube2sky:1.4
args
:
# entrypoint = "/kube2sky"
-
-domain=cluster.local
-
-kubecfg_file=/etc/dns_token/kubeconfig
volumeMounts
:
-
mountPath
:
/etc/dns_token
name
:
dns-token
readOnly
:
true
-
name
:
skydns
image
:
gcr.io/google_containers/skydns:2015-03-11-001
args
:
# entrypoint = "/skydns"
-
-machines=http://localhost:4001
-
-addr=0.0.0.0:53
-
-domain=cluster.local.
ports
:
-
containerPort
:
53
name
:
dns
protocol
:
UDP
livenessProbe
:
exec
:
command
:
-
"
/bin/sh"
-
"
-c"
# The health check succeeds by virtue of not hanging. It'd be nice
# to also check local services are known, but if that's broken then
# etcd or kube2sky has to be restarted, not skydns.
-
"
nslookup
foobar
127.0.0.1
&>
/dev/null;
echo
ok"
initialDelaySeconds
:
30
timeoutSeconds
:
5
dnsPolicy
:
Default
# Don't use cluster DNS.
volumes
:
-
name
:
dns-token
secret
:
secretName
:
token-system-dns
cluster/ubuntu/skydns-rc.yaml.template
0 → 100644
View file @
4a8406ee
kind: ReplicationController
apiVersion: v1beta1
id: kube-dns
namespace: default
labels:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
desiredState:
replicas: {{ pillar['dns_replicas'] }}
replicaSelector:
k8s-app: kube-dns
podTemplate:
labels:
name: kube-dns
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
desiredState:
manifest:
version: v1beta2
id: kube-dns
dnsPolicy: "Default" # Don't use cluster DNS.
containers:
- name: etcd
image: quay.io/coreos/etcd:v2.0.3
command: [
# entrypoint = "/etcd",
"-listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001",
"-initial-cluster-token=skydns-etcd",
"-advertise-client-urls=http://127.0.0.1:4001",
]
- name: kube2sky
image: gcr.io/google_containers/kube2sky:1.1
command: [
# entrypoint = "/kube2sky",
"-domain={{ pillar['dns_domain'] }}",
]
- name: skydns
image: gcr.io/google_containers/skydns:2015-03-11-001
command: [
# entrypoint = "/skydns",
"-machines=http://localhost:4001",
"-addr=0.0.0.0:53",
"-domain={{ pillar['dns_domain'] }}.",
]
ports:
- name: dns
containerPort: 53
protocol: UDP
cluster/ubuntu/skydns-svc.yaml
→
cluster/ubuntu/skydns-svc.yaml
.template
View file @
4a8406ee
...
@@ -4,7 +4,7 @@ id: kube-dns
...
@@ -4,7 +4,7 @@ id: kube-dns
namespace: default
namespace: default
protocol: UDP
protocol: UDP
port: 53
port: 53
portalIP
:
192.168.3.10
portalIP:
{{ pillar['dns_server'] }}
containerPort: 53
containerPort: 53
labels:
labels:
k8s-app: kube-dns
k8s-app: kube-dns
...
...
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