How to Set up

Navigation:  Command Line API >

How to Set up

Previous pageReturn to chapter overviewNext page

To set up command line interface in KuberDock perform the following steps:

 

1. According to your OS architecture choose the latest version of proper kuberdock-cli rpm-package from our repository and  install it:

 

СentOS 6: http://repo.cloudlinux.com/kuberdock-client/6/

CentOS 7: http://repo.cloudlinux.com/kuberdock-client/7/

 

For example, for CentOS 7 (x86_64):

 

yum install http://repo.cloudlinux.com/kuberdock-client/7/x86_64/kuberdock-cli-1.0-4.el7.cloudlinux.x86_64.rpm

 

2. Run the command to create config to home directory (Note. This step should be missed by root access users):

 

kcli kuberdock start start_pod

 

3. Get a token for your account in KuberDock using the command:

 

curl -X GET -k --user <username>:<password> https://kuberdock.domain/api/auth/token

 

You will get the answer with your token:

 

{

"status": "OK",

"Token":

admin|1469540670|cc8b11e2e801e8357cb7655ce4fcc6e611698396

}

 

Use your token on the next step.

 

4. Edit and save config file .kubecli.conf (~/.kubecli.conf), enter KuberDock server address and your KuberDock account token from step 3:

 

[global]

# kuberdock server URL

url = https://domain.name

 

[defaults]

# default registry to pull docker images from

registry = registry.hub.docker.com

 

# token to connect to kuberdock

token = admin|1469540670|cc8b11e2e801e8357cb7655ce4fcc6e611698396