配置calicoctl环境变量

更新calico文档, calicoctl使用前应配置kubeconfig及datastore类型
pull/397/head
Bin Liang 2020-04-26 16:34:14 +08:00 committed by GitHub
parent 3693a38ad7
commit c76bfd2f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ wget https://github.com/projectcalico/calicoctl/releases/download/v2.0.0/calico
mv calicoctl /usr/loca/bin && chmod +x /usr/local/bin/calicoctl
export CALICO_DATASTORE_TYPE=kubernetes
export CALICO_KUBECONFIG=~/.kube/config
calicoctl get ippool
calicoctl get node