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
0b4d702e
Commit
0b4d702e
authored
Feb 24, 2016
by
Alex Robinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21730 from lavalamp/fix-proxy-svc-pod
add readiness probe to proxy test
parents
475076e1
9d87b47d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
proxy.go
test/e2e/proxy.go
+10
-0
util.go
test/e2e/util.go
+2
-0
No files found.
test/e2e/proxy.go
View file @
0b4d702e
...
...
@@ -125,6 +125,16 @@ func proxyContext(version string) {
"tlsdest1"
:
460
,
"tlsdest2"
:
462
,
},
ReadinessProbe
:
&
api
.
Probe
{
Handler
:
api
.
Handler
{
HTTPGet
:
&
api
.
HTTPGetAction
{
Port
:
intstr
.
FromInt
(
80
),
},
},
InitialDelaySeconds
:
1
,
TimeoutSeconds
:
5
,
PeriodSeconds
:
10
,
},
Labels
:
labels
,
CreatedPods
:
&
pods
,
}
...
...
test/e2e/util.go
View file @
0b4d702e
...
...
@@ -247,6 +247,7 @@ type RCConfig struct {
CpuLimit
int64
// millicores
MemRequest
int64
// bytes
MemLimit
int64
// bytes
ReadinessProbe
*
api
.
Probe
// Env vars, set the same for every pod.
Env
map
[
string
]
string
...
...
@@ -1637,6 +1638,7 @@ func (config *RCConfig) create() error {
Image
:
config
.
Image
,
Command
:
config
.
Command
,
Ports
:
[]
api
.
ContainerPort
{{
ContainerPort
:
80
}},
ReadinessProbe
:
config
.
ReadinessProbe
,
},
},
DNSPolicy
:
api
.
DNSDefault
,
...
...
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