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 fieldregistryis set then it will be prepended to the docker image name as<registry>/<OUTPUT_FILE_NAME>:latest.
- buildImage boolean (default true)
-
Docker image to be build or not. Default is
true.
- push boolean (default false)
-
Enable pushing docker image to registry. Field
buildImagemust be set totrue. Default value isfalse.
- 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 docker image.
- singleYAML boolean (default 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 (default IMAGE_PULL_POLICY_IF_NOT_PRESENT)
-
Image pull policy. Default is
"IfNotPresent".
- env map<string | FieldRef | SecretKeyRef | ResourceFieldRef | ConfigMapKeyRef>
-
Environment varialbes for container.
- restartPolicy RestartPolicy (default RESTART_POLICY_NEVER)
-
Restart policy. Default is
"Never".
- backoffLimit string
-
Backoff limit.
- activeDeadlineSeconds int (default 20)
-
Active deadline seconds. Default is
20.
- schedule string
-
Schedule for cron jobs.
- imagePullSecrets string[]
-
Image pull secrets.
- nodeSelector map<string>
-
Node selector labels.
- uberJar boolean (default false)
-
Use ballerina uber jar. Default is
true.
- dockerConfigPath string
-
Path to docker configuration.