Skip to content

Commit 00aa425

Browse files
committed
fix permissions for mode pvc, add hint in README.md
1 parent b54b2b7 commit 00aa425

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ All the needed objects (ServiceAccount, ClusterRole, RoleBinding) can be created
126126

127127
kubectl apply -f https://raw.githubusercontent.com/agapoff/check_kubernetes/master/account.yaml
128128

129-
You may also prefer to revise and tighten the RBAC role if you're not going to use all modes. For example you may get rid of secrets permission if you have no need to check the TLS certs.
129+
For mode pvc or tls you need to enable the permissions in the yaml first. Those two can have security implications and are thus disabled by default.
130130

131131
Then in order to get the token just issue this command:
132132

account.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ rules:
2323
resources:
2424
- pods
2525
- nodes
26+
# required for mode pvc
27+
# - nodes/proxy
28+
# required for mode tls
2629
# - secrets
2730
- persistentvolumes
2831
verbs:

0 commit comments

Comments
 (0)