k8s

Usage: oredge k8s ACTION [OPTIONS]

ACTION:
    create
    list
    show
    modify
    delete

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Create kubernetes cluster

Usage: oredge k8s create [name] [OPTIONS]

OPTIONS:
    --name string                      name.
    --host string                      host.
    --port integer                     port.
    --ssl-verify bool                  ssl verify, true or false.
    --token string                     token.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge k8s create --name k8s --host 192.168.84.132 --port 6443 --token "eyJhbGciOiJSUzI1NiIsImtpZCI6ImNlWnlKb29XM2dlQ05iSGNFcU1aTGVFYV91SEg5ZXhRaWFjeWFodU5HcHcifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im9wZW5yZXN0eS1lZGdlLXNlcnZpY2VhY2NvdW50LXRva2VuLWhyc3o2Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6Im9wZW5yZXN0eS1lZGdlLXNlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiNjRjOWQwMDUtNTBmNS00MmFhLWFjZjAtYWI2MTEzYTg1NDgxIiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OmRlZmF1bHQ6b3BlbnJlc3R5LWVkZ2Utc2VydmljZWFjY291bnQifQ.b5I319J1WJZEbwsr-AWmCnPUPy6sgRpo9Vr1-wI3B5XpjQ_6B50Xb8tpATxK2M_ODN8WwVDX4-KmmLdsbOddKCCtGjGD8fDBXey_ktDLrjUlqFXDBweY0haHpHNBJV_SwP-JMl1253WxAuPD_ti-jp_WjO2dzxvgZExqgpdTF-Rfj71eS3V3-QsKIsRlPcVQxMFZaHHWRyEKqIJAw0MzEIM6dtxf9-jPGQcR6VJve_-Om0BUxuku5cx63F39xM8e_LGnmjUoCIkXfbdi_V4KvU0OD19M4FgyHgIO2XqfvmaMjXHlpOC93hv0zxSnuG4GnK_n47fLG25wl5PzW5skxQ"
ID: 1

List kubernetes clusters

Usage: oredge k8s list [OPTIONS]

OPTIONS:
    --page integer                     page, 1(default).
    --page-size integer                page size, 20(default).

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge k8s list
ID    NAME    HOST              PORT    SSL VERIFY    STATUS          CREATE TIME            MODIFY TIME
1     1       192.168.84.132    6443    true          DISCONNECTED    2021-05-21 04:49:19    2021-05-21 04:51:15

Get kubernetes cluster’s details

Usage: oredge k8s show [id] [OPTIONS]

OPTIONS:
    --id integer                       id.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge k8s show 5
ID         : 5
NAME       : default
HOST       : 10.0.0.25
PORT       : 443
SSL VERIFY : 0
CREATE TIME: 2021-06-30 00:05:33
MODIFY TIME: 2021-07-15 06:38:22

Modify kubernetes cluster

Usage: oredge k8s modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --name integer                     name.
    --host string                      host.
    --port integer                     port.
    --ssl-verify bool                  ssl verify.
    --token string                     token.


GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge k8s modify 1 --ssl-verify false
OK

Delete kubernetes cluster

Usage: oredge k8s delete [id] [OPTIONS]

OPTIONS:
    --id integer                       id.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge k8s delete 21
OK