- Notifications
You must be signed in to change notification settings - Fork 5
set
Terskikh Maria edited this page Nov 22, 2017 · 11 revisions
The chkit set command changes one of parameters in Deployment.
To execute chkit set, you need to specify:
| Flag | Parameter | Description |
|---|---|---|
| KIND | object type: Deployment | |
| DEPLOY | Deployment name | |
| CONTAINER | container name. Note: This field is necessary only for setting image | |
| PARAMETER | Parameter to be changed in Deployment. Note: parameters available for changing: image(application image); replicas (number of application replicas); | |
| VALUE | значение для PARAMETER |
Optional parameters:
| Flag | Parameter | Description |
|---|---|---|
--help or -h | print usage info | |
--namespace or -n | NAMESPACE | Namespace name. Note: the default value for NAMESPACE = default |
--debug or -d | print system info on command execution |
$ chkit set KIND DEPLOY [CONTAINER] PARAMETER=VALUE [flags] Set nginx image for an already running myapp application:
$ chkit set deploy myapp myapp image=nginx http://146.185.135.181:3333/namespaces/default/container/myapp set... OK Set replicas for an already running myapp application:
$ chkit set deploy myapp replicas=3 http://146.185.135.181:3333/namespaces/default/container/myapp set... OK © Exon Lab, 2017. Все права защищены