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
e16bccec
Commit
e16bccec
authored
Mar 12, 2015
by
Satnam Singh
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5390 from brendandburns/shell_sucks
Configure docker on the master like we do on workers.
parents
27c77567
17ff8fb4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
config-default.sh
cluster/gce/config-default.sh
+1
-0
configure-vm.sh
cluster/gce/configure-vm.sh
+1
-0
util.sh
cluster/gce/util.sh
+2
-0
top.sls
cluster/saltbase/salt/top.sls
+4
-0
No files found.
cluster/gce/config-default.sh
View file @
e16bccec
...
@@ -33,6 +33,7 @@ INSTANCE_PREFIX="${KUBE_GCE_INSTANCE_PREFIX:-kubernetes}"
...
@@ -33,6 +33,7 @@ INSTANCE_PREFIX="${KUBE_GCE_INSTANCE_PREFIX:-kubernetes}"
MASTER_NAME
=
"
${
INSTANCE_PREFIX
}
-master"
MASTER_NAME
=
"
${
INSTANCE_PREFIX
}
-master"
MASTER_TAG
=
"
${
INSTANCE_PREFIX
}
-master"
MASTER_TAG
=
"
${
INSTANCE_PREFIX
}
-master"
MINION_TAG
=
"
${
INSTANCE_PREFIX
}
-minion"
MINION_TAG
=
"
${
INSTANCE_PREFIX
}
-minion"
MASTER_IP_RANGE
=
"
${
MASTER_IP_RANGE
:-
10
.246.0.0/24
}
"
# Compute IP addresses for nodes.
# Compute IP addresses for nodes.
function
increment_ipv4
{
function
increment_ipv4
{
...
...
cluster/gce/configure-vm.sh
View file @
e16bccec
...
@@ -271,6 +271,7 @@ function salt-master-role() {
...
@@ -271,6 +271,7 @@ function salt-master-role() {
grains:
grains:
roles:
roles:
- kubernetes-master
- kubernetes-master
cbr-cidr:
${
MASTER_IP_RANGE
}
cloud: gce
cloud: gce
EOF
EOF
}
}
...
...
cluster/gce/util.sh
View file @
e16bccec
...
@@ -453,6 +453,7 @@ DNS_SERVER_IP: $(yaml-quote ${DNS_SERVER_IP:-})
...
@@ -453,6 +453,7 @@ DNS_SERVER_IP: $(yaml-quote ${DNS_SERVER_IP:-})
DNS_DOMAIN:
$(
yaml-quote
${
DNS_DOMAIN
:-})
DNS_DOMAIN:
$(
yaml-quote
${
DNS_DOMAIN
:-})
MASTER_HTPASSWD:
$(
yaml-quote
${
MASTER_HTPASSWD
})
MASTER_HTPASSWD:
$(
yaml-quote
${
MASTER_HTPASSWD
})
ADMISSION_CONTROL:
$(
yaml-quote
${
ADMISSION_CONTROL
:-})
ADMISSION_CONTROL:
$(
yaml-quote
${
ADMISSION_CONTROL
:-})
MASTER_IP_RANGE:
$(
yaml-quote
${
MASTER_IP_RANGE
})
EOF
EOF
if
[[
"
${
master
}
"
!=
"true"
]]
;
then
if
[[
"
${
master
}
"
!=
"true"
]]
;
then
...
@@ -612,6 +613,7 @@ function kube-up {
...
@@ -612,6 +613,7 @@ function kube-up {
fi
fi
done
done
create-route
"
${
MASTER_NAME
}
"
"
${
MASTER_IP_RANGE
}
"
# Wait for last batch of jobs.
# Wait for last batch of jobs.
wait-for-jobs
wait-for-jobs
...
...
cluster/saltbase/salt/top.sls
View file @
e16bccec
...
@@ -48,6 +48,10 @@ base:
...
@@ -48,6 +48,10 @@ base:
- docker
- docker
- sdn
- sdn
{% endif %}
{% endif %}
{% if grains['cloud'] is defined and grains['cloud'] == 'gce' %}
- docker
{% endif %}
'roles:kubernetes-pool-vsphere':
'roles:kubernetes-pool-vsphere':
- match: grain
- match: grain
...
...
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