Skip to content
watch

GitHub Action

Kubernetes Pods Health Wait

v1.1.0 Latest version

Kubernetes Pods Health Wait

watch

Kubernetes Pods Health Wait

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

Installation

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

              

- name: Kubernetes Pods Health Wait

uses: CodingNagger/[email protected]

Learn more about this action in CodingNagger/minikube-wait-action

Choose a version

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