Skip to content

Waits for Github Actions started Kubernetes pods to be in a healthy state.

License

Notifications You must be signed in to change notification settings

CodingNagger/minikube-wait-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minikube wait action

This action waits until all your pods a VM-free Kubernetes cluster using Minikube.

Pre-requisites

Your Actions workflow has a kubernetes setup. You may use minikube-setup-action for that.

Inputs

max-retry-attempts

Optional Maximum of times the check can be carried on. Default 10.

retry-delay

Optional Time to wait (in seconds) before attempting the check after a failure. Default 30.

Example usage

name: "Minikube workflow"
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Setup Minikube
      id: minikube
      uses: CodingNagger/[email protected]
    - name: Launch Minikube
      run: eval ${{ steps.minikube.outputs.launcher }}
    - name: Install Nginx pod
      run: kubectl apply -f https://k8s.io/examples/application/deployment.yaml
    - name: Wait for pods
      uses: CodingNagger/[email protected]
    - name: Check pods
      run: |
        kubectl get pods

About

Waits for Github Actions started Kubernetes pods to be in a healthy state.

Resources

License

Stars

Watchers

Forks

Packages

No packages published