Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

DigitalOcean Kubernetes

Actions
Use DigitalOcean Kubernetes in GitHub Actions
v1.3.1
Star (53)

DigitalOcean Kubernetes GitHub Action

Fetches the latest kubeconfig for your DigitalOcean Kubernetes Cluster using DigitalOcean API v2, then configures kubectl and exposes to path for future use.

Inputs

personalAccessToken

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

clusterName

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. Example cluster name field

expirationTime

Optional Amount of time, in seconds, that the generated DigitalOcean Token has to live. Defaults to 600.

version

Optional The kubectl version to use. Remember to omit "v" prefix, for example: 1.16.0. Defaults to 1.16.0.

Example usage

- name: Set up kubectl
  uses: matootie/dokube@v1.3.1
  with:
    personalAccessToken: ${{ secrets.DIGITALOCEAN_TOKEN }}
    clusterName: my-fabulous-cluster
    expirationTime: "300"
    version: "1.17.4"

- name: Get nodes
  run: kubectl get nodes

DigitalOcean Kubernetes 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

Use DigitalOcean Kubernetes in GitHub Actions
v1.3.1

DigitalOcean Kubernetes 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.