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
be5cd7fe
Commit
be5cd7fe
authored
Jul 14, 2017
by
Casey Davenport
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recreate pod sandbox when the sandbox does not have an IP address.
parent
98ed5dd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
kuberuntime_manager.go
pkg/kubelet/kuberuntime/kuberuntime_manager.go
+6
-0
generic.go
pkg/kubelet/pleg/generic.go
+1
-1
No files found.
pkg/kubelet/kuberuntime/kuberuntime_manager.go
View file @
be5cd7fe
...
...
@@ -396,6 +396,12 @@ func (m *kubeGenericRuntimeManager) podSandboxChanged(pod *v1.Pod, podStatus *ku
return
true
,
sandboxStatus
.
Metadata
.
Attempt
+
1
,
""
}
// Needs to create a new sandbox when the sandbox does not have an IP address.
if
!
kubecontainer
.
IsHostNetworkPod
(
pod
)
&&
sandboxStatus
.
Network
.
Ip
==
""
{
glog
.
V
(
2
)
.
Infof
(
"Sandbox for pod %q has no IP address. Need to start a new one"
,
format
.
Pod
(
pod
))
return
true
,
sandboxStatus
.
Metadata
.
Attempt
+
1
,
sandboxStatus
.
Id
}
return
false
,
sandboxStatus
.
Metadata
.
Attempt
,
sandboxStatus
.
Id
}
...
...
pkg/kubelet/pleg/generic.go
View file @
be5cd7fe
...
...
@@ -177,7 +177,7 @@ func (g *GenericPLEG) updateRelisTime(timestamp time.Time) {
}
// relist queries the container runtime for list of pods/containers, compare
// with the internal pods/containers, and generats events accordingly.
// with the internal pods/containers, and generat
e
s events accordingly.
func
(
g
*
GenericPLEG
)
relist
()
{
glog
.
V
(
5
)
.
Infof
(
"GenericPLEG: Relisting"
)
...
...
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