Record -
kubernetes
: DeploymentConfiguration
Kubernetes deployment 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 fieldregistry
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 totrue
to be effective. Default value isfalse
.
- cmd string
-
Value for CMD for the generated docker file. 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 (services, deployment, ingress and etc). Default is
true
.
- namespace string
-
Kubernetes namespace to be used on all artifacts.
- replicas int 1
-
Number of replicas. Default is
1
.
- livenessProbe boolean | ProbeConfiguration false
-
Enable/Disable liveness probe and configure it. Default is
false
.
- readinessProbe boolean | ProbeConfiguration false
-
Enable/Disable readiness probe and configure it. Default is
false
.
- imagePullPolicy ImagePullPolicy IMAGE_PULL_POLICY_IF_NOT_PRESENT
-
Image pull policy. Default is
"IfNotPresent"
.
- env map
-
Environment variable map for containers.
- podAnnotations map
-
Map of annotations for pods.
- podTolerations PodTolerationConfiguration[]
-
Toleration for pods.
- buildExtension BuildExtension | string
-
Docker image build extensions.
- dependsOn string
-
Services this deployment depends on.
- imagePullSecrets string
-
Image pull secrets.