Skip to content

zubron/k8s-in-cluster-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-in-cluster-config

Sample to show K8s in-cluster config

How to use

Apply the configuration in manifest.yaml to create the resources. This creates a namespace test-in-cluster-config and creates a Role and RoleBinding which can list pods in that namespace. The pod runs an image built from main.go which attempts to create an in-cluster config and then use that to list the pods in the namespace where it is running.

kubectl apply -f manifest.yaml
kubectl logs -n test-in-cluster-config list-pods

About

Sample to show K8s in-cluster config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published