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.
.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
make list for the available operations.