<code>context</code>：</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ kubectl config get-contexts
CURRENT   NAME       CLUSTER    AUTHINFO       NAMESPACE
*         cluster1   cluster1   user@foo.com   default
          cluster2   cluster2   user@foo.com   default
</code></pre></li><li><p>将配置文件中的 <code>context</code> 名称赋值给两个环境变量：</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ export CTX_CLUSTER1=&lt;cluster1 context