Record - kubernetes : JobConfig

Kubernetes job configuration.

Fields

  • dockerHost string
  • Docker host IP and docker PORT. (e.g minikube IP and docker PORT). Default is to use DOCKER_HOST environment variable. If DOCKER_HOST is unavailable, use "unix:///var/run/docker.sock" for Unix or use "npipe:////./pipe/docker_engine" for Windows 10 or use "localhost:2375".

  • dockerCertPath string
  • Docker certificate path. Default is "DOCKER_CERT_PATH" environment variable.

  • registry string
  • Docker registry url.

  • username string
  • Username for docker registry.

  • password string
  • Password for docker registry.

  • baseImage string
  • Base image to create the docker image. Default value is "openjdk:8-jre-alpine".

  • image string
  • Docker image name with tag. Default is "<OUTPUT_FILE_NAME>:latest". If field registry is set then it will be prepended to the docker image name as <registry>/<OUTPUT_FILE_NAME>:latest.

  • buildImage boolean true
  • Docker image to be build or not. Default is true.

  • push boolean false
  • Enable pushing docker image to registry. Field buildImage must be set to true. Default value is false.

  • cmd string
  • Value for CMD for the generated dockerfile. Default is CMD java -jar ${APP} [--b7a.config.file=${CONFIG_FILE}] [--debug].

  • copyFiles FileConfig[]
  • Array of external files for the docker image.

  • singleYAML boolean true
  • Generate a single yaml file with all kubernetes artifacts (ingress, configmaps, secrets and etc). Default is true.

  • namespace string
  • Kubernetes namespace to be used on all artifacts.

  • imagePullPolicy ImagePullPolicy IMAGE_PULL_POLICY_IF_NOT_PRESENT
  • Image pull policy. Default is "IfNotPresent".

  • env map
  • Environment varialbes for container.

  • restartPolicy RestartPolicy RESTART_POLICY_NEVER
  • Restart policy. Default is "Never".

  • backoffLimit string
  • Backoff limit.

  • activeDeadlineSeconds int 20
  • Active deadline seconds. Default is 20.

  • schedule string
  • Schedule for cron jobs.

  • imagePullSecrets string
  • Image pull secrets.