mirror of
https://github.com/rancher/k3k.git
synced 2026-04-05 18:26:56 +00:00
* adding scripts for asciidoc cli generation * fix small typos to align to existing docs * added pandoc * pandoc check
37 lines
906 B
Markdown
37 lines
906 B
Markdown
## k3kcli policy create
|
|
|
|
Create a new policy.
|
|
|
|
```
|
|
k3kcli policy create [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
k3kcli policy create [command options] NAME
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--annotations stringArray Annotations to add to the policy object (e.g. key=value)
|
|
-h, --help help for create
|
|
--labels stringArray Labels to add to the policy object (e.g. key=value)
|
|
--mode string The allowed mode type of the policy (default "shared")
|
|
--namespace strings The namespaces where to bind the policy
|
|
--overwrite Overwrite namespace binding of existing policy
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--debug Turn on debug logs
|
|
--kubeconfig string kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [k3kcli policy](k3kcli_policy.md) - K3k policy command.
|
|
|