Kubernetes VM Executor for Screwdriver
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
test
.editorconfig
.eslintignore
.eslintrc.yaml
.gitignore
CONTRIBUTING.md
LICENSE
README.md
index.js
package.json
screwdriver.yaml

README.md

Screwdriver Kubernetes VM Executor

Version Downloads Build Status Open Issues Dependency Status License

Kubernetes VM Executor plugin for Screwdriver

Usage

npm install screwdriver-executor-k8s-vm

Initialization

The class provides a couple options that are configurable in the instantiation of this Executor

Parameter Type Default Description
config Object Configuration Object
config.kubernetes Object {} Kubernetes configuration Object
config.kubernetes.token String '' The JWT token used for authenticating to the Kubernetes cluster. (If not passed in, we will read from /var/run/secrets/kubernetes.io/serviceaccount/token.)
config.kubernetes.host String 'kubernetes.defaults' The hostname for the Kubernetes cluster (kubernetes)
config.kubernetes.nodeSelectors Object Object representing node label-value pairs https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#step-one-attach-label-to-the-node
config.ecosystem Object Screwdriver Ecosystem (ui, api, store, pushgateway, etc.)
config.launchVersion String 'stable' Launcher container version to use (stable)
config.prefix String '' Prefix to container names ("")
config.jobsNamespace String 'default' Kubernetes namespace where builds are running on
config.baseImage String '' Base image used to start the VM
config.kubernetes.resources.memory.high Number 12 Value for HIGH memory (in GB)
config.kubernetes.resources.memory.low Number 2 Value for LOW memory (in GB)
config.kubernetes.resources.memory.micro Number 1 Value for MICRO memory (in GB)
config.kubernetes.resources.cpu.high Number 6 Value for HIGH CPU (in cores)
config.kubernetes.resources.cpu.low Number 2 Value for LOW CPU (in cores)
config.kubernetes.resources.cpu.micro Number 1 Value for MICRO CPU (in cores)

Methods

For more information on start, stop, and stats please see the [executor-base-class].

Testing

npm test

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.