Skip to content
anchor

GitHub Action

Setup Minikube Kubernetes Cluster

v2.12.0 Latest version

Setup Minikube Kubernetes Cluster

anchor

Setup Minikube Kubernetes Cluster

This action sets up a single node Kubernetes Cluster in your environment using Minikube

Installation

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

              

- name: Setup Minikube Kubernetes Cluster

uses: manusa/[email protected]

Learn more about this action in manusa/actions-setup-minikube

Choose a version

Setup Minikube GitHub Action

Run action (E2E tests)

Set up your GitHub Actions workflow with a specific version of Minikube and Kubernetes.

Currently only Linux Ubuntu 18.04, 20.04, or 22.04 CI environment is supported.

Usage

Basic

name: Example workflow

on: [push]

jobs:
  example:
    name: Example Minikube-Kubernetes Cluster interaction
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Setup Minikube
        uses: manusa/[email protected]
        with:
          minikube version: 'v1.34.0'
          kubernetes version: 'v1.31.1'
          github token: ${{ secrets.GITHUB_TOKEN }}
      - name: Interact with the cluster
        run: kubectl get nodes

Required input parameters

Parameter Description
minikube version Minikube version to deploy
kubernetes version Kubernetes version to deploy

Optional input parameters

Parameter Description
github token GITHUB_TOKEN secret value to access GitHub REST API with an unlimited number of requests (optional but recommended)
driver Minikube driver to use. This action supports none (default if not specified) or docker
container runtime The container runtime to be used (valid options: docker, cri-o, containerd)
start args Additional arguments to append to minikube start command

License

The scripts and documentation in this project are released under the Apache 2.0 license.