Quickstart Guide
#
1. Install jsPolicyInstall jsPolicy to your Kubernetes cluster via Helm v3:
#
2. Create a PolicyCreate the file policy.yaml
:
Policy Code
Note that for the sake of simplicity, the above example places the policy logic directly inside the YAML definition of this JsPolicy resource. To take full advantage of JavaScript or TypeScript development and testing tooling, you may want to load the policy code directly from a JavaScript or TypeScript file. See Writing Policies for details.
#
3. Apply The PolicyApply the policy in your cluster: