Skip to content
aperture

GitHub Action

Bizfly Kubernetes

v1.0.0 Latest version

Bizfly Kubernetes

aperture

Bizfly Kubernetes

Use Bizfly Kubernetes in GitHub Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Bizfly Kubernetes

uses: ltv/bizfly-kube@v1.0.0

Learn more about this action in ltv/bizfly-kube

Choose a version

Bizfly Kubernetes GitHub Action

Fetches the config for your Bizfly Kubernetes Cluster, then installs and configures kubectl, exposing it to path for future use!

GitHub Release

For help updating, view the change logs.

Runs on

Type Systems Note
GitHub Runners ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15, windows-2016, windows-2019 All available GitHub hosted runners.
Self-Hosted Runners linux-amd64, linux-arm64, linux-s390x, macOS-x64, windows-x64 Not tested, but in theory should work as long as kubectl is available for your system.

Inputs

Name Requirement Description
credentialId Required A Bizfly Application credential id, create here.
credentialSecret Required A Bizfly Application credential secret, create 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.
version Optional The kubectl version to use. Remember to omit "v" prefix, for example: 1.21.3. Defaults to 1.21.3. See example below.
namespace Optional The Kubernetes namespace to operate under. Defaults to default.

Example usage

Simple, minimal usage

- name: Set up kubectl
  uses: ltv/bizfly-kube@v1
  with:
    credentialId: ${{ secrets.BIZFLY_CREDENTIAL_ID }}
    credentialSecret: ${{ secrets.BIZFLY_CREDENTIAL_SECRET }}
    clusterName: my-fabulous-cluster

- name: Get nodes
  run: kubectl get nodes

This will setup kubectl configured with your Bizfly Kubernetes cluster. After that you're free to use kubectl as you wish!

Specifying a specific kubectl version

- name: Set up kubectl
  uses: ltv/bizfly-kube@v1
  with:
    credentialId: ${{ secrets.BIZFLY_CREDENTIAL_ID }}
    credentialSecret: ${{ secrets.BIZFLY_CREDENTIAL_SECRET }}
    clusterName: my-fabulous-cluster
    version: '1.17.4'

- name: Get nodes
  run: kubectl get nodes