Skip to content
AlibabacloudLogoGithub

Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK)

Actions
Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK)
v1.0.4
Latest
Verified creator
Star (24)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK)

Use this GitHub Action to set context for Kubernetes cluster of Alibaba Cloud Kubernetes (ACK) or set context for cluster of Alibaba Distributed Cloud Container Platform for Kubernetes (ACK One).

Set the KUBECONFIG environment variable by cluster id for K8s cluster managed by ACK or for ACK One hub cluster.

- uses: aliyun/ack-set-context@v1
  with:
    access-key-id: '<access key id>'
    access-key-secret: '<access key secret>'
    ## optional, supports 'ACK' or 'One', default is 'ACK'
    cluster-type: '<cluster type>'
    ## if cluster-type is 'One', please filling up ACK One Fleet cluster id
    cluster-id: '<cluster id>'

Refer to the action metadata file for details about all the inputs: action.yml

Prerequisite

  1. Get the access-key-id and access-key-secret of Alibaba Cloud and add them as secrets in the GitHub repository.
  2. Please keep permissions of AKSK to be minimized. If cluster-type is 'One', you can refer to Grant permissions to a RAM user to configure AliyunAdcpReadOnlyAccess RAM permissions and RBAC role including admin or dev.

Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK)
v1.0.4
Latest

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Setting context for Kubernetes cluster of Alibaba Cloud Kubernetes Service (ACK) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.