You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
DigitalOcean Kubernetes
v1.2.0
Fetches the latest kubeconfig for your DigitalOcean Kubernetes Cluster using DigitalOcean API v2, then configures kubectl and exposes to path for future use.
Required A DigitalOcean Personal Access Token to use with doctl. Must be tied to the same account as the Kubernetes Cluster you are trying to operate on. For instructions, see here
Required The name of the cluster you are trying to operate on. This was chosen during the "Choose a name" step when originally creating the cluster.
Optional Amount of time, in seconds, that the generated DigitalOcean Token has to live. Defaults to 600.
- name: Set up kubectl
uses: matootie/dokube@v1.2.0
with:
personalAccessToken: ${{ secrets.DIGITALOCEAN_TOKEN }}
clusterName: my-fabulous-cluster
expirationTime: 300
- name: Get nodes
run: kubectl get nodes