1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-01-20 18:52:16 +00:00
kyverno/documentation/installation.md

28 lines
923 B
Markdown
Raw Normal View History

2019-05-21 15:50:36 -07:00
<small>*[documentation](/README.md#documentation) / Installation*</small>
2019-05-21 14:44:04 -07:00
2019-05-20 20:43:38 -07:00
# Installation
2019-05-21 14:44:04 -07:00
To install Kyverno in your cluster run:
2019-05-20 20:43:38 -07:00
2019-05-21 14:49:10 -07:00
`kubectl create -f https://github.com/nirmata/kyverno/raw/master/definitions/install.yaml`
2019-05-20 20:43:38 -07:00
2019-05-21 14:49:10 -07:00
To check if the Kyverno controller is running use:
2019-05-20 20:43:38 -07:00
2019-05-21 14:49:10 -07:00
`kubectl get pods -n kyverno`
2019-05-21 14:44:04 -07:00
2019-05-21 14:49:10 -07:00
If the Kyverno controller doesn't start, you can check its status and logs for errors:
2019-05-21 14:44:04 -07:00
2019-05-21 14:49:10 -07:00
`kubectl describe pod <kyverno-pod-name> -n kyverno`
2019-05-20 20:43:38 -07:00
2019-05-21 14:49:10 -07:00
`kubectl logs <kyverno-pod-name> -n kyverno`
2019-05-20 20:43:38 -07:00
2019-05-21 14:44:04 -07:00
# Installing in a Development Environment
2019-05-20 20:43:38 -07:00
2019-05-21 14:44:04 -07:00
To run Kyverno in a development environment see: https://github.com/nirmata/kyverno/wiki/Building
2019-05-20 20:43:38 -07:00
2019-05-21 14:44:04 -07:00
# Try Kyverno without a Kubernetes cluster
2019-05-20 20:43:38 -07:00
2019-05-21 14:44:04 -07:00
To write and test policies without installing Kyverno in a Kubernetes cluster you can try the [Kyverno CLI](documentation/testing-policies-cli.md).
2019-05-20 20:43:38 -07:00
2019-05-21 15:50:36 -07:00
<small>*Read Next >> [Writing Policies](/documentation/writing-policies.md)*</small>