Drone plugins > Kubernetes Deployments
kubernetes.svg

Kubernetes Deployments

by mactynow


The Kubernetes plugin can be used to upgrade a Kubernetes deployment with a newer version of an image.

Example

kind: pipeline
name: default

steps:
- name: deploy
  image: quay.io/honestbee/drone-kubernetes
  settings:
    kubernetes_server: https://kubernetes.company.org
    kubernetes_token: CXHVLJSDKJFS...
    namespace: app
    deployment: my-deployment
    repo: myorg/myrepo
    container: my-container
    tag: mytag

Properties

  • container

    arrayrequired

    Container name (setup with the name option in the kubernetes manifest).

    Default: none

  • deployment

    arrayrequired

    Deployment name.

    Default: none

  • kubernetes_server

    stringrequired

    Kubernetes server URL.

    Default: none

  • kubernetes_token

    stringrequired

    Kubernetes token.

    Secret recommended

    Default: none

  • namespace

    stringrequired

    Kubernetes namespace.

    Default: none

  • repo

    stringrequired

    Image to update full name (with registry path).

    Default: none

  • tag

    stringrequired

    Image tag to update.

    Default: none