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
0b647564
Commit
0b647564
authored
Dec 19, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18625 from bprashanth/kube_up_flannel
Auto commit by PR queue bot
parents
64985512
b5303b99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
default
cluster/saltbase/salt/kubelet/default
+6
-1
kubelet.go
pkg/kubelet/kubelet.go
+0
-8
No files found.
cluster/saltbase/salt/kubelet/default
View file @
0b647564
...
@@ -85,8 +85,13 @@
...
@@ -85,8 +85,13 @@
{% set configure_cbr0 = "--configure-cbr0=" + pillar['allocate_node_cidrs'] -%}
{% set configure_cbr0 = "--configure-cbr0=" + pillar['allocate_node_cidrs'] -%}
{% endif -%}
{% endif -%}
# The master kubelet cannot wait for the flannel daemon because it is responsible
# for starting up the flannel server in a static pod. So even though the flannel
# daemon runs on the master, it doesn't hold up cluster bootstrap. All the pods
# on the master run with host networking, so the master flannel doesn't care
# even if the network changes. We only need it for the master proxy.
{% set experimental_flannel_overlay = "" -%}
{% set experimental_flannel_overlay = "" -%}
{% if pillar.get('network_provider', '').lower() == 'flannel' %}
{% if pillar.get('network_provider', '').lower() == 'flannel'
and grains['roles'][0] != 'kubernetes-master'
%}
{% set experimental_flannel_overlay = "--experimental-flannel-overlay=true" %}
{% set experimental_flannel_overlay = "--experimental-flannel-overlay=true" %}
{% endif -%}
{% endif -%}
...
...
pkg/kubelet/kubelet.go
View file @
0b647564
...
@@ -317,14 +317,6 @@ func NewMainKubelet(
...
@@ -317,14 +317,6 @@ func NewMainKubelet(
if
klet
.
flannelExperimentalOverlay
{
if
klet
.
flannelExperimentalOverlay
{
glog
.
Infof
(
"Flannel is in charge of podCIDR and overlay networking."
)
glog
.
Infof
(
"Flannel is in charge of podCIDR and overlay networking."
)
}
}
if
klet
.
kubeClient
==
nil
{
// The master kubelet cannot wait for the flannel daemon because it is responsible
// for starting up the flannel server in a static pod. So even though the flannel
// daemon runs on the master, it doesn't hold up cluster bootstrap. All the pods
// on the master run with host networking, so the master flannel doesn't care
// even if the network changes. We only need it for the master proxy.
klet
.
flannelExperimentalOverlay
=
false
}
if
plug
,
err
:=
network
.
InitNetworkPlugin
(
networkPlugins
,
networkPluginName
,
&
networkHost
{
klet
});
err
!=
nil
{
if
plug
,
err
:=
network
.
InitNetworkPlugin
(
networkPlugins
,
networkPluginName
,
&
networkHost
{
klet
});
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
else
{
}
else
{
...
...
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