2019-04-03 11:04:36 +11:00
2019-04-03 10:59:05 +11:00
2019-03-29 11:02:34 +11:00
2019-04-03 11:04:36 +11:00
2019-04-01 09:47:00 +11:00
2019-04-03 10:59:05 +11:00
2019-04-03 11:04:36 +11:00

drone-kubano

A simple Drone plugin for managing Kubernetes deployments. Follows from vallard/drone-kube but with dependency management, up-to-date , improved docs updated to Drone 1.0.0, examples and restructured code.

Usage

Add the following build step to your drone pipeline definition.

drone.yaml partial example

- name: Deploy app
  image: danielgormly/kubano
  settings:
    template: path/to/deployment.yaml # within repo
    ca: LS0tLS1... # BASE64 encoded string of the K8s CA cert
    server: https://10.0.0.20:6443 # K8s master node address
    token: ey... # Service account token to a service account that can manage deployments
    namespace: custom # [Optional] Custom namespace. (Defaults to `default`)
    custom: string # [Optional] Available to be referenced in template rendering as PLUGIN_CUSTOM
    master_alias: production # [Optional] Custom setting example. Available as PLUGIN_MASTER_ALIAS

deployment templates

Deployment config files are first interpreted by aymerick/raymond (handlebarsjs equivalent). You can use all available raymond expressions and anything you put in settings prefixed with the PLUGIN_* environment variables e.g. {{PLUGIN.NAMESPACE}}. See example/deployment.template.yaml for a complete example.

Adding a service account to Kubernetes that can manage deployments

See example/Role.yaml, /example/ServiceAccount.yaml, /example/RoleBinding.yaml.

Development

I'm happy to accept pull requests or take feedback. Use the issues tab or a PR.

S
Description
No description provided
Readme 6.2 MiB
Languages
Go 90.7%
Shell 8.9%
Dockerfile 0.4%