Synopsis
Generate Network Policies based on observed pod traffic.Flags
| Flag | Type | Description | Default |
|---|---|---|---|
-n, --namespace | string | Namespace of the pod | Current namespace |
-a, --all | bool | Generate for all pods in namespace | false |
-A, --all-namespaces | bool | Generate for all pods cluster-wide | false |
-t, --type | string | Policy type: kubernetes or cilium | kubernetes |
--output-dir | string | Directory to save policies | network-policies |
--dry-run | bool | Generate without applying | true |
Examples
See Generating Network Policies for detailed usage.