Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Eyevinn/action-eks-kubectl
GitHub Action for interacting with EKS vended kubectl (k8s)
https://github.com/Eyevinn/action-eks-kubectl
eks github-action k8s kubernetes
Last synced: about 2 months ago
JSON representation
GitHub Action for interacting with EKS vended kubectl (k8s)
- Host: GitHub
- URL: https://github.com/Eyevinn/action-eks-kubectl
- Owner: Eyevinn
- License: mit
- Created: 2020-01-20T17:30:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-21T07:39:12.000Z (over 2 years ago)
- Last Synced: 2024-10-20T04:05:23.481Z (3 months ago)
- Topics: eks, github-action, k8s, kubernetes
- Language: Dockerfile
- Homepage:
- Size: 9.77 KB
- Stars: 5
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GitHub Action for interacting with EKS-vended Kubernetes cluster.
## Usage
To use this action put this step into your workflow:
```
- uses: Eyevinn/action-eks-kubectl@master
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGION: eu-north-1
CLUSTER: prod
with:
args: get pods
```## Environment Variables
These variables are required to authorize with the EKS cluster. The AWS IAM user that is associated with the key must have permissions to access the cluster. Read more about how here: https://www.agilepartner.net/en/adding-users-to-your-eks-cluster/
| VARIABLE | DESCRIPTION |
| --- | --- |
| AWS_ACCESS_KEY_ID | AWS Access Key ID |
| AWS_SECRET_ACCESS_KEY | AWS Secret Access Key |
| REGION | AWS Region of the Cluster |
| CLUSTER | Name of the Cluster |## Example
Updating the container image when a release is published
```
name: Deploy to production Kubernetes cluster
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Deploy new version
uses: Eyevinn/action-eks-kubectl@master
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGION: eu-north-1
CLUSTER: prod
with:
args: set image --record deployment/my-app container=590877988961.dkr.ecr.eu-north-1.amazonaws.com/my-app:${{ steps.get_version.outputs.VERSION }}
```## LICENSE
[MIT License](https://github.com/Eyevinn/action-eks-kubectl/blob/master/LICENSE)
## About Eyevinn Technology
Eyevinn Technology is an independent consultant firm specialized in video and streaming. Independent in a way that we are not commercially tied to any platform or technology vendor.
At Eyevinn, every software developer consultant has a dedicated budget reserved for open source development and contribution to the open source community. This give us room for innovation, team building and personal competence development. And also gives us as a company a way to contribute back to the open source community.
Want to know more about Eyevinn and how it is to work here. Contact us at [email protected]!