Kubernetes configuration
Configuration of the Kubernetes extension, which runs auto-versioning post-processing as Kubernetes Jobs in the cluster Yontrack runs in.
| Name | Environment | Description | Default value | Notes |
|---|---|---|---|---|
ontrack.extension.kubernetes.allowed.images.<0> |
ONTRACK_EXTENSION_KUBERNETES_ALLOWED_IMAGES_<0> |
Patterns that the dockerImage of a post-processing must match: * stands for any sequence of characters, and the whole image name must match one of the patterns. Empty by default, which denies every image. |
Empty list | |
ontrack.extension.kubernetes.allowed.secrets.<0> |
ONTRACK_EXTENSION_KUBERNETES_ALLOWED_SECRETS_<0> |
Names of the Kubernetes Secrets that a post-processing may reference. Empty by default, which denies every Secret. | Empty list | |
ontrack.extension.kubernetes.enabled |
ONTRACK_EXTENSION_KUBERNETES_ENABLED |
Enables the Kubernetes extension. Disabled by default: no Kubernetes client is created and kubernetes is an unknown auto-versioning post-processing. |
false | |
ontrack.extension.kubernetes.git.user-email |
ONTRACK_EXTENSION_KUBERNETES_GIT_USER_EMAIL |
Email of the author of the commit made by the harness | no-reply@yontrack.invalid | |
ontrack.extension.kubernetes.git.user-name |
ONTRACK_EXTENSION_KUBERNETES_GIT_USER_NAME |
Name of the author of the commit made by the harness | Yontrack | |
ontrack.extension.kubernetes.harness.image |
ONTRACK_EXTENSION_KUBERNETES_HARNESS_IMAGE |
Image of the clone and push steps. It must provide sh and git, and run as a non-root user. |
alpine/git:v2.49.1 | |
ontrack.extension.kubernetes.job.fs-group |
ONTRACK_EXTENSION_KUBERNETES_JOB_FS_GROUP |
Group ID owning the volumes of a Job | 1000 | |
ontrack.extension.kubernetes.job.image-pull-secrets.<0> |
ONTRACK_EXTENSION_KUBERNETES_JOB_IMAGE_PULL_SECRETS_<0> |
Names of the image pull secrets applied to every Job | Empty list | |
ontrack.extension.kubernetes.job.log-tail-lines |
ONTRACK_EXTENSION_KUBERNETES_JOB_LOG_TAIL_LINES |
Number of log lines of the failing step kept in the auto-versioning audit | 100 | |
ontrack.extension.kubernetes.job.max-timeout |
ONTRACK_EXTENSION_KUBERNETES_JOB_MAX_TIMEOUT |
Cap on the timeoutSeconds of a post-processing configuration. Keep it well under one hour: the token of a GitHub App is fetched when the Job is created and lasts one hour. |
PT30M | |
ontrack.extension.kubernetes.job.poll-interval |
ONTRACK_EXTENSION_KUBERNETES_JOB_POLL_INTERVAL |
Interval between two readings of the status of a running Job | PT5S | |
ontrack.extension.kubernetes.job.resources.limits.cpu |
ONTRACK_EXTENSION_KUBERNETES_JOB_RESOURCES_LIMITS_CPU |
CPU, as a Kubernetes quantity. Blank for none. | 1 | |
ontrack.extension.kubernetes.job.resources.limits.memory |
ONTRACK_EXTENSION_KUBERNETES_JOB_RESOURCES_LIMITS_MEMORY |
Memory, as a Kubernetes quantity. Blank for none. | 1Gi | |
ontrack.extension.kubernetes.job.resources.requests.cpu |
ONTRACK_EXTENSION_KUBERNETES_JOB_RESOURCES_REQUESTS_CPU |
CPU, as a Kubernetes quantity. Blank for none. | 100m | |
ontrack.extension.kubernetes.job.resources.requests.memory |
ONTRACK_EXTENSION_KUBERNETES_JOB_RESOURCES_REQUESTS_MEMORY |
Memory, as a Kubernetes quantity. Blank for none. | 256Mi | |
ontrack.extension.kubernetes.job.run-as-group |
ONTRACK_EXTENSION_KUBERNETES_JOB_RUN_AS_GROUP |
Group ID that the three steps of a Job run as | 1000 | |
ontrack.extension.kubernetes.job.run-as-user |
ONTRACK_EXTENSION_KUBERNETES_JOB_RUN_AS_USER |
User ID that the three steps of a Job run as. Never 0. | 1000 | |
ontrack.extension.kubernetes.job.timeout |
ONTRACK_EXTENSION_KUBERNETES_JOB_TIMEOUT |
Time given to a Job when the post-processing configuration sets no timeoutSeconds |
PT10M | |
ontrack.extension.kubernetes.job.ttl |
ONTRACK_EXTENSION_KUBERNETES_JOB_TTL |
How long a finished Job is kept before Kubernetes deletes it (ttlSecondsAfterFinished) |
PT1H | |
ontrack.extension.kubernetes.namespace |
ONTRACK_EXTENSION_KUBERNETES_NAMESPACE |
Namespace where the Jobs and their Secrets are created. When blank, the namespace Yontrack itself runs in. |