Deploy Configuration #
1. Deploy Configuration Overview #
To deploy a cron job, the CD details of the service are required. If they are not configured, the DEPLOY DETAILS tab shows CD Details Not Configured and asks you to choose how to add them.
2. Navigation #
- 1
Log in to BuildPiper.
- 2
Switch to User Portal.
- 3
Click Application and select the application.
- 4
Open Service Overview.
- 5
Select the service.
- 6
Select the ENV DEPLOY DETAILS tab, then the DEPLOY DETAILS tab.
- 7
Select Cronjob instead of MicroService.
- 8
Choose one of the two options, then click CONFIGURE.

Figure 1: CD Details Not Configured – Cronjob
3. Configuration Options #
| Option | Description |
|---|---|
| BuildPiper-UI | Configure and manage the Cronjob CD details directly through BuildPiper. |
| Custom Manifest file/GitOps | Configure the CD by uploading your custom manifest file. |
Reference: For more information about Kubernetes CronJobs, refer to the official Kubernetes documentation on CronJobs.
4. Deploy Configuration Steps #
When you choose BuildPiper-UI, the Cronjob deploy configuration opens as a step-by-step form. It has 12 steps.
- 01
Basic Information
- 02
Execution Details
- 03
Request Quota
- 04
Configuration & Secrets
- 05
Mount Details
- 06
Env Variables
- 07
Node And Cronjob Affinity
- 08
Security Context Details
- 09
Tolerations And Priorities
- 10
Liveness/Readiness
- 11
Labels/Annotations
- 12
Hooks
4.1. Basic Information #
The first step, Basic Information, defines the name of the cron job and how its jobs start, retry and end. Fill in the details, then click CONTINUE.

Figure 2: Basic Information
| Field | Description |
|---|---|
| Name | The name of the cron job, for example ot-payment-dev-sample-dev-1. |
| Container Name | The name of the container that runs the job, for example salary-dev-dev-main. |
| Image Pull Policy | Select when the image is pulled, for example: always |
| Start Deadline | The time in seconds within which the job can start after its scheduled time. It prevents late jobs from running. |
| Time to live | How long, in seconds, a finished cron job or its jobs are kept before the system deletes them automatically. It cleans up completed or failed resources, saves cluster space and avoids clutter. |
| Backoff Limit | The maximum number of retry attempts after a job fails. After this, the job is marked as failed. |
| Active Deadline | The maximum run time of the job pod, in seconds. If the pod runs longer, it is stopped. |
4.2. Execution Details #
The second step, Execution Details, defines when the cron job runs, what it runs and how its jobs are handled. Fill in the details, then click NEXT.

Figure 3: Execution Details
| Field | Description |
|---|---|
| Schedule | Defines when and how often the job runs. Enter the schedule in cron format, for example * * * * *. |
| Command | The command that the cron job runs. |
| Command Arguments | The arguments passed to the command or script. They let you customize how the job behaves or processes data. |
| Successful pod count | The total number of successful pods required to consider the job complete. |
| Number of pods to run in parallel | The number of pods that run at the same time. It is useful for parallel processing. |
| Concurrency Policy | Defines how overlapping runs are handled. Allow: multiple jobs can run at once. Forbid: overlapping runs are prevented. Replace: the running job is cancelled and a new one starts. |
| Restart Policy | Defines what happens when a pod fails. Never: failed pods are not restarted. OnFailure: failed pods are restarted. |
| Failed Jobs History Limit | The number of failed job records to keep for monitoring and debugging. Older failed jobs are cleaned up automatically. |
| Successful Jobs History Limit | The number of successful job records to keep for monitoring. Older successful jobs are cleaned up automatically to save resources. |
4.3. Request Quota #
The third step, Request Quota, sets the resources that are reserved for the container. Fill in the details, then click NEXT.

Figure 4: Request Quota
| Field | Description |
|---|---|
| Request Memory Quota | The minimum guaranteed memory reserved for the container. For example, 100 means 100 MB of memory. |
| Request CPU Quota | The minimum guaranteed CPU reserved for the container. For example, 100 means 100 milli-cores of CPU. |
| Specify Request GPU Quota | Turn on to define specialized GPU requirements for the container by providing a GPU key and a GPU value. |
| Specify limit quota else limit quota will be same as request quota | Turn on to set a separate limit quota. If it is off, the limit quota is the same as the request quota. |
4.4. Configuration & Secrets #
The fourth step, Configuration & Secrets, lets you mount ConfigMaps and Secrets into the container. Turn on the options you need, then click NEXT.

