eks-kubectl-helm container for CI
7.8K
The smarthelios/eks-kubectl comes installed with aws-iam-authenticator, an AWS-vendored copy of kubectl and helm.
kubectl config view --flatten > kubeconfigdata # add --minify flag to reduce info to current context
docker run --rm -it -v $(pwd):/files codeship/env-var-helper cp kubeconfigdata:/root/.kube/config k8s-env
Check out the codeship/env-var-helper README for more information.
.gitignorejet encrypt k8s-env k8s-env.encrypted
rm kubeconfigdata k8s-env
# codeship-services.yml
kubectl:
build:
image: smarthelios/eks-kubectl
dockerfile: Dockerfile
encrypted_env_file: k8s-env.encrypted
# codeship-steps.yml
- name: check response to kubectl config
service: kubectl
command: kubectl config view
This container is inspired by and based on the codeship kubectl container
Content type
Image
Digest
Size
208 MB
Last updated
about 7 years ago
docker pull smarthelios/eks-kubectl