This Action for Amazon Elastic Container Service for Kubernetes (Amazon EKS) that saves a kubectl config with AWS credentials and warps the kubectl command.
A partial example workflow applying a configuration and verifying the deployment status.
workflow "Build and Deploy" {
on = "push"
resolves = ["Verify EKS Deployment"]
}
action "Deploy to EKS" {
needs = ["Build and Push Containers"]
uses = "actions/aws/kubectl@master"
args = ["kubectl apply -f config.yml"]
secrets = ["KUBE_CONFIG_DATA"]
}
action "Verify EKS Deployment" {
needs = "Deploy to EKS"
uses = "actions/aws/kubectl@master"
args = ["rollout status deployment/aws-example-octodex"]
secrets = ["KUBE_CONFIG_DATA"]
}
KUBE_CONFIG_DATA
– Required A base64-encodedkubectl config
file with credentials for Kubernetes to access the cluster. Example encoding from terminal :cat $HOME/.kube/config | base64
. Note Do not usekubectl config view
as this will hide thecertificate-authority-data
.
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.
Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.