2016-12-12 17:41:09 +00:00
2016-12-09 16:03:53 +00:00
2016-12-12 14:21:54 +00:00
2016-12-09 13:05:41 +00:00
2016-12-09 13:05:41 +00:00
2016-12-09 16:00:57 +00:00
2016-12-08 16:21:06 +00:00
2016-12-12 17:41:09 +00:00
2016-12-12 16:38:29 +00:00
2016-12-12 17:41:09 +00:00
2016-12-12 17:41:09 +00:00

Helm (Kubernetes) plugin for drone.io

Build Status

This plugin allows to deploy a Helm chart into a Kubernetes cluster.

For example, this configuration will deploy my-app using the stable/jenkins chart

    pipeline:
         helm_deploy:
            image: quay.io/ipedrazas/drone-helm                    
            chart: stable/jenkins
            release: my-dear-jenkins

There are two secrets you have to create:

            drone secret add --image=quay.io/ipedrazas/drone-helm \
                    your-user/your-repo API_SERVER https://mykubernetesapiserver


            drone secret add --image=quay.io/ipedrazas/drone-helm \
                    your-user/your-repo KUBERNETES_TOKEN eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJ...

If you don't know where to get a token from, you can execute the following command:

    kubectl exec POD_NAME -- cat /var/run/secrets/kubernetes.io/serviceaccount/token

For example, in a cluster where there's a pod called nginx-1212390922-fdz1x we coudl do:

    kubectl exec nginx-1212390922-fdz1x -- cat /var/run/secrets/kubernetes.io/serviceaccount/token

To test the plugin, you can run minikube and just run the docker image as follows:

    docker run --rm \
    -e PLUGIN_API_SERVER=https://192.168.64.5:8443 \
    -e PLUGIN_TOKEN="eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ld..." \
    -e PLUGIN_NAMESPACE=default \
    -e PLUGIN_SKIP_TLS_VERIFY=true \
    -e PLUGIN_RELEASE=my-release \
    -e PLUGIMN_CHART=stable/jenkins \
    quay.io/ipedrazas/drone-helm

Happy Helming!

S
Description
No description provided
Readme MIT 1.5 MiB
Languages
Go 94.4%
Dockerfile 3.8%
Smarty 1.4%
Shell 0.4%