mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 18:38:40 +00:00
update development doc (#7037)
Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>
This commit is contained in:
parent
9cdb012c2c
commit
0edbb3038a
1 changed files with 2 additions and 1 deletions
|
@ -417,10 +417,11 @@ You can run Kyverno locally or in your IDE of choice with a few steps:
|
|||
1. To run Kyverno locally against the remote cluster you will need to provide `--kubeconfig` and `--serverIP` arguments:
|
||||
- `--kubeconfig` must point to your kubeconfig file (usually `~/.kube/config`)
|
||||
- `--serverIP` must be set to `<local ip>:9443` (`<local ip>` is the private ip adress of your local machine)
|
||||
- `--backgroundServiceAccountName` must be set to `system:serviceaccount:kyverno:kyverno-background-controller`
|
||||
|
||||
Once you are ready with the steps above, Kyverno can be started locally with:
|
||||
```console
|
||||
go run ./cmd/kyverno/ --kubeconfig ~/.kube/config --serverIP=<local-ip>:9443
|
||||
go run ./cmd/kyverno/ --kubeconfig ~/.kube/config --serverIP=<local-ip>:9443 --backgroundServiceAccountName=system:serviceaccount:kyverno:kyverno-background-controller
|
||||
```
|
||||
|
||||
You will need to adapt those steps to run debug sessions in your IDE of choice, but the general idea remains the same.
|
||||
|
|
Loading…
Add table
Reference in a new issue