Warning:
You're not viewing the latest copy of this page.
calicoctl create
This sections describes the calicoctl create
command.
Read the calicoctl command line interface user reference for a full list of calicoctl commands.
Note: The available actions for a specific resource type may be limited based on the datastore used for Calico (etcdv3 / Kubernetes API). Please refer to the Resources section for details about each resource type.
Displaying the help text for ‘calicoctl create’ command
Run calicoctl create --help
to display the following help menu for the
command.
Examples
-
Create a set of resources (of mixed type) using the data in resources.yaml.
calicoctl create -f ./resources.yaml
Results indicate that 8 resources were successfully created.
-
Create the same set of resources reading from stdin.
cat resources.yaml | calicoctl apply -f -
Results indicate failure because the first resource (in this case a Profile) already exists.
Options
General options
See also
- Resources for details on all valid resources, including file format and schema
- NetworkPolicy for details on the Calico selector-based policy model
- calicoctl configuration for details on configuring
calicoctl
to access the Calico datastore.