The smarthelios/eks-kubectl
comes installed with aws-iam-authenticator
, an AWS-vendored copy of kubectl
and helm
.
aws eks --region eu-west-1 update-kubeconfig --name <cluster-name> --kubeconfig <destination>
# export KUBECONFIG=<above-destination> in your ~/.bashrc first
kubectl config view --flatten > kubeconfigdata
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.
jet encrypt k8s-env k8s-env.encrypted
rm kubeconfigdata k8s-env
# codeship-services.yml
kubectl:
build:
image: smarthelios/helm:prd
dockerfile: Dockerfile
encrypted_env_file: k8s-env.encrypted
# codeship-steps.yml
- name: check response to kubectl config
service: helm
command: helm list --all
This container is inspired by and based on the codeship kubectl container