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
14cfc430
Commit
14cfc430
authored
Aug 07, 2015
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12378 from brendandburns/e2e2
Add a test for HTTP health checks that validates healthy pods stay up
parents
a53f4c86
5be9ff70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
pods.go
test/e2e/pods.go
+33
-0
No files found.
test/e2e/pods.go
View file @
14cfc430
...
@@ -520,6 +520,39 @@ var _ = Describe("Pods", func() {
...
@@ -520,6 +520,39 @@ var _ = Describe("Pods", func() {
},
true
)
},
true
)
})
})
It
(
"should *not* be restarted with a /healthz http liveness probe"
,
func
()
{
runLivenessTest
(
framework
.
Client
,
framework
.
Namespace
.
Name
,
&
api
.
Pod
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"liveness-http"
,
Labels
:
map
[
string
]
string
{
"test"
:
"liveness"
},
},
Spec
:
api
.
PodSpec
{
Containers
:
[]
api
.
Container
{
{
Name
:
"liveness"
,
Image
:
"gcr.io/google_containers/nettest:1.6"
,
// These args are garbage but the image will exit if they're not there
// we just care about /read serving a 200, which it always does.
Args
:
[]
string
{
"-service=liveness-http"
,
"-peers=1"
,
"-namespace="
+
framework
.
Namespace
.
Name
},
Ports
:
[]
api
.
ContainerPort
{{
ContainerPort
:
8080
}},
LivenessProbe
:
&
api
.
Probe
{
Handler
:
api
.
Handler
{
HTTPGet
:
&
api
.
HTTPGetAction
{
Path
:
"/read"
,
Port
:
util
.
NewIntOrStringFromInt
(
8080
),
},
},
InitialDelaySeconds
:
15
,
},
},
},
},
},
false
)
})
// The following tests for remote command execution and port forwarding are
// The following tests for remote command execution and port forwarding are
// commented out because the GCE environment does not currently have nsenter
// commented out because the GCE environment does not currently have nsenter
// in the kubelet's PATH, nor does it have socat installed. Once we figure
// in the kubelet's PATH, nor does it have socat installed. Once we figure
...
...
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