github.com/cilium/cilium@v1.16.2/Documentation/cmdref/cilium-dbg_preflight_validate-cnp.md (about)

     1  <!-- This file was autogenerated via cilium cmdref, do not edit manually-->
     2  
     3  ## cilium-dbg preflight validate-cnp
     4  
     5  Validate Cilium Network Policies deployed in the cluster
     6  
     7  ### Synopsis
     8  
     9  Before upgrading Cilium it is recommended to run this validation checker
    10  to make sure the policies deployed are valid. The validator will verify if all policies
    11  deployed in the cluster are valid, in case they are not, an error is printed and the
    12  has an exit code 1 is returned.
    13  
    14  ```
    15  cilium-dbg preflight validate-cnp [flags]
    16  ```
    17  
    18  ### Options
    19  
    20  ```
    21        --enable-k8s                                  Enable the k8s clientset (default true)
    22        --enable-k8s-api-discovery                    Enable discovery of Kubernetes API groups and resources with the discovery API
    23    -h, --help                                        help for validate-cnp
    24        --k8s-api-server string                       Kubernetes API server URL
    25        --k8s-client-burst int                        Burst value allowed for the K8s client
    26        --k8s-client-connection-keep-alive duration   Configures the keep alive duration of K8s client connections. K8 client is disabled if the value is set to 0 (default 30s)
    27        --k8s-client-connection-timeout duration      Configures the timeout of K8s client connections. K8s client is disabled if the value is set to 0 (default 30s)
    28        --k8s-client-qps float32                      Queries per second limit for the K8s client
    29        --k8s-heartbeat-timeout duration              Configures the timeout for api-server heartbeat, set to 0 to disable (default 30s)
    30        --k8s-kubeconfig-path string                  Absolute path of the kubernetes kubeconfig file
    31  ```
    32  
    33  ### Options inherited from parent commands
    34  
    35  ```
    36        --config string   Config file (default is $HOME/.cilium.yaml)
    37    -D, --debug           Enable debug messages
    38    -H, --host string     URI to server-side API
    39  ```
    40  
    41  ### SEE ALSO
    42  
    43  * [cilium-dbg preflight](cilium-dbg_preflight.md)	 - Cilium upgrade helper
    44