calicoctl apply
Read the calicoctl command line interface user reference for a full list of calicoctl commands.
note
Run calicoctl apply --help
to display the following help menu for the command.
Apply two policy resources based on the JSON passed into stdin.
Results indicate success.
-f --filename=<FILENAME> Filename to use to apply the resource. If set to
"-" loads from stdin.
Only applicable to NetworkPolicy and WorkloadEndpoint.
Uses the default namespace if not specified.
See also
- Installing calicoctl
- for details on all valid resources, including file format and schema
- NetworkPolicy for details on the Calico selector-based policy model