A GitHub Action for Kubernetes IN Docker - local clusters for testing Kubernetes using kubernetes-sigs/kind.
Create a workflow YAML file in your .github/workflows
directory. An example workflow is available below.
For more information, reference the GitHub Help Documentation for Creating a workflow file.
For more information on inputs, see the API Documentation
version
: The kind version to use (default:v0.6.1
)config
: The path to the kind config filenode_image
: The Docker image for the cluster nodescluster_name
: The name of the cluster to create (default:chart-testing
)wait
: The duration to wait for the control plane to become ready (default:60s
)log_level
: The log level for kindinstall_local_path_provisioner
: If true, Rancher's local-path provisioner is installed which supports dynamic volume provisioning on multi-node clusters. The newly created local-path StorageClass is made the default.
Create a workflow (eg: .github/workflows/create-cluster.yml
):
name: Create Cluster
on: pull_request
jobs:
create-cluster:
runs-on: ubuntu-latest
steps:
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
install_local_path_provisioner: true
This uses @helm/kind-action GitHub Action to spin up a kind Kubernetes cluster on every Pull Request. See @helm/chart-testing-action for a more practical example.
Participation in the Helm community is governed by the Code of Conduct.