metalstormbass / mike-admission-controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mike-admission-controller

This is the code to a simple admission controller that looks to see if a container is deployed with the tag "latest" and reject it.

Usage

Build the container

./generate_certs.sh
docker build . -t michaelbraunbass/mike-admission-controller:main
docker push michaelbraunbass/mike-admission-controller:main

Deploy to Kubernete:

kubectl apply -f kubernetes/deploy-mike-admission-controller.yaml

Register the webhook:

kubectl apply -f kubernetes/register-webhook.yaml

About


Languages

Language:Go 80.8%Language:Shell 10.9%Language:Dockerfile 8.3%