Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/danielr1996/kubectl-action
- Owner: danielr1996
- License: mit
- Archived: true
- Created: 2019-12-23T02:47:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-09T11:12:53.000Z (about 3 years ago)
- Last Synced: 2024-08-06T00:43:04.940Z (4 months ago)
- Topics: action, github, kubectl, kubernetes
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 31
- Watchers: 3
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```