Skip to content

cookiefission/kube-controller-runtime-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kube Controller Runtime Example

Basic example of using the kube controller-runtime package. Example code stolen pretty much verbatim from the package's examples.

Broken into a separate repository so I could split component parts into separate commits to share with colleagues.

Running

  • Have a valid ~/.kube/config file pointing at the context you want to use
  • kubectl apply -f ./deploy.yaml
  • go run main.go
  • kubectl scale deploy/hello --replicas=2
  • kubectl get rs -Lpod-count to see label added by controller.

Releases

No releases published

Packages

No packages published

Languages