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
4fe4f1f2
Commit
4fe4f1f2
authored
Jan 11, 2016
by
Prashanth Balasubramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Errors in network setup should prevent pod creation
parent
37b57267
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 @
4fe4f1f2
...
@@ -2683,12 +2683,14 @@ func (kl *Kubelet) syncNetworkStatus() {
...
@@ -2683,12 +2683,14 @@ func (kl *Kubelet) syncNetworkStatus() {
if
err
:=
ensureIPTablesMasqRule
();
err
!=
nil
{
if
err
:=
ensureIPTablesMasqRule
();
err
!=
nil
{
err
=
fmt
.
Errorf
(
"Error on adding ip table rules: %v"
,
err
)
err
=
fmt
.
Errorf
(
"Error on adding ip table rules: %v"
,
err
)
glog
.
Error
(
err
)
glog
.
Error
(
err
)
kl
.
runtimeState
.
setNetworkState
(
err
)
return
}
}
podCIDR
:=
kl
.
runtimeState
.
podCIDR
()
podCIDR
:=
kl
.
runtimeState
.
podCIDR
()
if
len
(
podCIDR
)
==
0
{
if
len
(
podCIDR
)
==
0
{
err
=
fmt
.
Errorf
(
"ConfigureCBR0 requested, but PodCIDR not set. Will not configure CBR0 right now"
)
err
=
fmt
.
Errorf
(
"ConfigureCBR0 requested, but PodCIDR not set. Will not configure CBR0 right now"
)
glog
.
Warning
(
err
)
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
)
err
=
fmt
.
Errorf
(
"Error configuring cbr0: %v"
,
err
)
glog
.
Error
(
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