IBM Cloud Privatecommand line interface (CLI)参考与实例

xiaoxiao2021-02-28  39

IBM Cloud Privatecommand line interface (CLI)参考

[root@client cli]# bx pr api

API Endpoint: https://192.168.122.42:8443/api

API Version: v1

Skip SSL Validation: true

[root@client cli]#

[root@client cli]# bx prcluster-config mycluster

Configuring kubectl:/root/.bluemix/plugins/icp/clusters/mycluster/kube-config

Property "clusters.mycluster"unset.

Property"users.mycluster-user" unset.

Property"contexts.mycluster-context" unset.

Cluster "mycluster"set.

User "mycluster-user"set.

Context "mycluster-context"created.

Switched to context"mycluster-context".

Cluster mycluster configuredsuccessfully.

Configuring helm: /root/.helm

Helm configured successfully

OK

[root@client cli]#

[root@client cli]# bx prcluster-get mycluster

Retrieving clustermycluster...

OK

Name: mycluster

ID: 00000000000000000000000000000001

State: deployed

MasterURL: https://kubernetes.default

Masters: 1

Workers: 0

Proxies: 1

[root@client cli]#

[root@client cli]# bx prclusters

OK

Name ID State Masters Workers Proxies

mycluster 00000000000000000000000000000001 deployed 1 0 1

[root@client cli]#

[root@client cli]# bx prmasters mycluster

ID Private IP Machine Type State

mycluster-00000000-m1 192.168.122.42 - deployed

[root@client cli]#

[root@client cli]# bx prtokens

Access token: Bearera85ba234199283ff93c4fe3bf57aa722081b71bf2679f4f93a448e0fbb952b37855b243ec9975877127bb168dd21a2f194ebd718781d475e444b8e98bbba242d32d0ca204263a5230dcde760e7d971a430605b528835b64699cc5bef3075acae7e829f0f05139ffbc71c79cd01c62a081d61647eb027315e15d10cb5225a214473c913deb32e8779c10382853413b21f1c04e1f40f5328505dc9b1cdeb925ba5bec1cb15d55ffb6ab9edcbebc8aa650a733f19548bd70c68c376c7008dc0009cf88a05c75e3c3b6c027b8d60087cbe3b33dff9707de892527ffdca052145b324089c576079fde61a9dd31f4b2cdd5c636e94e75377bb9cd7abf341010f31fc45ccf38897057dc817a1fd6520e79370e07a418ed7053a14ba795467191d0ee1e4b5faf85c6d327649cd2fc44d8110312bf52ffd025dbbbdf85bd7d0982fb15e06b47de107d0c3ef4447a82f94ee791d9f3bf9aa2ba83fce8cc399128cf9e05c134532054d240122b3be8852075817bab6ced2526d0c9d4c79364334a01380404451d7e5024853a7a613b9f70078a1c5e0c2350b565500a8a414085d37f0c3123d66b3f175398f51d890d96f6b808b91ca8d621a4fd069ae954c6afd9d333c9d377df5dccf2624e1ab2df1fc94d7c9c8cf79633d3fd6d765a588f29f22534553cc9f3a1254bca69a03407df975e8dd240355b35434f7b56bfff3ea16534dc0f0cb

ID token: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoiMjAxdmVsYm9yNHBleW1wNXN4eHQiLCJyZWFsbU5hbWUiOiJjdXN0b21SZWFsbSIsInVuaXF1ZVNlY3VyaXR5TmFtZSI6ImFkbWluIiwiaXNzIjoiaHR0cHM6Ly9teWNsdXN0ZXIuaWNwOjk0NDMvb2lkYy9lbmRwb2ludC9PUCIsImF1ZCI6ImE2ZGFlYmIzNjUyN2JjYzQxNWY2YzRmMDY1MTBjOTNiIiwiZXhwIjoxNTMwNTkwNDkxLCJpYXQiOjE1MzA1NjE2OTEsInN1YiI6ImFkbWluIiwidGVhbVJvbGVNYXBwaW5ncyI6W119.c5a4pRa26QWGalsdesf2Sd57gmUGP8l0IJ_E-obfapy8JtK5OsQ2IgOzghQaClv-9jiGwRsLes0H5J_f_otLqyw1XEMuu9YR-LXJYvLDAkKkT8_IL710kQsgE0IdZvWGpiUpsZOJ8ttcibsq9JoqOz3f1jR2FNEKrJsh1zHCs7wkjoeyuySE8sT-MDmZ8vW3k6sttkFZysn7c3n2Jt5Xn0_URQwN5RXxkPkGQoo84IHI8DQzj2UQ18GPNSyVRtCbxyMMEmaGj9h7PaN3nivQAF1R90gs-Z4T8mYotG2dHFooK5t-C7Hq4KsVzTKUQXdwdeZe-WNbguK1Jyp761BINQ

[root@client cli]#

转载请注明原文地址: https://www.6miu.com/read-2250210.html

最新回复(0)