This repo contains a super basic example of validation webhook in kubernetes. You can find detailed tutorial on technekey.com
#build the image from the directory with Dockerfile
#docker build -t validate-deployment:latest .
#tag the image
#docker tag validate-deployment technekey/validate-deployment:latest
#push to the repo
#docker push technekey/validate-deployment:latest