Figure 5: Configuration & Secrets
| Option | Description |
|---|---|
| Define from ConfigMap | Mount a ConfigMap on a path or a sub-path. |
| Mount ConfigMap key on subpath | Mount specific keys of a ConfigMap as individual files at precise paths. It is useful for adding configuration files to existing directories without overwriting them. |
| Define from Secrets | Mount Secrets on a path or a sub-path. |
| Mount Secret key on subpath | Mount an external Secret key on a path or a sub-path. |
4.5. Mount Details #
The fifth step, Mount Details, defines the volumes and the entry point of the container. Turn on the options you need, then click NEXT.

Figure 6: Mount Details
| Option | Description |
|---|---|
| Define Empty Directory | Create temporary storage that is shared by the containers in the pod. The data remains available across container restarts, but it is deleted when the pod is removed. |
| Define Hostpath | Mount a file or directory from the Kubernetes node into the container. Use it carefully, because the workload then depends on the selected node and its file system. |
| Bind PVCs | Mount an existing PersistentVolumeClaim into the container, to keep data independent of pod restarts or replacements. |
| Do you have custom entry point (Command) | Override the default command defined in the container image. Configure it only when the application must start with a custom command or arguments. |
4.6. Env Variables #
The sixth step, Env Variables, defines the environment variables of the container at runtime. Turn on the options you need, then click NEXT.

Figure 7: Env Variables
| Option | Description |
|---|---|
| Define Raw Key Value Pairs | Pass key-value pairs to be used as environment variables inside the container. |
| Define from ConfigMap | Use an existing ConfigMap onboarded on BuildPiper as environment variables inside the container. |
| Define from Secrets | Use an existing Secret onboarded on BuildPiper as environment variables inside the container. |
| Define from manifest field reference | Pass values from the metadata or status of the pod itself into the container as environment variables. |
The common field references for a manifest field reference are:
| Field Reference | Value |
|---|---|
| metadata.name | Pod name |
| metadata.namespace | Namespace |
| metadata.uid | Unique pod ID |
| spec.nodeName | Node where the pod is running |
| status.podIP | Pod IP address |
| status.hostIP | Node IP |
4.7. Node And Cronjob Affinity #
The seventh step, Node And Cronjob Affinity, controls where the pods of the cron job are scheduled. Turn on the options you need, then click NEXT.

Figure 8: Node & Service Affinity
| Option | Description |
|---|---|
| Set Node Affinity Required | Define mandatory node-label rules for scheduling the workload. The pod stays unscheduled if no node meets all the required rules. |
| Set Node Affinity Preferred | Define preferred node-label rules for scheduling the workload. Kubernetes tries to use matching nodes, but it may schedule the pod elsewhere when required. |
| Set Service Affinity | Schedule the workload near the pods of the selected services. Use it when related services should run in the same topology, such as a node or a zone. |
| Set Service Anti Affinity | Schedule the workload away from the pods of the selected services. Use it to distribute workloads and reduce the impact of a node or zone failure. |
4.8. Security Context Details #
The eighth step, Security Context Details, defines the security settings of the pod and the container. Turn on the options you need, then click NEXT.

Figure 9: Security & Context
| Option | Description |
|---|---|
| Pod level security context | Configure the security settings that apply by default to all containers in the pod, such as user, group and file-system permissions. |
| Container level security context | Configure the security settings for the application container. Container-level values can override the matching pod-level defaults. |
4.9.Tolerations And Priorities #
The ninth step, Tolerations And Priorities, controls on which nodes the pod can run and how important it is. Turn on the options you need, then click NEXT.

Figure 10: Tolerations And Priority
| Option | Description |
|---|---|
| Setup Tolerations | A toleration allows a pod to be scheduled on a node that has a taint, which is a restriction. A taint normally repels all pods, but a matching toleration allows your pod to run there. For example, you taint nodes that have fast storage with storage=premium. To make sure a database pod uses them, add a toleration with the Key storage, the Operator Equal and the Value premium. You configure the Key, Operator, Value and Effect. For example, the effect No Schedule means that the pod does not run on the node without a match. |
| Setup Priority | The priority decides which pods are most important when the cluster is running out of space. If a high-priority pod needs to start, Kubernetes evicts lower-priority pods to make room. For example, during a traffic spike a Checkout service with high priority needs to scale up. Kubernetes stops a low-priority background job to give its CPU and memory to the Checkout service. You can select predefined classes such as system-cluster-critical or system-node-critical, so that your most important services never stay in the Pending state. |
Note: BuildPiper loads the default priority classes directly from Kubernetes. If you need additional priority classes, apply your custom priority classes directly to the Kubernetes cluster.
4.10. Liveness/Readiness #
The tenth step, Liveness/Readiness, defines the rolling update strategy, the health checks and the rollout options. Set the values, then click NEXT.

