Skip to content

Interacts with kubernetes clusters calling kubectl commands

Notifications You must be signed in to change notification settings

minio/k8s-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-action

GitHub action for k8s clusters by kubectl commands.

Inputs

kubectl_args

Required the command to execute.

Config

KUBECONFIG_DATA contents of ~/.kube/config file as part for organization or project secrets

Outputs

kubectl_result

Result output of the executed kubectl command.

Example Usage

name: Deploy MinIO

on:
  - push

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Trigger MinIO deployment
        uses: minio/k8s-action@master
        env:
          KUBECONFIG_DATA: ${{ secrets.KUBECONFIG_DATA }}
        with:
          kubectl_args: apply -f statefulset.yaml