- Set your kubectl context against your TKG Management cluster
- Create a service account and needed RBAC using the bellow commands:
kubectl create ns terasky-monitoring
kubectl create sa -n terasky-monitoring terasky-monitoring-user
kubectl create clusterrolebinding terasky-monitoring-rbac --serviceaccount terasky-monitoring:terasky-monitoring-user --clusterrole view- create the token for the service account using the bellow command
kubectl apply -f - <