How-to Grant Read-Only Access to the Kubernetes Dashboard
Problem
Environment
Procedure
# kubectl create sa [name of serviceaccount] -n [namespace]# cat [<EOF | kubectl apply -f -] ---> apiVersion: rbac.authorization.k8s.io/v1> kind: ClusterRole> metadata:> name: [clusterrole name]> rules:> - apiGroups: ["*"]> resources: ["*"]> verbs: ["get", "list", "watch"]> EOF# kubectl create clusterrolebinding [name] --serviceaccount=[namespace:serviceaccount name] --clusterrole=[clusterrole name]PreviousHow To Identify the Active Master Node in Platform9 Managed Kubernetes ClusterNextHow to Prevent Container Runtime From Being Managed by Platform9
Last updated
