Record - knative : ServiceConfiguration

Knative service 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 (default true)
  • Docker image to be build or not. Default is true

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

  • singleYAML boolean (default 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 (default 1)
  • Number of replicas. Default is 1

  • livenessProbe boolean | ProbeConfiguration (default false)
  • Enable/Disable liveness probe and configure it. Default is false

  • readinessProbe boolean | ProbeConfiguration (default false)
  • Enable/Disable readiness probe and configure it. Default is false

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

  • podAnnotations map<string>
  • Map of annotations for pods

  • dependsOn string[]
  • Services this deployment depends on

  • imagePullSecrets string[]
  • Image pull secrets

  • containerConcurrency int (default 100)
  • concurent request handle by one container instance

  • timeoutSeconds int (default 60)
  • max time the instance is allowed for responding to a request

  • port int (default 8080)
  • containerPort value for Knative service