Merge pull request #81969 from logicalhan/livez

add `/livez` endpoint for liveness probing on the kube-apiserver
This commit is contained in:
Kubernetes Prow Robot
2019-08-29 19:56:31 -07:00
committed by GitHub
15 changed files with 211 additions and 179 deletions

View File

@@ -198,7 +198,8 @@ func ClusterRoles() []rbacv1.ClusterRole {
ObjectMeta: metav1.ObjectMeta{Name: "system:discovery"},
Rules: []rbacv1.PolicyRule{
rbacv1helpers.NewRule("get").URLs(
"/readyz", "/healthz", "/version", "/version/",
"/livez", "/readyz", "/healthz",
"/version", "/version/",
"/openapi", "/openapi/*",
"/api", "/api/*",
"/apis", "/apis/*",
@@ -218,7 +219,7 @@ func ClusterRoles() []rbacv1.ClusterRole {
ObjectMeta: metav1.ObjectMeta{Name: "system:public-info-viewer"},
Rules: []rbacv1.PolicyRule{
rbacv1helpers.NewRule("get").URLs(
"/readyz", "/healthz", "/version", "/version/",
"/livez", "/readyz", "/healthz", "/version", "/version/",
).RuleOrDie(),
},
},

View File

@@ -548,6 +548,7 @@ items:
- /apis
- /apis/*
- /healthz
- /livez
- /openapi
- /openapi/*
- /readyz
@@ -1185,6 +1186,7 @@ items:
rules:
- nonResourceURLs:
- /healthz
- /livez
- /readyz
- /version
- /version/