Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (82 sloc) 1.98 KB
date title author tags repo logo image
2017-012-05T00:00:00+00:00
helm
kubeci
kubernetes
helm
kubeciio/helm
helm.svg
kubeciio/helm

The helm plugin can be used to do everything helm can do. It provides some helpers and shortcuts to make your pipeline step more readable.

Example configuration running inside a kubernetes cluster:

pipeline:
  helm:
    image: kubeciio/helm
    helm: list

Example configuration using a kubeconfig via a secret:

This is required when running outside a cluster or a different one should be talked to.

pipeline:
  helm:
    image: kubeciio/helm
    helm: list
+   secrets: [ kubeconfig ]

This takes the secret kubeconfig, base64 decodes it and writes it to disk ready for helm.

Example configuration using a different kubeconfig via a secrets:

pipeline:
  helm:
    image: kubeciio/helm
    helm: list
+   secrets:
+     - source: kubeconfig_development
+       target: kubeconfig

This maps the kubeconfig_develpment secret to be used by the plugin as kubeconfig which is then forwarded to helm.

Example configuration using a different tiller namespace:

pipeline:
  helm:
    image: kubeciio/helm
    helm: list
+   tiller_namespace: helm

Example configuration using charts:

pipeline:
  helm:
    image: kubeciio/helm
+   helm: upgrade --install --namespace monitoring prometheus monitoring/prometheues/

equivalent:

pipeline:
  helm:
    image: kubeciio/helm
    helm: upgrade --install
+   charts:
+   - name: prometheus 
+     path: monitoring/prometheues/
+     namespace: monitoring

Example using multiple charts which are iterated over:

pipeline:
  helm:
    image: kubeciio/helm
    helm: upgrade --install
   charts:
   - name: prometheus
     path: monitoring/prometheues/
     namespace: monitoring
+  - name: nginx
+    path: ingress/nginx/
+    namespace: ingress-nginx
+  - name: cert-manager
+    path: cert-manager/
+    namespace: cert-manager