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
273c9ce5
Commit
273c9ce5
authored
Oct 09, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15177 from timstclair/restart-policy
Auto commit by PR queue bot
parents
2f90f660
f67879ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
manager.go
pkg/kubelet/dockertools/manager.go
+2
-0
rkt.go
pkg/kubelet/rkt/rkt.go
+1
-1
No files found.
pkg/kubelet/dockertools/manager.go
View file @
273c9ce5
...
@@ -1737,9 +1737,11 @@ func (dm *DockerManager) computePodContainerChanges(pod *api.Pod, runningPod kub
...
@@ -1737,9 +1737,11 @@ func (dm *DockerManager) computePodContainerChanges(pod *api.Pod, runningPod kub
containersToKeep
[
containerID
]
=
index
containersToKeep
[
containerID
]
=
index
continue
continue
}
}
if
pod
.
Spec
.
RestartPolicy
!=
api
.
RestartPolicyNever
{
glog
.
Infof
(
"pod %q container %q is unhealthy (probe result: %v), it will be killed and re-created."
,
podFullName
,
container
.
Name
,
result
)
glog
.
Infof
(
"pod %q container %q is unhealthy (probe result: %v), it will be killed and re-created."
,
podFullName
,
container
.
Name
,
result
)
containersToStart
[
index
]
=
empty
{}
containersToStart
[
index
]
=
empty
{}
}
}
}
// After the loop one of the following should be true:
// After the loop one of the following should be true:
// - createPodInfraContainer is true and containersToKeep is empty.
// - createPodInfraContainer is true and containersToKeep is empty.
...
...
pkg/kubelet/rkt/rkt.go
View file @
273c9ce5
...
@@ -1013,7 +1013,7 @@ func (r *Runtime) SyncPod(pod *api.Pod, runningPod kubecontainer.Pod, podStatus
...
@@ -1013,7 +1013,7 @@ func (r *Runtime) SyncPod(pod *api.Pod, runningPod kubecontainer.Pod, podStatus
result
,
err
:=
r
.
prober
.
ProbeLiveness
(
pod
,
podStatus
,
container
,
c
.
ID
,
c
.
Created
)
result
,
err
:=
r
.
prober
.
ProbeLiveness
(
pod
,
podStatus
,
container
,
c
.
ID
,
c
.
Created
)
// TODO(vmarmol): examine this logic.
// TODO(vmarmol): examine this logic.
if
err
==
nil
&&
result
!=
probe
.
Success
{
if
err
==
nil
&&
result
!=
probe
.
Success
&&
pod
.
Spec
.
RestartPolicy
!=
api
.
RestartPolicyNever
{
glog
.
Infof
(
"Pod %q container %q is unhealthy (probe result: %v), it will be killed and re-created."
,
podFullName
,
container
.
Name
,
result
)
glog
.
Infof
(
"Pod %q container %q is unhealthy (probe result: %v), it will be killed and re-created."
,
podFullName
,
container
.
Name
,
result
)
restartPod
=
true
restartPod
=
true
break
break
...
...
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