Deployment
This page lists deployment configuration. It is based on placeholders (variables) and tunable using an environment file or maven properties. You can check the pom for bundlebee-placeholder-import comment to see how to enable an externalised file to host the environment variables.
Placeholders
app.deploytime-
Label with the deployment time injected. Using maven setup it uses
maven.build.timestampproperty. Default:unset.
bundlebee.environment-
Label hosting the environment name (can enable to identify deployment errors). Default:
default.
hcms.replicas-
Number of replicas for the web application. Default:
1.
hcms.resources.memory-
Kubernetes resources memory to allocate. Default:
512Mi.
hcms.resources.requests.cpu-
Kubernetes CPU requests. Default:
1.
-
hcms.version* - Image tag version to deploy.
image.pullPolicy-
Deployment image pull policy (if image is moving -
snapshotorlatest, ensure to set it toAlways). Default:IfNotPresent.
-
image.registry* - Base image registry to pull the image from.
user.name-
Deployment user - injected in a label. Default:
unknown.
Sample
This part shows a a sample configuration file you can use as a base for bundlebee-placeholder-import file.
|
TIP
|
if you use VSCode
you can install properties completion
extension to fill this page. Use this link
url as a header of the file: |
# vscode_properties_completion_proposals=https://.../completion/placeholders.completion.properties
# HELP: Label with the deployment time injected. Using maven setup it uses `maven.build.timestamp` property.
# app.deploytime = unset
# HELP: Label hosting the environment name (can enable to identify deployment errors).
# bundlebee.environment = default
# HELP: Number of replicas for the web application.
# hcms.replicas = 1
# HELP: Kubernetes resources memory to allocate.
# hcms.resources.memory = 512Mi
# HELP: Kubernetes CPU requests.
# hcms.resources.requests.cpu = 1
# HELP: Image tag version to deploy.
# hcms.version =
# HELP: Deployment image pull policy (if image is moving - `snapshot` or `latest`, ensure to set it to `Always`).
# image.pullPolicy = IfNotPresent
# HELP: Base image registry to pull the image from.
# image.registry =
# HELP: Deployment user - injected in a label.
# user.name = unknown