mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Add readiness probes to CRD/Admission webhook pods
This commit is contained in:
parent
f4887d692e
commit
d150f15d91
@ -292,6 +292,18 @@ func deployCustomResourceWebhookAndService(f *framework.Framework, image string,
|
|||||||
// Use a non-default port for containers.
|
// Use a non-default port for containers.
|
||||||
fmt.Sprintf("--port=%d", containerPort),
|
fmt.Sprintf("--port=%d", containerPort),
|
||||||
},
|
},
|
||||||
|
ReadinessProbe: &v1.Probe{
|
||||||
|
Handler: v1.Handler{
|
||||||
|
HTTPGet: &v1.HTTPGetAction{
|
||||||
|
Scheme: v1.URISchemeHTTPS,
|
||||||
|
Port: intstr.FromInt(int(containerPort)),
|
||||||
|
Path: "/readyz",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PeriodSeconds: 1,
|
||||||
|
SuccessThreshold: 1,
|
||||||
|
FailureThreshold: 30,
|
||||||
|
},
|
||||||
Image: image,
|
Image: image,
|
||||||
Ports: []v1.ContainerPort{{ContainerPort: containerPort}},
|
Ports: []v1.ContainerPort{{ContainerPort: containerPort}},
|
||||||
},
|
},
|
||||||
|
@ -778,6 +778,18 @@ func deployWebhookAndService(f *framework.Framework, image string, context *cert
|
|||||||
// Use a non-default port for containers.
|
// Use a non-default port for containers.
|
||||||
fmt.Sprintf("--port=%d", containerPort),
|
fmt.Sprintf("--port=%d", containerPort),
|
||||||
},
|
},
|
||||||
|
ReadinessProbe: &v1.Probe{
|
||||||
|
Handler: v1.Handler{
|
||||||
|
HTTPGet: &v1.HTTPGetAction{
|
||||||
|
Scheme: v1.URISchemeHTTPS,
|
||||||
|
Port: intstr.FromInt(int(containerPort)),
|
||||||
|
Path: "/readyz",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PeriodSeconds: 1,
|
||||||
|
SuccessThreshold: 1,
|
||||||
|
FailureThreshold: 30,
|
||||||
|
},
|
||||||
Image: image,
|
Image: image,
|
||||||
Ports: []v1.ContainerPort{{ContainerPort: containerPort}},
|
Ports: []v1.ContainerPort{{ContainerPort: containerPort}},
|
||||||
},
|
},
|
||||||
|
@ -204,7 +204,7 @@ const (
|
|||||||
|
|
||||||
func initImageConfigs() map[int]Config {
|
func initImageConfigs() map[int]Config {
|
||||||
configs := map[int]Config{}
|
configs := map[int]Config{}
|
||||||
configs[Agnhost] = Config{e2eRegistry, "agnhost", "2.5"}
|
configs[Agnhost] = Config{e2eRegistry, "agnhost", "2.6"}
|
||||||
configs[Alpine] = Config{dockerLibraryRegistry, "alpine", "3.7"}
|
configs[Alpine] = Config{dockerLibraryRegistry, "alpine", "3.7"}
|
||||||
configs[AuthenticatedAlpine] = Config{gcAuthenticatedRegistry, "alpine", "3.7"}
|
configs[AuthenticatedAlpine] = Config{gcAuthenticatedRegistry, "alpine", "3.7"}
|
||||||
configs[AuthenticatedWindowsNanoServer] = Config{gcAuthenticatedRegistry, "windows-nanoserver", "v1"}
|
configs[AuthenticatedWindowsNanoServer] = Config{gcAuthenticatedRegistry, "windows-nanoserver", "v1"}
|
||||||
|
Loading…
Reference in New Issue
Block a user