Figure 11: Liveness/Readiness
Deployment Strategy: Rolling Update
| Field | Description |
|---|---|
| Max Surge | Specify the maximum number or percentage of additional Pods that may be created above the desired replica count during a rolling update. |
| Max Unavailable | Specify the maximum number or percentage of desired Pods that may be unavailable during a rolling update. |
| Revision History Limit | Specify how many previous ReplicaSet revisions Kubernetes should retain for deployment history and rollback. |
| Termination Grace Period | Specify how many seconds Kubernetes should allow a container to shut down gracefully before forcefully terminating it. |
| Progress Deadline | Specify how many seconds Kubernetes should wait for deployment progress before marking the rollout as unsuccessful. |
| Minimum Ready | Specify how many seconds a newly created Pod must remain ready before it is considered available. |
Note: Canary deployments can be configured and managed through the BuildPiper pipeline.
Health Checks and Rollout Options
| Option | Description |
|---|---|
| Do you have liveness health check URL? | Configure a liveness probe to detect an unhealthy container. Kubernetes restarts the container after the configured failure threshold is reached. |
| Do you have a readiness health check URL? | Configure a readiness probe to determine whether the container can receive traffic. Unready Pods are temporarily removed from service endpoints. |
| Validate Deployment Rollout | Enable rollout validation to verify that the deployment reaches the expected healthy state after the manifest is applied. |
| Server Side Apply | Applies the Kubernetes manifest using the server-side apply mechanism. Kubernetes manages the application of the configuration on the API server, helping maintain resource state and track field ownership. |
4.11. Labels/Annotations #
The eleventh step, Labels/Annotations, allows you to configure labels, label selectors, and annotations for the CronJob. Enable the required options and click NEXT to proceed.

Figure 12: Labels and Annotations
| Option | Description |
|---|---|
| Labels | Add key-value labels to the cron job. |
| Label Selectors | Node selectors cannot be modified directly after a deployment is created. Once a pod is scheduled to a node based on its selector, it remains bound to that node. To change the node selector, update the deployment manifest and reapply it, which initiates a new rollout. |
| Annotations | Add key-value annotations to the cron job. |
4.12. Hooks #
The last step, Hooks Details, lets you run custom scripts around the deployment and add host entries to the pod. Turn on the options you need, then click SUBMIT to save the deploy configuration.

Figure 13: Hooks Details
| Option | Description |
|---|---|
| Do you have deploy pre hooks? | Enable this option to run custom scripts before the deployment. You can add a pre-hook in one of three ways: • Via Command: Run a command. • Via File Upload: Upload a file and enter the command arguments. • Via Git: Select the Git URL and the branch, enter the file or folder path, and enter the command arguments. |
| Do you have deploy post hooks? | Enable this option to run custom scripts after the deployment. You can add a post-hook in the same three ways: Via Command, Via File Upload or Via Git. |
| Configure host mapping in pod? | Manually add custom domain-to-IP mappings to the Pod’s /etc/hosts file. This is useful for accessing internal databases or external services that are not registered in the cluster’s DNS. |
17. Deploy Configuration Created #
After you click SUBMIT, BuildPiper saves the configuration and returns you to the DEPLOY DETAILS tab. The tab now shows the stable configuration of the cron job instead of the CD Details Not Configured message.

Figure 14: Deploy configuration created
18. Configure Using a Custom Manifest #
If you choose the Custom Manifest option, BuildPiper opens the Manifest Information page. Enter the details, add your manifest, then click SAVE & CONTINUE.

Figure 15: Manifest Information
| Field | Description |
|---|---|
| Deployment Name | The name of the deployment. |
| Service Name | The name of the service. |
| Image Pull Policy | Select when the container image is pulled. |
| Resource Kind | Select the kind of resource. Click PROVIDE CUSTOM KIND to enter a kind that is not in the list. |
| Widget Data | Add the names of additional deployments to include. |
| Define Raw Key Value Pairs | Turn on to define raw key-value pairs. |
| Validate Deployment Rollout | Verifies that the deployment reaches the expected healthy state after the manifest is applied. |
| Server Side Apply | Applies the Kubernetes manifest using the server-side apply mechanism. Kubernetes manages the application of the configuration on the API server, helping maintain resource state and track field ownership. |
| Do you have Pre hooks? | Enable this configuration to execute custom scripts or commands before or after the Docker image is created during the build process. |
| Do you have post hooks? | Enable this configuration to execute custom scripts or commands after the Docker image is created during the build process. |
⚠️ Warning: Pre-hooks and post-hooks allow custom script execution and should be configured with utmost caution. Grant access to these settings only to authorized and trusted users, as malicious or improperly configured scripts may introduce security vulnerabilities, disrupt build processes, or affect system stability.
Add the manifest
Select how you want to provide the manifest:
| Option | Description |
|---|---|
| Via Manifest File Upload | Drag and drop your manifest files, or click click here to choose them. You can upload multiple files. |
| Via Git URL | Use a manifest stored in a Git repository. |
| Via Helm Templates | Use Helm templates as the manifest. |