cd docker
docker build . -t localserver
- Cut and Paste the root CA from the docker build output
Step 12/13 : RUN cat rootCA.crt | base64 | tr -d '\n'
and replace the value currently in https://github.com/dowjones/k8s-webhook/blob/master/k8s/hook.yaml#L14 cd ../k8s
kubectl create -f deployment.yaml
kubectl create -f service.yaml
kubectl create -f hook.yaml
kubectl create -f test.yaml