Skip to content

Configuring Containerum CLI

Terskikh Maria edited this page Sep 22, 2017 · 4 revisions

To configure Containerum CLI use the config command.

Currently the user can select the Namespace to work in.

User Namespace is initially set as default.

If you have several Namespaces, you can clearly indicate the one you need by selecting it among the available ones.

$ chkit config --set-default-namespace NAMESPACE

Example

Accessing the list of all user Namespaces:

$ chkit get ns 
+-------------+----------+-------------+----------+-------------+-----+ 
| NAME        | HARD CPU | HARD MEMORY | USED CPU | USED MEMORY | AGE | 
+-------------+----------+-------------+----------+-------------+-----+ 
| default     | 2        | 3Gi         | 300m     | 300Mi       | 1M  | 
| myns        | 2        | 3Gi         | 140m     | 30Mi        | 1M  | 
+-------------+----------+-------------+----------+-------------+-----+

selecting myns:

$ chkit config —set-default-namespace myns 

Success changed! 
namespace: myns