Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danielr1996/kubectl-action

Github Action for kubectl
https://github.com/danielr1996/kubectl-action

action github kubectl kubernetes

Last synced: 4 months ago
JSON representation

Github Action for kubectl

Awesome Lists containing this project

README

        

# Kubectl Action

> I archived this repository because I think there are now more appropriate options like helm and argocd

This action allows you to deploy to a kubernetes cluster.

Alternatives:

- [steebchen/kubectl](https://github.com/marketplace/actions/kubernetes-cli-kubectl)

## Inputs

### `kubeconfig`

Base64 encoded `.kube/config` file, to generate use:
```shell script
cat .kube/config | base64
```

## Usage
## Kustomize a Deployment
```yaml
- name: Kustomize
uses: danielr1996/[email protected]
with:
args: kustomize deployment/overlays/replace > template.yaml
```

## Deploy a Deployment
```yaml
- uses: danielr1996/[email protected]
name: Deploy
with:
kubeconfig: ${{ secrets.KUBE_CONFIG }}
args: apply -f deployment.yaml
```