Deploy Configuration

17 min read

Configuring the Deploy Details #

1. Configuring the Deploy Details Overview #

Overview

A well-governed deployment configuration process improves the speed, reliability, and consistency of how services reach production. BuildPiper automates this end-to-end, covering Kubernetes manifest generation, resource policies, security context, scheduling, and lifecycle hooks, so platform teams can deploy confidently without writing or maintaining YAML by hand.

Deployment Approaches #

BuildPiper provides two approaches for automating the deployment configuration process. Choose the one that aligns with how your team manages Kubernetes manifests today.

Swipe horizontally to view all columns →
Approach Description
A. BuildPiper Auto-Generated Manifests By asking a few questions about your service deployment, BuildPiper generates a compliant, secure, scalable, and reliable service manifest which is utilized for service deployments. This is the recommended approach for most teams.
B. Bring Your Own Manifest Files (BYOM) If you already have Manifests or a Helm chart with a values file, provide the file or the Git URL and BuildPiper will use the same to automate deployments. No rewriting required.

Note: The rest of this page documents the Auto-Generated Manifest approach. For the BYOM workflow, refer to the dedicated BYOM documentation.

If Kubernetes manifests are generated by BuildPiper, compatibility with Kubernetes upgrades will be managed out of the box. For BYOM (Bring Your Own Manifests), maintaining and upgrading the templates to ensure compatibility with newer Kubernetes versions will be the responsibility of the respective template authors or owners.

CD Configuration Sections #

The Auto-Generated Manifest configuration is organised into 12 sections, each controlling a specific aspect of how the service runs on Kubernetes. The first section, Deploy Details, defines core Kubernetes deployment identity, container settings, and replica scaling.

Swipe horizontally to view all columns →
No. Section Description
01 Deploy Details Service name, deployment name, container, image pull policy, replicas.
02 Access Type Public, Protected or Private ingress access levels and routing rules.
03 Resource Quota CPU, Memory, and GPU request and limit boundaries.
04 Configurations & Secrets Mount ConfigMaps, Secrets, and External Secret keys at chosen paths.
05 Mount Details Empty directory, host path, PVC binding, and custom entrypoint commands.
06 Env Variables Plain key/value, ConfigMap, Secret, or pod metadata field references.
07 Node & Service Affinity Required/preferred node affinity, service affinity and anti-affinity rules.
08 Security Context Pod-level and container-level security baseline and overrides.
09 Tolerations & Priorities Toleration of node taints and priority classes for eviction order.
10 Liveness & Readiness Self-healing restart checks and traffic-gating readiness probes.
11 Labels & Annotations Identification labels, selectors, and informational annotations.
12 Hooks Details Pre-deploy and post-deploy hook scripts via inline, file, or Git.

Deploy Details #

Core identity and scaling settings for the Kubernetes Deployment and Service resources.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Service Name* Mandatory Defines a unique service name used for service discovery. Acts as a permanent identity for your application since individual pods are frequently destroyed and recreated. Populates metadata.name in the Kubernetes Service manifest. Example: A backend named order-service can receive requests at http://order-service instead of tracking individual pod IPs.
Deployment Name* Mandatory Unique identifier for the Deployment resource within the namespace and prefix for the pods it manages. Populates metadata.name in the Kubernetes Deployment manifest. Example: A deployment named frontend-v2 auto-restarts a crashed pod to maintain the desired state.
Container Name* Mandatory A specific label assigned to the primary container in the pod. The container name is referred to later for monitoring purposes.
Select Image Pull Policy* Mandatory Determines when Kubernetes pulls the container image from the registry, balancing deployment speed against version consistency. Options: Always (pull every time), IfNotPresent (use cached if available), Never (only local image).
Desired Replica Count* Mandatory Number of Pod replicas the Deployment should maintain for high availability and load distribution. Example: If replicas = 3, traffic is distributed across 3 pods. If one crashes, Kubernetes auto-creates a replacement.
Custom Service Account Non-Mandatory A separate identity created for the Pod so it can securely access Kubernetes resources, instead of using the shared default identity. Useful when granular RBAC is required, for example creating an app-sa ServiceAccount with permission to only read specific secrets.

