Created
July 9, 2023 21:46
-
-
Save Elektordi/715212c7d0d7dd39775074236e4b07fc to your computer and use it in GitHub Desktop.
Kube RBAC for healthz endpoints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: healthz | |
rules: | |
- nonResourceURLs: ["/healthz", "/livez", "/readyz"] | |
verbs: ["get"] | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: healthz | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: healthz | |
subjects: | |
- apiGroup: rbac.authorization.k8s.io | |
kind: Group | |
name: system:unauthenticated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment