Retrieve TKE cluster credential and set it to $HOME/.kube/config
.
Required Tencent Cloud secret id. Should be referred to a encrypted environment variable.
Required Tencent Cloud secret key. Should be referred to a encrypted environment variable.
Required TKE bucket region.
Required TKE cluster id.
uses: TencentCloud/tke-cluster-credential-action@v1
with:
secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }}
secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }}
tke_region: ${{ secrets.TKE_REGION }}
cluster_id: ${{ secrets.TKE_CLUSTER_ID }}