Access Type #

In BuildPiper, the Ingress access levels determine how your service is exposed to the network and who can reach it.

Swipe horizontally to view all columns →
Access Level Description
Public Access For services that need to be reachable from the open internet, the standard choice for customer-facing applications. How it works: Maps a public-facing Load Balancer (with a public IP) to the cluster’s Ingress controller. Anyone with the URL can attempt access.
Protected Access A layer of restriction making the service reachable only to specific, authorised users. How it works: May have a reachable endpoint but access is restricted via IP Whitelisting or mandatory OIDC/SSO authentication. Limited to employees, VPN users, or authorized partners.
Private Access The most restrictive tier. The service is never accessible beyond the internal network. How it works: Uses an Internal Load Balancer with a private IP from your VPC. DNS records usually only resolve within the private network. Accessible only from within the Kubernetes cluster.

Read more: Ingress

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Choose Access Level Mandatory Select Public, Protected, or Private.
Service Port* Mandatory Specify the port on which the service will be accessible.
URL Mandatory The Host or Fully Qualified Domain Name (FQDN). Populates spec.rules[].host in the YAML, telling the Ingress controller to route traffic only when a request matches this specific domain (e.g. ot-payment-service.example.com).
Protocol Pre-selected Defines the network protocol used for the connection.
Exposed Path Mandatory The URL path (e.g. /api or /). Populates spec.rules[].http.paths[].path and lets the Ingress route traffic to different backend services based on the specific URI requested.
Target Port Mandatory The port where your application is actually listening inside the container.

Resource Quota #

Define the minimum guaranteed (request) and maximum allowed (limit) compute resources for each container.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Request Memory Quota* Mandatory The minimum guaranteed RAM reserved for the container. e.g. 100 means 100 MB of memory.
Request CPU Quota* Mandatory The minimum guaranteed CPU cores reserved for the container. e.g. 100 means 100 millicores of CPU.
Specify Request GPU Quota Non-Mandatory Enable to define specialised GPU requirements for the container by providing a GPU key and value.
Limit Memory Quota* Mandatory The maximum RAM the container is permitted to use; if exceeded the container may be terminated (OOMKilled, visible in logs).
Limit CPU Quota* Mandatory The maximum CPU cores the container can consume before being throttled.
Specify Limit GPU Quota Non-Mandatory Set the upper boundary for GPU consumption if a GPU is assigned to the service.

Configurations & Secrets #

Mount Kubernetes ConfigMaps, Secrets, and External Secret keys at chosen paths inside the container.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Config Map Non-Mandatory Mount a ConfigMap on a path or sub-path.
Secret Map Non-Mandatory Mount Secrets on a path or sub-path.
External Secret Key Non-Mandatory Mount an external secret key on a path or sub-path.

Mount Details #

Configure ephemeral and persistent storage mounts, plus container entrypoint overrides.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Empty Directory Non-Mandatory Mounts an empty directory inside the container. Commonly used when multiple containers in the same pod need to share files. Data is accessible to all containers that mount it and persists for the lifetime of the pod. Once the pod is deleted, the data is removed.
Host Path Non-Mandatory Mounts a host path inside the container.
Bind PVCs Non-Mandatory Binds a Persistent Volume Claim (PVC) inside the container.
Custom Entrypoint CMD Non-Mandatory Execute a custom entrypoint command inside the container.

Env Variables #

Pass environment variables to the container from multiple sources.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Key / Value Pair Non-Mandatory Pass key–value pairs as environment variables inside the container.
Config Map Non-Mandatory Use an existing ConfigMap onboarded on BP as environment variables inside the container.
Secret Non-Mandatory Use an existing Secret onboarded on BP as environment variables inside the container.
Manifest Field Reference Non-Mandatory Pass values from the Pod’s own metadata/status into the container as env vars.

Common Manifest Field References #

Swipe horizontally to view all columns →
Field Reference Description
metadata.name Pod name
metadata.namespace Namespace
metadata.uid Unique pod ID
spec.nodeName Node where pod is running
status.podIP Pod IP address
status.hostIP Node IP

Node & Service Affinity #

Control which nodes pods land on and how they cluster relative to other pods of the same or different services.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Set Node Affinity — Required Non-Mandatory Hard rules that must be met for a Pod to be scheduled on a node.
Set Node Affinity — Preferred Non-Mandatory Soft rules that the scheduler will try to enforce but will ignore if no matching node is available.
Set Service Affinity Non-Mandatory Rules that encourage Pods of a selected service to be scheduled on the same node or within the same availability zone.
Set Service Anti-Affinity Non-Mandatory Rules that prevent Pods of the same service from being scheduled on the same node.

Security Context Details #

Configure security identity, filesystem permissions, and Linux capability restrictions at both the Pod and Container level.

Swipe horizontally to view all columns →
Level Setting Description
Pod-Level: Pod Security Context Overview Sets the baseline security identity for every container in the pod. Focuses on the “Who” and “Shared Access”.
  Run As User / Group Consistent identity across containers, essential for shared volumes.
  FS Group Auto-adjusts ownership of attached storage volumes for read/write access.
Container-Level: Container Security Context Overview Granular restrictions that apply to a specific container, overriding or tightening Pod-level rules.
  ReadOnly Root Filesystem Prevents writes to the container’s core disk.
  Allow Privilege Escalation Controls if a process can gain more power than its parent.
  Add / Drop Capabilities Strip away unnecessary kernel permissions.

Tolerations & Priorities #

Allow pods to land on tainted nodes, and define which pods get evicted first when the cluster runs out of room.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Setup Tolerations Non-Mandatory Allow a Pod to be scheduled on a Node that has a Taint. Configure Key, Operator, Value, and Effect (e.g. NoSchedule means the pod won’t land there without a match).
Setup Priority Non-Mandatory Select pre-defined classes like system-cluster-critical or system-node-critical to ensure vital services never get stuck in a Pending state.

Note: BP loads default priority classes directly from Kubernetes. Custom priority classes must be applied directly to the cluster.

Liveness & Readiness #

Configure the two probes that Kubernetes uses to detect crashed containers and route traffic only to ready pods.

Swipe horizontally to view all columns →
Probe Description
Liveness: Self-Healing Restart Probe If this check fails, Kubernetes assumes the container has crashed or deadlocked and restarts it automatically. Example: Your app has a bug where it occasionally stops responding. The Liveness probe detects the silence and triggers a restart.
Readiness: Traffic-Gating Probe If this check fails, Kubernetes doesn’t kill the app. It simply stops sending traffic until the check passes. Example: The app is running but still downloading 500 MB of data, so readiness stays Failed and users aren’t sent to an app that isn’t ready.

Common Probe Configuration Fields #

Swipe horizontally to view all columns →
Config Field Purpose
Execution Type How to check: URL or Path (HTTP GET) or Command (script inside the container).
URL or Path The specific endpoint (e.g. /health or /ready) that the cluster pings.
Scheme HTTP or HTTPS. Must match the protocol the container is configured to handle.
Port The internal container port (e.g. 8080) where the health check service is listening.
Delay Seconds to wait after the app starts before the first check is performed (grace period / warm-up).
Period How often (in seconds) Kubernetes should repeat the health check.
Timeout How long to wait for a response before marking that attempt as Failed.
Failure Threshold Number of consecutive failed checks required before Kubernetes restarts the container (Liveness) or stops routing traffic (Readiness).

Labels & Annotations #

Identification tags and informational metadata attached to Kubernetes resources.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Labels (Key / Value) Non-Mandatory Identification tags used by Kubernetes to group and select Pods. Indexed and searchable. Example: env: prod or app: payment-gateway.
Label Selector (Key / Value) Non-Mandatory Search criteria defining which resources this deployment belongs to or which pods a service should send traffic to.
Annotations (Key / Value) Non-Mandatory Non-identifying info, like “sticky notes” for external tools or humans. Used for build versions, contact info, or structured JSON that doesn’t affect scheduling.

