NAME
gdcloud network get-effective-firewall-rules – Die effektiven Firewallregeln für eine Arbeitslast abrufen.
SYNOPSIS
gdcloud network get-effective-firewall-rules [flags]
BEISPIELE
To get the effective firewall rules for a specific pod named 'my-pod' in shared cluster 'user-vm-1' and project 'project-1', run:
gdcloud network get-effective-firewall-rules --project=project-1 --workload-name=pod/my-pod --cluster-name=user-vm-1
To get the effective firewall rules for workloads with labels 'app=my-app' in project 'project-1', run:
gdcloud network get-effective-firewall-rules --project=project-1 --workload-labels=app=my-app
To get the effective firewall rules for workloads with labels 'app=my-app' in standard cluster 'standard-cluster-1' and project 'project-1', run:
gdcloud network get-effective-firewall-rules --project=project-1 --workload-labels=app=my-app --cluster-name=standard-cluster-1 --standard --namespace=my-namespace
OPTIONALE FLAGS
--cluster-name string Name of the cluster where the workload resides.
--namespace string Namespace where the workload resides. This is only required when --standard is specified.
--standard Set the configuration for the cluster with the firewall rules as a standard cluster. If not specified, the shared cluster configuration is used.
--workload-labels string Comma-separated list of labels (key=value) of the workload to get the effective firewall rules for (for example, 'app=my-app,role=frontend').
--workload-name string Name of the workload to get the effective firewall rules for, in the 'kind/name' format (for example, 'pod/my-pod', 'deployment/my-deploy').
--zone string Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.
GDCLOUD-WEITE FLAGS
Diese Flags sind für alle Befehle verfügbar: --configuration, --format, --help, --project, --quiet.
Weitere Informationen finden Sie auf der Seite Übersicht über die Referenz zur gdcloud CLI.