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
6465742d
Commit
6465742d
authored
Sep 22, 2016
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update bringup: don't pass in dummy pod-cidr
We no longer pass in a "dummy" pod-cidr (10.123.45.0/29), and rely on reconcile-cidr=true instead (which is the default).
parent
ad6d842a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
11 deletions
+2
-11
configure-vm-aws.sh
cluster/aws/templates/configure-vm-aws.sh
+0
-2
configure-vm.sh
cluster/gce/configure-vm.sh
+0
-2
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+1
-5
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+1
-1
default
cluster/saltbase/salt/kubelet/default
+0
-1
No files found.
cluster/aws/templates/configure-vm-aws.sh
View file @
6465742d
...
@@ -91,7 +91,6 @@ EOF
...
@@ -91,7 +91,6 @@ EOF
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_CERT
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_CERT
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
kubelet_api_servers: '
${
KUBELET_APISERVER
}
'
kubelet_api_servers: '
${
KUBELET_APISERVER
}
'
cbr-cidr: 10.123.45.0/29
EOF
EOF
else
else
# If the kubelet is running disconnected from a master, give it a fixed
# If the kubelet is running disconnected from a master, give it a fixed
...
@@ -110,7 +109,6 @@ salt-node-role() {
...
@@ -110,7 +109,6 @@ salt-node-role() {
grains:
grains:
roles:
roles:
- kubernetes-pool
- kubernetes-pool
cbr-cidr: 10.123.45.0/29
cloud: aws
cloud: aws
api_servers: '
${
API_SERVERS
}
'
api_servers: '
${
API_SERVERS
}
'
EOF
EOF
...
...
cluster/gce/configure-vm.sh
View file @
6465742d
...
@@ -949,7 +949,6 @@ EOF
...
@@ -949,7 +949,6 @@ EOF
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_CERT
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_CERT
:-}
"
]]
&&
[[
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
kubelet_api_servers: '
${
KUBELET_APISERVER
}
'
kubelet_api_servers: '
${
KUBELET_APISERVER
}
'
cbr-cidr: 10.123.45.0/29
EOF
EOF
else
else
# If the kubelet is running disconnected from a master, give it a fixed
# If the kubelet is running disconnected from a master, give it a fixed
...
@@ -968,7 +967,6 @@ function salt-node-role() {
...
@@ -968,7 +967,6 @@ function salt-node-role() {
grains:
grains:
roles:
roles:
- kubernetes-pool
- kubernetes-pool
cbr-cidr: 10.123.45.0/29
cloud: gce
cloud: gce
api_servers: '
${
KUBERNETES_MASTER_NAME
}
'
api_servers: '
${
KUBERNETES_MASTER_NAME
}
'
EOF
EOF
...
...
cluster/gce/gci/configure-helper.sh
View file @
6465742d
...
@@ -486,12 +486,8 @@ function start-kubelet {
...
@@ -486,12 +486,8 @@ function start-kubelet {
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
&&
!
-z
"
${
KUBELET_CERT
:-}
"
&&
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
if
[[
!
-z
"
${
KUBELET_APISERVER
:-}
"
&&
!
-z
"
${
KUBELET_CERT
:-}
"
&&
!
-z
"
${
KUBELET_KEY
:-}
"
]]
;
then
flags+
=
" --api-servers=https://
${
KUBELET_APISERVER
}
"
flags+
=
" --api-servers=https://
${
KUBELET_APISERVER
}
"
flags+
=
" --register-schedulable=false"
flags+
=
" --register-schedulable=false"
# 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
else
# Standalone mode (not widely used?)
flags+
=
" --pod-cidr=
${
MASTER_IP_RANGE
}
"
flags+
=
" --pod-cidr=
${
MASTER_IP_RANGE
}
"
fi
fi
else
# For nodes
else
# For nodes
...
...
cluster/gce/trusty/configure-helper.sh
View file @
6465742d
...
@@ -155,7 +155,7 @@ assemble_kubelet_flags() {
...
@@ -155,7 +155,7 @@ assemble_kubelet_flags() {
if
[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]
&&
\
if
[
!
-z
"
${
KUBELET_APISERVER
:-}
"
]
&&
\
[
!
-z
"
${
KUBELET_CERT
:-}
"
]
&&
\
[
!
-z
"
${
KUBELET_CERT
:-}
"
]
&&
\
[
!
-z
"
${
KUBELET_KEY
:-}
"
]
;
then
[
!
-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/29
"
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--api-servers=https://
${
KUBELET_APISERVER
}
--register-schedulable=false"
else
else
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--pod-cidr=
${
MASTER_IP_RANGE
}
"
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--pod-cidr=
${
MASTER_IP_RANGE
}
"
fi
fi
...
...
cluster/saltbase/salt/kubelet/default
View file @
6465742d
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
{% if grains.kubelet_api_servers is defined -%}
{% if grains.kubelet_api_servers is defined -%}
{% set api_servers_with_port = "--api-servers=https://" + grains.kubelet_api_servers -%}
{% set api_servers_with_port = "--api-servers=https://" + grains.kubelet_api_servers -%}
{% set master_kubelet_args = master_kubelet_args + "--register-schedulable=false" -%}
{% set master_kubelet_args = master_kubelet_args + "--register-schedulable=false" -%}
{% set reconcile_cidr_args = "--reconcile-cidr=false" -%}
{% else -%}
{% else -%}
{% set api_servers_with_port = "" -%}
{% set api_servers_with_port = "" -%}
{% endif -%}
{% endif -%}
...
...
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