mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
add readiness probe to proxy test
This commit is contained in:
parent
6cecf2b357
commit
9d87b47d77
@ -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,
|
||||
}
|
||||
|
@ -243,6 +243,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
|
||||
@ -1617,6 +1618,7 @@ func (config *RCConfig) create() error {
|
||||
Image: config.Image,
|
||||
Command: config.Command,
|
||||
Ports: []api.ContainerPort{{ContainerPort: 80}},
|
||||
ReadinessProbe: config.ReadinessProbe,
|
||||
},
|
||||
},
|
||||
DNSPolicy: api.DNSDefault,
|
||||
|
Loading…
Reference in New Issue
Block a user