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
c2e70a7c
Commit
c2e70a7c
authored
Jun 23, 2016
by
Madhusudan.C.S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parametrize the kube-dns --federations command line argument in the manifest.
This parameter is later substituted with the environment variable during the build process.
parent
18ea37a4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
0 deletions
+10
-0
common.sh
build/common.sh
+3
-0
skydns-rc.yaml.base
cluster/saltbase/salt/kube-dns/skydns-rc.yaml.base
+1
-0
skydns-rc.yaml.in
cluster/saltbase/salt/kube-dns/skydns-rc.yaml.in
+1
-0
skydns-rc.yaml.sed
cluster/saltbase/salt/kube-dns/skydns-rc.yaml.sed
+1
-0
transforms2salt.sed
cluster/saltbase/salt/kube-dns/transforms2salt.sed
+2
-0
transforms2sed.sed
cluster/saltbase/salt/kube-dns/transforms2sed.sed
+2
-0
No files found.
build/common.sh
View file @
c2e70a7c
...
@@ -949,6 +949,9 @@ function kube::release::package_kube_manifests_tarball() {
...
@@ -949,6 +949,9 @@ function kube::release::package_kube_manifests_tarball() {
objects
=
$(
cd
"
${
KUBE_ROOT
}
/cluster/saltbase/salt/kube-dns"
&&
find
.
\(
-name
\*
.yaml
-or
-name
\*
.yaml.in
-or
-name
\*
.json
\)
|
grep
-v
demo
)
objects
=
$(
cd
"
${
KUBE_ROOT
}
/cluster/saltbase/salt/kube-dns"
&&
find
.
\(
-name
\*
.yaml
-or
-name
\*
.yaml.in
-or
-name
\*
.json
\)
|
grep
-v
demo
)
mkdir
-p
"
${
dst_dir
}
/dns"
mkdir
-p
"
${
dst_dir
}
/dns"
tar
c
-C
"
${
KUBE_ROOT
}
/cluster/saltbase/salt/kube-dns"
${
objects
}
|
tar
x
-C
"
${
dst_dir
}
/dns"
tar
c
-C
"
${
KUBE_ROOT
}
/cluster/saltbase/salt/kube-dns"
${
objects
}
|
tar
x
-C
"
${
dst_dir
}
/dns"
if
[[
"
${
FEDERATION
:-}
"
==
"true"
]]
;
then
sed
-i
's/{{ pillar\['
"'"
'federations_domain_map'
"'"
'\] }}/- --federations="'
"
${
FEDERATIONS_DOMAIN_MAP
}
"
'"/g'
"
${
dst_dir
}
/dns/skydns-rc.yaml.in"
fi
# This is for coreos only. ContainerVM, GCI, or Trusty does not use it.
# This is for coreos only. ContainerVM, GCI, or Trusty does not use it.
cp
-r
"
${
KUBE_ROOT
}
/cluster/gce/coreos/kube-manifests"
/
*
"
${
release_stage
}
/"
cp
-r
"
${
KUBE_ROOT
}
/cluster/gce/coreos/kube-manifests"
/
*
"
${
release_stage
}
/"
...
...
cluster/saltbase/salt/kube-dns/skydns-rc.yaml.base
View file @
c2e70a7c
...
@@ -75,6 +75,7 @@ spec:
...
@@ -75,6 +75,7 @@ spec:
# command = "/kube-dns"
# command = "/kube-dns"
- --domain=__PILLAR__DNS__DOMAIN__.
- --domain=__PILLAR__DNS__DOMAIN__.
- --dns-port=10053
- --dns-port=10053
__PILLAR__FEDERATIONS__DOMAIN__MAP__
ports:
ports:
- containerPort: 10053
- containerPort: 10053
name: dns-local
name: dns-local
...
...
cluster/saltbase/salt/kube-dns/skydns-rc.yaml.in
View file @
c2e70a7c
...
@@ -75,6 +75,7 @@ spec:
...
@@ -75,6 +75,7 @@ spec:
# command = "/kube-dns"
# command = "/kube-dns"
- --domain={{ pillar['dns_domain'] }}.
- --domain={{ pillar['dns_domain'] }}.
- --dns-port=10053
- --dns-port=10053
{{ pillar['federations_domain_map'] }}
ports:
ports:
- containerPort: 10053
- containerPort: 10053
name: dns-local
name: dns-local
...
...
cluster/saltbase/salt/kube-dns/skydns-rc.yaml.sed
View file @
c2e70a7c
...
@@ -75,6 +75,7 @@ spec:
...
@@ -75,6 +75,7 @@ spec:
# command = "/kube-dns"
# command = "/kube-dns"
-
--
d
om
a
in=$DNS_DOMAIN.
-
--
d
om
a
in=$DNS_DOMAIN.
-
--
dns
-
port=10053
-
--
dns
-
port=10053
$
FEDERATIONS_DOMAIN_MAP
ports:
ports:
-
containerPort: 10053
-
containerPort: 10053
name: dns
-
l
o
c
al
name: dns
-
l
o
c
al
...
...
cluster/saltbase/salt/kube-dns/transforms2salt.sed
View file @
c2e70a7c
s
/
__PILLAR__DNS__SERVER__
/
{{ pillar['dns_server'] }}
/
g
s
/
__PILLAR__DNS__SERVER__
/
{{ pillar['dns_server'] }}
/
g
s
/
__PILLAR__DNS__REPLICAS__
/
{{ pillar['dns_replicas'] }}
/
g
s
/
__PILLAR__DNS__REPLICAS__
/
{{ pillar['dns_replicas'] }}
/
g
s
/
__PILLAR__DNS__DOMAIN__
/
{{ pillar['dns_domain'] }}
/
g
s
/
__PILLAR__DNS__DOMAIN__
/
{{ pillar['dns_domain'] }}
/
g
s
/
__PILLAR__FEDERATIONS__DOMAIN__MAP__
/
{{ pillar['federations_domain_map'] }}
/
g
s
/
__MACHINE_GENERATED_WARNING__
/
Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__
/
g
s
/
__MACHINE_GENERATED_WARNING__
/
Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__
/
g
\ No newline at end of file
cluster/saltbase/salt/kube-dns/transforms2sed.sed
View file @
c2e70a7c
s
/
__PILLAR__DNS__SERVER__
/
$DNS_SERVER_IP
/
g
s
/
__PILLAR__DNS__SERVER__
/
$DNS_SERVER_IP
/
g
s
/
__PILLAR__DNS__REPLICAS__
/
$DNS_REPLICAS
/
g
s
/
__PILLAR__DNS__REPLICAS__
/
$DNS_REPLICAS
/
g
s
/
__PILLAR__DNS__DOMAIN__
/
$DNS_DOMAIN
/
g
s
/
__PILLAR__DNS__DOMAIN__
/
$DNS_DOMAIN
/
g
s
/
__PILLAR__FEDERATIONS__DOMAIN__MAP__
/
$FEDERATIONS_DOMAIN_MAP
/
g
s
/
__MACHINE_GENERATED_WARNING__
/
Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__
/
g
s
/
__MACHINE_GENERATED_WARNING__
/
Warning: This is a file generated from the base underscore template file: __SOURCE_FILENAME__
/
g
\ No newline at end of file
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