-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fredrik Klingenberg <fredrkl@gmail.com>
- Loading branch information
Showing
3 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
# Kyverno Demo | ||
|
||
## Setting up the demo with the devcontainer | ||
## Setup | ||
|
||
### devcontainer | ||
This demo shows how to use Kyverno to enforce policies on Kubernetes resources. You can use the devcontainer following this repo. The devcontainer has all the tools installed to run the demo. | ||
|
||
## Setting up the demo without the devcontainer | ||
### Setting up the demo without the devcontainer | ||
First, you will need to have _kind_ installed. You can find instructions on how to install _kind_ [here](https://kind.sigs.k8s.io/docs/user/quick-start/). | ||
|
||
## Running the demo | ||
|
||
### Create a cluster | ||
To create a cluster, run the following command: | ||
|
||
```bash | ||
kind create cluster --name kyverno-demo | ||
``` | ||
|
||
### Get the kubeconfig | ||
|
||
```bash | ||
kind get kubeconfig --name kyverno-demo > ~/.kube/config | ||
``` | ||
|
||
### Install Kyverno | ||
To install Kyverno, run the following command: | ||
|
||
```bash | ||
kubectl apply -f https://raw.githubusercontent.com/kyverno/kyverno/main/definitions/release/install.yaml | ||
``` |