Skip to content

tudou34/webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Webhook

build image

  1. mv codedir to $GOPATH/src
make build
  1. check image, tag is xiong
docker images | grep gcr.io/kubernetes-e2e-test-images/k8s-sample-admission-webhook-amd64

then send image to k8s slave nodes using (docker save and docker load) or push image to private repositories(need update deploy/deployment.yaml image)

init

  1. run at a k8s master node
./deploy/init.sh

kubectl get po -n xiong | grep mywebhook-deployment

wait pod is running status

verify

kubectl create -f deploy/examplepod.yaml

kubectl get po -n xiong -oyaml webhook-example

a pause container is added to pod

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published