Skip to content

carijit24/k8-native-inside-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8-native-inside-cluster

Extra manual Activity

This pod won't have privilege to list out all the pods and deployments as its using default service account. We have to create a role and rolebinding to assign the role to this default service account. Below are the set of commands that I ran locally in minikube to make it work.

 PS C:\AC\go-ws\k8-native-inside-cluster> kubectl create role temp --resource pods,deployments --verb list
 role.rbac.authorization.k8s.io/temp created
 PS C:\AC\go-ws\k8-native-inside-cluster> kubectl create rolebinding temp --role temp --serviceaccount default:default
 rolebinding.rbac.authorization.k8s.io/temp created

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages