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
879a2dcd
Commit
879a2dcd
authored
Sep 16, 2016
by
Minhan Xia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump master cidr range from /30 to /29
parent
fc466743
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
configure-vm-aws.sh
cluster/aws/templates/configure-vm-aws.sh
+2
-2
configure-vm.sh
cluster/gce/configure-vm.sh
+2
-2
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+4
-1
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+1
-1
No files found.
cluster/aws/templates/configure-vm-aws.sh
View file @
879a2dcd
...
...
@@ -91,7 +91,7 @@ EOF
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_CERT
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
kubelet_api_servers: '
${
KUBELET_APISERVER
}
'
cbr-cidr: 10.123.45.0/
30
cbr-cidr: 10.123.45.0/
29
EOF
else
# If the kubelet is running disconnected from a master, give it a fixed
...
...
@@ -110,7 +110,7 @@ salt-node-role() {
grains:
roles:
- kubernetes-pool
cbr-cidr: 10.123.45.0/
30
cbr-cidr: 10.123.45.0/
29
cloud: aws
api_servers: '
${
API_SERVERS
}
'
EOF
...
...
cluster/gce/configure-vm.sh
View file @
879a2dcd
...
...
@@ -949,7 +949,7 @@ EOF
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_CERT
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
kubelet_api_servers: '
${
KUBELET_APISERVER
}
'
cbr-cidr: 10.123.45.0/
30
cbr-cidr: 10.123.45.0/
29
EOF
else
# If the kubelet is running disconnected from a master, give it a fixed
...
...
@@ -968,7 +968,7 @@ function salt-node-role() {
grains:
roles:
- kubernetes-pool
cbr-cidr: 10.123.45.0/
30
cbr-cidr: 10.123.45.0/
29
cloud: gce
api_servers: '
${
KUBERNETES_MASTER_NAME
}
'
EOF
...
...
cluster/gce/gci/configure-helper.sh
View file @
879a2dcd
...
...
@@ -480,7 +480,10 @@ function start-kubelet {
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
&&
!
-z
"
${
KUBELET_CERT
:-}
"
&&
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
flags+
=
" --api-servers=https://
${
KUBELET_APISERVER
}
"
flags+
=
" --register-schedulable=false"
flags+
=
" --pod-cidr=10.123.45.0/30"
# need at least a /29 pod cidr for now due to #32844
# TODO: determine if we still allow non-hostnetwork pods to run on master, clean up master pod setup
# WARNING: potential ip range collision with 10.123.45.0/29
flags+
=
" --pod-cidr=10.123.45.0/29"
reconcile_cidr
=
"false"
else
flags+
=
" --pod-cidr=
${
MASTER_IP_RANGE
}
"
...
...
cluster/gce/trusty/configure-helper.sh
View file @
879a2dcd
...
...
@@ -155,7 +155,7 @@ assemble_kubelet_flags() {
if
[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]
&&
\
[
!
-z
"
${
KUBELET_CERT
:-}
"
]
&&
\
[
!
-z
"
${
KUBELET_KEY
:-}
"
]
;
then
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--api-servers=https://
${
KUBELET_APISERVER
}
--register-schedulable=false --reconcile-cidr=false --pod-cidr=10.123.45.0/
30
"
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--api-servers=https://
${
KUBELET_APISERVER
}
--register-schedulable=false --reconcile-cidr=false --pod-cidr=10.123.45.0/
29
"
else
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--pod-cidr=
${
MASTER_IP_RANGE
}
"
fi
...
...
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