1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 15:37:19 +00:00

NK-23: Fixed README.md

This commit is contained in:
belyshevdenis 2019-03-07 18:51:14 +02:00
parent 8c8c01a452
commit 43bb3a47e7

View file

@ -48,17 +48,20 @@ This will install necessary dependencies described in README.md
## Compiling
We are using code generator for custom resources objects from here: https://github.com/kubernetes/code-generator
Generate the additional controller code before compiling the project:
`scripts/update-codegen.sh`
Then you can build the controller:
`go build .`
# Installation
There are 2 possible ways to install and use the controller: for **development** and for **production**
# For development
## For development
_At the time of this writing, only this installation method worked_
@ -68,6 +71,6 @@ _At the time of this writing, only this installation method worked_
4. Run `scripts/deploy-controller.sh --service=localhost --serverIp=<server_IP>` where `<server_IP>` is a server from clipboard. This scripts will generate TLS certificate for webhook server and register this webhook in the cluster. Also it registers CustomResource `Policy`.
5. Start controller: `sudo kube-policy --cert=certs/server.crt --key=certs/server-key.pem --kubeconfig=~/.kube/config`
# For production
## For production
_To be implemented_