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
926b94fe
Commit
926b94fe
authored
Jan 14, 2016
by
Prashanth B
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19493 from bprashanth/kubelet_fix
Errors in network setup should prevent pod creation
parents
c446bf50
4fe4f1f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
kubelet.go
pkg/kubelet/kubelet.go
+3
-1
No files found.
pkg/kubelet/kubelet.go
View file @
926b94fe
...
...
@@ -2637,12 +2637,14 @@ func (kl *Kubelet) syncNetworkStatus() {
if
err
:=
ensureIPTablesMasqRule
();
err
!=
nil
{
err
=
fmt
.
Errorf
(
"Error on adding ip table rules: %v"
,
err
)
glog
.
Error
(
err
)
kl
.
runtimeState
.
setNetworkState
(
err
)
return
}
podCIDR
:=
kl
.
runtimeState
.
podCIDR
()
if
len
(
podCIDR
)
==
0
{
err
=
fmt
.
Errorf
(
"ConfigureCBR0 requested, but PodCIDR not set. Will not configure CBR0 right now"
)
glog
.
Warning
(
err
)
}
else
if
err
:
=
kl
.
reconcileCBR0
(
podCIDR
);
err
!=
nil
{
}
else
if
err
=
kl
.
reconcileCBR0
(
podCIDR
);
err
!=
nil
{
err
=
fmt
.
Errorf
(
"Error configuring cbr0: %v"
,
err
)
glog
.
Error
(
err
)
}
...
...
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