https://github.com/codingnagger/minikube-wait-action
Waits for Github Actions started Kubernetes pods to be in a healthy state.
https://github.com/codingnagger/minikube-wait-action
Last synced: 6 months ago
JSON representation
Waits for Github Actions started Kubernetes pods to be in a healthy state.
- Host: GitHub
- URL: https://github.com/codingnagger/minikube-wait-action
- Owner: CodingNagger
- License: gpl-3.0
- Created: 2019-11-05T15:47:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-18T19:17:04.000Z (over 3 years ago)
- Last Synced: 2024-12-16T04:07:46.978Z (about 1 year ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/marketplace/actions/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
```yaml
name: "Minikube workflow"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Minikube
id: minikube
uses: CodingNagger/minikube-setup-action@v1.0.2
- 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/minikube-wait-action@v1.0.1
- name: Check pods
run: |
kubectl get pods
```