Hooks Details #

Run custom scripts before or after the deployment using inline commands, uploaded files, or scripts pulled from a Git repository.

Swipe horizontally to view all columns →
Field Name Field Type Description / Requirement
Pre-Deploy Hooks Non-Mandatory Commands or scripts to run before deployment starts. Can be defined inline, uploaded locally, or fetched from a Git repository.
Post-Deploy Hooks Non-Mandatory Commands or scripts to run after the deployment completes. Can be defined inline, uploaded locally, or fetched from a Git repository.

Workflow & Navigation #

The BuildPiper workflow to configure CD for a service is detailed below.

Figure 1: How to Configure Env CD Detail

Figure 1: How to Configure Env CD Detail

  1. 1

    Login to BP.

  2. 2

    Switch to User Portal.

  3. 3

    Click Application.

  4. 4

    Open Service Overview.

  5. 5

    Select the service name.

  6. 6

    Open Env CD Detail (the ENV DEPLOY DETAILS tab).

  7. 7

    Click CONFIGURE under BuildPiper-UI.

Note: The BP Environment onboarding page is accessible inside the User Portal.

BP Snapshots #

Reference screenshots covering each stage of the CD configuration flow inside BuildPiper.

Figure 2: CD Access Configuration

Figure 2: CD Access Configuration

Figure 3: Resource Quota Configuration

Figure 3: Resource Quota Configuration

Figure 4: CD Configuration & Secrets

Figure 4: CD Configuration & Secrets

Figure 5: CD Mount Configuration

Figure 5: CD Mount Configuration

Figure 6: CD Env Details

Figure 6: CD Env Details

Figure 7: CD Node and Service Affinity

Figure 7: CD Node and Service Affinity

Figure 8: CD Security Context Details

Figure 8: CD Security Context Details

Figure 9: CD Tolerations & Priorities

Figure 9: CD Tolerations & Priorities

Figure 10: CD Liveness / Readiness

Figure 10: CD Liveness / Readiness

Figure 11: CD Annotations & Labels

Figure 11: CD Annotations & Labels

Figure 12: CD Hooks Configuration

Figure 12: CD Hooks Configuration

Init & Sidecar Containers #

In Kubernetes, Init Containers and Sidecar Containers are two types of containers that help the main application container perform its tasks. Both can run within the same Kubernetes Pod, but their purposes and execution lifecycles are different.

What is an Init Container? #

An Init Container is a special container that runs before the main application container starts. Its purpose is to perform initialization or setup tasks required by the application.

For example, suppose your application requires a configuration file before starting.

Swipe horizontally to view all columns →
Step Container What happens
1 Init Container Prepare configuration or verify dependencies. Initialization completed.
2 Main Application Container Application starts running.

Note: Standard Init Containers must complete successfully before the main application starts.

What is a Sidecar Container? #

A Sidecar Container is an additional container that runs alongside the main application container in the same Pod. Its purpose is to provide supporting functionality without modifying the main application’s code.

For example, suppose your application generates logs and you want to send them to a centralized logging platform.

Swipe horizontally to view all columns →
Container (in the same Pod) Role
Main Container Runs the business application.
Sidecar Container Collects and forwards application logs.

The containers share the Pod’s network and can share storage volumes.

  1. 1

    Open the ENV DEPLOY DETAILS page and select the DEPLOY DETAILS tab.

  2. 2

    Click on Sidecars or Init Container to configure the init and sidecar containers.

Figure 13: Sidecars or Init Container

Figure 13: Sidecars or Init Container

Click CONFIGURE to open the container form. It has five steps: Request Quota, Configuration & Secrets, Mount Details, Env Variables and Security Context Details.

Request Quota #

In Container Type, select Init Container or Sidecar, depending on the container you want to create.

Figure 14: Sidecar or Init Container - Request Quota

Figure 14: Sidecar or Init Container – Request Quota

Click CONTINUE to go to the next step.

Configuration & Secrets #

