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 for docker image building. Default value is "ballerina/ballerina-runtime:<BALLERINA_VERSION>". Use "ballerina/ballerina-runtime:latest" to use the latest stable ballerina runtime docker image.

  • 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 to be effective. Default value is false.

  • 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.

  • buildExtension BuildExtension | string
  • Docker image build extensions.

  • dependsOn string
  • Services this deployment depends on.

  • imagePullSecrets string
  • Image pull secrets.