8000 GitHub - qgxpagamentos/kubectl-set · GitHub
[go: up one dir, main page]

Skip to content
8000

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

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

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Github Action for Kubernetes CLI

Essa Action disponibiliza o comando kubectl para Github Actions.

Uso

.github/workflows/push.yml

on: push
name: deploy
jobs:
  deploy:
    name: deploy to cluster
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Install kubectl
        uses: qgxpagamentos/kubectl-set@v1
        with:
          base64-kube-config: ${{ secrets.KUBE_CONFIG_DATA }}
          kubectl-version: v1.22.5

      - name: Deploy Kubernetes cluster Service/Deployment
        run: |
          kubectl version
          kubectl apply -f deployment/kubernetes

Secrets

KUBE_CONFIG_DATA – requerido: Um arquivo kubeconfig base64-encoded com as credenciais necessárias para o K8s acessar o cluster. Exemplo de como gerar o arquivo base64-encoded:

cat $HOME/.kube/config | base64

Inspiration

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0