Skip to content
DEPRECATED! Kubernetes proxy plugin for Drone. A step in the Pipeline PaaS CI/CD component to provision a Kubernetes cluster or use a managed one.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor
.dockerignore
.env.template
.gitignore
Dockerfile
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
main.go
plugin.go

README.md

Plugin K8S Proxy

The plugin connects to an existing Kubernetes cluster and executes tasks wrapped into a K8S job. The task (container image) and its inputs are provided as environment variables. The job executes the configured image and watches for the logs produced by the underlying pod.

The plugin primarily serves as a building block for the Banzai Cloud Pipeline CI/CD flow.

Check the .env template for configuration (the set of env variables "understood" by the plugin):

# the source repository (eg. git repository name)
export DRONE_REPO_NAME=repository

# workspace folder
export DRONE_WORKSPACE=/tmp

# build number
export DRONE_BUILD_NUMBER=0

# the image to be executed in the k8s cluster
export PLUGIN_ORIGINAL_IMAGE=bash

# the command to be executed in the original image
export PLUGIN_ORIGINAL_COMMANDS="echo 'hello Kubernauts!'"

# the k8s service account the job runs as
export PLUGIN_SERVICE_ACCOUNT=default

export PLUGIN_JOB_LABEL_SELECTOR=label-1

Issue the make list for the available operations.

You can’t perform that action at this time.