You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Minikube Github Action
1.3.0
Downloads minikube
and kubectl
binaries, then set up Minikube cluster for Github Actions.
Name | Description | Default |
---|---|---|
minikube-version |
Set minikube version | 1.12.3 |
kubernetes-version |
Set Kubernetes version | 1.18.8 |
profile |
Set minikube profile name | minikube |
network-plugin |
The name of the network plugin (i.e. 'cni') | n/a |
addons |
Comma-separated list of addons (i.e. metrics-server,registry,ingress,dashboard) | default-storageclass, storage-provisioner |
nodes |
Set number of cluster nodes | 1 |
cpus |
Number of CPUs allocated to Kubernetes | 2 |
ip
: Minikube IP
jobs:
minikube:
runs-on: ubuntu-latest
steps:
- name: Start Minikube
id: minikube
uses: hiberbee/github-action-minikube@master
- name: Get Minikube IP
run: echo ${{ steps.minikube.outputs.ip }}
MINIKUBE_PROFILE
- setting to ${{ inputs.profile }}MINIKUBE_HOME
-/home/runner/
MINIKUBE_ACTIVE_DOCKERD
- setting to${{ inputs.profile }}
DOCKER_HOST
- pointing to Minikube IP (e.g. tcp://172.17.0.3:2376)DOCKER_TLS_VERIFY
- 1DOCKER_CERT_PATH
-$MINIKUBE_HOME/certs/
name: Minikube workflow
on: push
jobs:
minikube:
name: Start Kubernetes cluster
runs-on: ubuntu-20.04
steps:
- name: Start Minikube
id: minikube
uses: hiberbee/github-action-minikube@latest
with:
profile: github
- name: Get Minikube status
run: minikube status
- name: Get cluster info
run: kubectl cluster-info
- name: Get Kubernetes pods
run: kubectl get services --all-namespaces
- name: Get Minikube IP
run: echo ${{ steps.minikube.outputs.ip }}
- name: Get Docker containers
run: docker ps
- name: Get Helm releases
uses: hiberbee/github-action-helm@latest
with:
helm-command: list