Updated on 2025-04-03 GMT+08:00

ccictl rollout restart

Scenario

Restart resources.

The resources will go online again.

ccictl rollout restart RESOURCE

Examples

# Restart all Deployments in the test-namespace namespace.
ccictl rollout restart deployment -n test-namespace

# Restart a Deployment.
ccictl rollout restart deployment/nginx

# Restart the Deployment with the app=nginx label.
ccictl rollout restart deployment --selector=app=nginx

Options

--allow-missing-template-keys     Default: true

If the value is true, the error in the template is ignored when a field or mapping key is missing in the template. This option applies only to the Golang and JSONPath output formats.

-f, --filename strings

List of file names, directories, or file URLs, which are used to identify the resource to be obtained from the server.

-h, --help

Help information for rollout restart

-o, --output string

Output format. The value options include json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, and jsonpath-file.

-R, --recursive

Process the directory used in -f or --filename recursively. This option is useful when you want to manage related manifests organized within the same directory.

-l, --selector string

Selector used for filtering (label query). The value can be =, ==, or !=, for example, -l key1=value1,key2=value2. Matched objects must meet all specified label constraints.

--template string

Template character string or template file path used when -o is set to go-template or go-template-file. The Golang template format is [http://golang.org/pkg/text/template/#pkg-overview].

The following ccictl options can also be used in subcommands:

Parent command options