1.0.7 • Published 5 years ago

screwdriver-executor-docker-k8s v1.0.7

Weekly downloads
5
License
BSD-3-Clause
Repository
github
Last release
5 years ago

Screwdriver Kubernetes Executor

Version Downloads Build Status Open Issues Dependency Status License

Kubernetes Executor plugin for Screwdriver

This is an executor for the Screwdriver continuous delivery solution that interacts with Kubernetes.

Usage

npm install screwdriver-executor-k8s

Initialization

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

ParameterTypeDefaultDescription
configObjectConfiguration Object
config.kubernetesObject{}Kubernetes configuration Object
config.kubernetes.tokenString''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.hostString'kubernetes.defaults'The hostname for the Kubernetes cluster (kubernetes)
config.kubernetes.serviceAccountString'default'The service account to use in Kubernetes (default)
config.ecosystemObjectScrewdriver Ecosystem (ui, api, store, etc.)
config.launchImageString'screwdrivercd/launcher'Launcher image to use
config.launchVersionString'stable'Launcher container version to use (stable)
config.prefixString''Prefix to container names ("")
config.kubernetes.jobsNamespaceString'default'Kubernetes namespace where builds are running on
config.kubernetes.resources.memory.turboNumber16Value for TURBO memory (in GB)
config.kubernetes.resources.memory.highNumber12Value for HIGH memory (in GB)
config.kubernetes.resources.memory.lowNumber2Value for LOW memory (in GB)
config.kubernetes.resources.memory.microNumber1Value for MICRO memory (in GB)
config.kubernetes.resources.cpu.turboNumber12Value for TURBO CPU (in cores)
config.kubernetes.resources.cpu.highNumber6Value for HIGH CPU (in cores)
config.kubernetes.resources.cpu.lowNumber2Value for LOW CPU (in cores)
config.kubernetes.resources.cpu.microNumber0.5Value 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.