-
Notifications
You must be signed in to change notification settings - Fork 5
Containerum CLI commands
Chkit is a terminal client for containerum.io powerful API
-n, --namespace string
-p, --password string account password
-q, --quiet quiet mode
-u, --username string account username
- create : Create deployment or service
- delete : Delete resource
- doc : Print full chkit help
- get : Get resource data
- help [command] : Help about any command
- login : Login to system
- logs : View pod logs
- rename : Rename resource
- replace : Replace deployment or service
- run : Run a solution
- set : Set configuration variables
- update : update chkit client
- version : Print version
Print version
update chkit client
chkit update [from github|dir ] [--debug]
--debug print debug information
- from :
- dir : update from local directory
- github : update from github releases
update from github releases
update from local directory
chkit update from dir [--debug]
Set configuration variables
- access : set namespace access
- containerum-api :
- default-namespace : set default namespace
- image : set container image in specific deployment
- replicas : set deployment replicas
re, rep, repl, replica
Sets deployment replicas
chkit set replicas [-n namespace_label] [-d depl_label] [N_replicas]
-d, --deployment string deployment name -r, --replicas uint replicas, 1..15 (default 1)
imgs, img, im, images
Sets container image in specific deployment. If deployment contains only one container, then uses that container by default.
-c, --container string container label -d, --deployment string deployment label -f, --force suppress confirmation -i, --image string new image
def-ns, default-ns, defns, def-namespace
set default namespace
api, current-api, api-addr, API
--allow-self-signed-certs
namespace-access, ns-access
set namespace access
chkit set access $USERNAME $ACCESS_LEVEL [--namespace $ID]
-f, --force suppress confirmation
Run a solution
-h, --help Print help for chkit
- solution : run solution from public template
sol, solutions, sols, solu, so
run solution from public template
chkit run solution [$PUBLIC_SOLUTION] [--env=KEY1:VALUE1,KEY2:VALUE2] [--file $FILENAME] [--force]
--branch string solution git repo branch, optional (default "master")
--env string solution environment variables, optional
--file string file with solution data, .yaml or .json, stdin if '-', optional
-f, --force create solution without confirmation, optional --name string solution name, optional, autogenerated if void
Replace deployment or service
- configmap :
- deployment : replace deployment
- ingress : patch ingress with new attributes
- service : replace service
srv, services, svc, serv
Replaces service. Has an one-line mode, suitable for integration with other tools, and an interactive wizard mode
--deployment string deployment name, optional
--domain string service domain, optional
--file string create service from file
-f, --force suppress confirmation --port int service external port, optional --port-name string service port name --protocol string service port protocol, optional (default "TCP") --target-port int service target port, optional (default 80)
ingr, ingresses, ing
Replaces ingress with new, use --force flag to write one-liner command, omitted attributes are inherited from previous ingress.
chkit replace ingress $INGRESS [--force] [--service $SERVICE] [--port 80] [--tls-secret letsencrypt]
-f, --force replace ingress without confirmation --host string ingress host, optional --port int ingress endpoint port, optional (default 8080) --service string ingress endpoin service, optional --tls-secret string ingress tls-secret, use 'letsencrypt' for automatic HTTPS, '-' to use HTTP, optional
depl, deployments, deploy
Replaces deployment. Has an one-line mode, suitable for integration with other tools, and an interactive wizard mode
--container-name string container name, equal to image name by default
--cpu uint container CPU limit in mCPU, optional (default 200)
--env stringArray container env variable in KEY0:VALUE0 KEY1:VALUE1 format
--file string create deployment from file
-f, --force suppress confirmation --image string container image, optional --memory uint container memory limit im Mb, optional (default 256) --replicas int replicas, optional (default 1)
cm, confmap, conf-map, comap
--file string file with configmap data, .json, .yaml, .yml
--file-item strings configmap file item: $KEY:$FILENAME (default [])
--force suppress confirmation
--item strings configmap item: $KEY:$VALUE (default [])
Rename resource
- namespace :
ns, namespaces
chkit rename ns $ID $NEW_NAME
log
view pod logs. Aliases: log
logs pod_label [container] [--follow] [--prev] [--tail n] [--quiet]
-f, --follow follow pod logs -t, --tail uint print last log lines (default 100)
Login to system
--default-namespace string use as default namespace, if '-', then use first one
Help provides help for any command in the application. Simply type chkit help [path to command] for full details.
Get resource data
- access : get namespace access
- configmap :
- containerum-api :
- default-namespace : print default
- deployment : shows deployment data
- ingress : show ingress data
- namespace : shows namespace data or namespace list
- pod : shows pod info
- profile : show profile info
- service : shows service info
- solution : get solutions
sol, solutions, sols, solu, so
Show solution list, available for run. To search solution by name add arg
chkit get solution [name]
srv, services, svc, serv
chkit get service service_label [-o yaml/json] [-f output_file]
Shows service info
-f, --file string output file (default "-") -o, --output string output format [yaml/json]
me, user
Shows profile info
chkit get profile
po, pods
shows pod info. Aliases: po, pods
chkit get pod pod_label [-o yaml/json] [-f output_file]
-f, --file string output file (default "-") -o, --output string output format (json/yaml)
ns, namespaces
shows namespace data or namespace list. Aliases: ns, namespaces
chkit get $ID... [-o yaml/json] [-f output_file]
-f, --file string output file -o, --output string output format (json/yaml)
ingr, ingresses, ing
Shows ingress data
chkit get ingress ingress_names... [-n namespace_label] [-o yaml/json]
-f, --file string output file -o, --output string output format (yaml/json)
depl, deployments, deploy
Shows deployment data
namespace deployment_names... [-n namespace_label]
-f, --file string output file -o, --output string output format (yaml/json)
default-ns, def-ns
print default
api, current-api, api-addr, API
cm, confmap, conf-map, comap
--file string output file (default "-")
-o, --output string output format yaml/json
namespace-access, ns-access
get namespace access
chkit get ns-access $ID
Print full chkit help
--command string print docs for command and its subcommands, example 'chkit doc --command "create depl"'
-h, --help help for doc --md generate markdown docs --output string output file, STDOUT by default
Delete resource
- configmap : delete configmap
- deployment : delete deployment in specific namespace
- ingress : delete ingress
- namespace : delete namespace
- pod : delete pod in specific namespace
- service : delete service in specific namespace
srv, services, svc, serv
Deletes service in namespace
chkit delete service service_label [-n namespace]
-f, --force force delete without confirmation
po, pods
deletes pods. Aliases: po, pods
chkit delete pod pod_name [-n namespace]
-f, --force delete pod without confirmation
ns, namespaces
delete namespace deletes namespace with name, provided by first arg. Aliases: ns, namespaces
chkit delete namespace $ID
-f, --force force delete without confirmation
ingr, ingresses, ing
Deletes ingress
chkit delete ingress $INGRESS [-n $NAMESPACE] [--force]
-f, --force delete ingress without confirmation
depl, deployments, deploy
Deletes deployment in specific namespace. Use --force flag to suppress confirmation
-f, --force delete without confirmation
cm, confmap, conf-map, comap
delete configmap
-f, --force suppress confirmation
Create deployment or service
- configmap :
- deployment : create deployment
- ingress : create ingress
- service : create service
srv, services, svc, serv
create service for provided pod in provided namespace
--deploy string service deployment, required
-f, --file string file with service data (default "-") --force create service without confirmation --name string service name, optional (default "reef-morin") --port int service port, optional --port-name string service port name, optional (default "rammstein-cinnamon") --proto string service protocol, optional (default "TCP") --target-port int service target port, optional (default 80)
ingr, ingresses, ing
Creates ingress. TLS with LetsEncrypt and custom cert is available
chkit create ingress [--force] [--filename ingress.json] [-n prettyNamespace]
-f, --force create ingress without confirmation --host string ingress host (example: prettyblog.io), required --path string path to endpoint (example: /content/pages), optional --port int ingress endpoint port (example: 80, 443), optional (default 8080) --service string ingress endpoint service, required --tls-cert string TLS cert file, optional --tls-secret string TLS secret string, optional
depl, deployments, deploy
Creates new deployment. Has an one-line mode, suitable for integration with other tools, and an interactive wizard mod
--configmap strings container configmap, CONTAINER_NAME@CONFIGMAP_NAME@MOUNTPATH in case of multiple containers or
CONFIGMAP_NAME@MOUNTPATH or CONFIGMAP_NAME in case of one container.
If MOUNTPATH is omitted, then use /etc/CONFIGMAP_NAME as mountpath (default [])
--cpu strings container memory limit, mCPU,
CONTAINER_NAME@CPU in case of multiple containers or CPU in case of one container (default [])
--env strings container environment variable,
CONTAINER_NAME@KEY:VALUE in case of multiple containers or KEY:VALUE in case of one container (default [])
--file string file with configmap data, .json, .yaml, .yml, optional
-f, --force suppress confirmation, optional --image strings container image, CONTAINER_NAME@IMAGE in case of multiple containers or IMAGE in case of one container (default []) --memory strings container memory limit, Mb, CONTAINER_NAME@MEMORY in case of multiple containers or MEMORY in case of one container (default []) --name string deployment name, optional --replicas uint deployment replicas, optional --volume strings container volume, CONTAINER_NAME@VOLUME_NAME@MOUNTPATH in case of multiple containers or VOLUME_NAME@MOUNTPATH or VOLUME_NAME in case of one container. If MOUNTPATH is omitted, then use /mnt/VOLUME_NAME as mountpath (default [])
cm, confmap, conf-map, comap
--file string file with configmap data
-f, --force suppress confirmation --item-file strings configmap file, KEY:FILE_PATH or FILE_PATH --item-string strings configmap item, KEY:VALUE string pair --name string configmap name (default "erigone-galvanono")
© Exon Lab, 2017. Все права защищены