The second step has four toggles, all set to No by default: Define from ConfigMap, Mount ConfigMap key on subpath, Define from Secrets and Mount Secret key on subpath.

Figure 15: Sidecar or Init Container - Configuration & Secrets

Figure 15: Sidecar or Init Container – Configuration & Secrets

Click NEXT to go to the next step.

Mount Details #

The third step (Mount &Config) has four toggles, all set to No by default: Define Empty Directory, Define Hostpath, Bind PVCs and Do you have custom entry point (Command).

Figure 16: Sidecar or Init Container - Mount Details

Figure 16: Sidecar or Init Container – Mount Details

Click NEXT to go to the next step.

Env Variables #

The fourth step (Define runtime environment variables) has three toggles, all set to No by default: Define Raw Key Value Pairs, Define from ConfigMap and Define from Secrets.

Figure 17: Sidecar or Init Container - Env Variables

Figure 17: Sidecar or Init Container – Env Variables

Click NEXT to go to the next step.

Security Context Details #

The last step (Security & Context) has one toggle, Init Container security context, set to No by default.

Figure 18: Sidecar or Init Container - Security Context Details

Figure 18: Sidecar or Init Container – Security Context Details

Click SUBMIT to save the container configuration.

The Init & Sidecar container is created and added under the stable configuration.

Figure 19: Init & Sidecar Container Added

Figure 19: Init & Sidecar Container Added

Multi Deployment #

BuildPiper allows a single service to have multiple independent deployments, each with its own configuration and infrastructure requirements. This gives teams the flexibility to adapt deployment strategies as their services evolve, without unnecessarily splitting them into multiple services.

Why Would a Service Need Multiple Deployments? #

A service ends up with multiple deployments when different configurations or workloads within it need to be managed independently, which a single deployment cannot do on its own. Two common examples:

Swipe horizontally to view all columns →
Example Description
Different cron jobs, different schedules A service might run as several cron jobs, each needing its own schedule and configuration. For example, Job A runs every 5 minutes, Job B runs every hour and Job C runs once every night. Instead of forcing them into one deployment, each is configured as an independent deployment. This gives better control over scheduling, configuration, scaling and lifecycle, and the success/failure, metrics and data of every cron job can be monitored and managed independently.
Multi-Architecture Deployment Users can deploy multi-architecture images to optimize infrastructure cost: run the minimum required availability on AMD nodes, and use ARM nodes for horizontal scaling during increased demand, taking advantage of the lower cost of ARM-based infrastructure.
  1. 1

    Open the ENV DEPLOY DETAILS page and select the DEPLOY DETAILS tab.

  2. 2

    Click + SETUP OTHER DEPLOYMENT to configure multiple deployments for this service.

Figure 20: Setup Other Deployment

Figure 20: Setup Other Deployment

The CD Details Not Configured screen opens. To deploy a service, CD details are required, so choose from the options on this screen to add them.

  1. 1

    Select the deployment type: MicroService or Cronjob.

  2. 2

    Click CONFIGURE under BuildPiper-UI to configure and manage the CD details directly through BuildPiper.

Figure 21: CD Details Not Configured

Figure 21: CD Details Not Configured

Clone from an Existing Environment #

You can also clone the deployment from one of the available environments.

  1. 1

    In You can clone from these available Envs, select the environment.

  2. 2

    In Deployment, select the deployment to clone.

  3. 3

    Click NEXT.

Figure 22: Clone from Available Envs

Figure 22: Clone from Available Envs

After this, the rest of the process is the same as the Deploy Configuration steps described above.

Single Namespace: Add Deployment Names in Widget Data #

If multiple deployments are configured within the same namespace, there is no need for a separate setup flow. Simply add those deployment names in the Widget Data section of the deployment’s Manifest Information.

Figure 23: Widget Data in Manifest Information

Figure 23: Widget Data in Manifest Information

Multi Deployment Configured #

Once multiple deployments are configured, they are listed in a drop-down on the DEPLOY DETAILS tab. Select a deployment from the list to view its configuration.

Figure 24: Multi Deployment Configured

Figure 24: Multi Deployment Configured