Skip to content

An application that can use client-go to list pods and deployments from default namespace by using the client-go library to interact with k8s clsuters.

Notifications You must be signed in to change notification settings

AryanParashar24/Lister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lister

An application that can use client-go to list pods and deployments from default namespace by using the client-go library to interact with k8s clsuters.

Build the binary

go build

Build the Docker image

» docker build -t lister:0.1.1 .

If you want to get this deployed on your Kubernetes cluster, push this image to a continer registry

docker tag lister:0.1.1 <container-registry>/lister:0.1.1
docker  push <container-registry>/lister:0.1.1

Once the image is pushed, change the lister.yaml to have this new image for value .spec.template.spec.containers[0].image.

Create deployment

kubectl create -f lister.yaml

About

An application that can use client-go to list pods and deployments from default namespace by using the client-go library to interact with k8s clsuters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published