Skip to content

squizr/drone-kubernetes

Repository files navigation

drone-kubernetes

Drone plugin to deploy or update a deployments on kubernetes. For the usage information and a listing of the available options please take a look at the docs.

Please note this plugin uses Deployments avaliable on kubernetes 1.2 and up.

Binary

Build the binary using make:

make deps build

Example

deploy:
  kubernetes:
    cluster: https://107.978.211.57
    token: $$TOKEN
    image: squizr/drone-kubernetes
    deployment:
      kind: "Deployment"
      spec:
      template:
        spec:
          containers:
            -
              image: "nginx:1.7.9"
              name: "nginx"
              ports:
                -
                  containerPort: 80
        metadata:
          labels:
            app: "nginx"
      replicas: 3
      apiVersion: "extensions/v1beta1"
      metadata:
      name: "nginx-deployment"
    cat test-payload.json | docker run -i squizr/drone-kubernetes

TODO

  • Change Auth to service accounts
  • Write tests

Docker

Build the container using make:

make deps docker

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published