Skip to content

A ruby image loaded with Helm3, AWS CLI and an env var helper to manage kubeconfig with Codeship

License

Notifications You must be signed in to change notification settings

smartHelios/helm

Repository files navigation

smarthelios/helm

Deployment to Curalie-prd EKS cluster

The smarthelios/eks-kubectl comes installed with aws-iam-authenticator, an AWS-vendored copy of kubectl and helm.

Codeship Usage

Generate a kubeconfig

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

Copy contents to env var file using our codeship/env-var-helper container

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.

Encrypt the file, remove files and/or add to .gitignore

jet encrypt k8s-env k8s-env.encrypted
rm kubeconfigdata k8s-env

Configure the service and steps into the build with the following as guidance

# 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

Notice

This container is inspired by and based on the codeship kubectl container

About

A ruby image loaded with Helm3, AWS CLI and an env var helper to manage kubeconfig with Codeship

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published