create-ingress
The cldkctl guard create-ingress command creates an ingress rule within a Guard in your project. This command allows you to define inbound traffic restrictions for workloads, specifying the namespace, endpoint selector, and whether to deny all ingress traffic.
Usage
cldkctl guard create-ingress [flags]Aliases
create-ingress, add-ingSteps
Follow the steps below to run and view the result of this command:
Run the following command in your terminal:
./cldkctl guard create-ingress
When prompted, select the Namespace where the Guard will be created.
Enter the Endpoint Selector, using one or more labels in key-value format

Confirm whether you want to deny all incoming traffic for the Guard. Select Confirm to deny all ingress traffic, or Cancel to allow traffic unless explicitly restricted.

Wait for the system to process the request.
Once the process is successful, the terminal displays the message “✔ Guard deny all ingress has been successfully created”.
Flags
-e, --endpoint_selector string
Specify the endpoint selector.
-h, --help
Help for the guard create-ingress command.
-n, --namespace string
Specify the namespace.
Last updated