Skip to content

Commit 85b3e9f

Browse files
authored
Updating default-token to namespace-controller-token
The default token does not have enough permissions to view the dashboard. The namespace-controller token does work. Note for the future we should perhaps look into explictly creating a token that does have the right set of permissions to use the dashboard
1 parent 03528db commit 85b3e9f

File tree

1 file changed

+4
-4
lines changed
  • 02-path-working-with-clusters/201-cluster-monitoring

1 file changed

+4
-4
lines changed

02-path-working-with-clusters/201-cluster-monitoring/readme.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ It shows the output as:
9494
statefulset-controller-token-kmgzg kubernetes.io/service-account-token 3 3h
9595
ttl-controller-token-vbnhf kubernetes.io/service-account-token 3 3h
9696

97-
We can login using any secret with type 'kubernetes.io/service-account-token', though each of them have different privileges. In our case, we'll use the token from secret `default-token-7vh0x` to login. Use the following command to get the token for this secret:
97+
We can login using the secret with type 'kubernetes.io/namespace-controller-token'. In our case, we'll use the token from secret `namespace-controller-token-423gh` to login. Use the following command to get the token for this secret:
9898

99-
kubectl -n kube-system describe secret default-token-7vh0x
99+
kubectl -n kube-system describe secret namespace-controller-token-423gh
100100

101-
Note you'll need to replace `default-token-7vh0x` with the default-token from your output list.
101+
Note you'll need to replace `namespace-controller-token-423gh` with the namespace-controller-token from your output list.
102102

103103
It shows the output:
104104

105105
```
106-
Name: default-token-7vh0x
106+
Name: namespace-controller-token-423gh
107107
Namespace: kube-system
108108
Labels: <none>
109109
Annotations: kubernetes.io/service-account.name=default

0 commit comments

Comments
 (0)