mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Merge pull request #81969 from logicalhan/livez
add `/livez` endpoint for liveness probing on the kube-apiserver
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
},
|
||||
|
||||
@@ -548,6 +548,7 @@ items:
|
||||
- /apis
|
||||
- /apis/*
|
||||
- /healthz
|
||||
- /livez
|
||||
- /openapi
|
||||
- /openapi/*
|
||||
- /readyz
|
||||
@@ -1185,6 +1186,7 @@ items:
|
||||
rules:
|
||||
- nonResourceURLs:
|
||||
- /healthz
|
||||
- /livez
|
||||
- /readyz
|
||||
- /version
|
||||
- /version/
|
||||
|
||||
Reference in New Issue
Block a user