---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Containerized MID Server Deployment and Auto-configuration

# Containerized MID Server Deployment and Auto-configuration {#ariaid-title1}

Release version: Brazil  
Updated November 13, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 5 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Containerized MID Server Deployment and Auto-configuration

This feature enables ServiceNow customers to deploy and manage MID Servers in containerized environments such as Kubernetes or OpenShift using Docker images.
It simplifies and scales the deployment process by using a MID Server profile and auto-configuration mechanisms, avoiding manual setup complexities.
Show full answer Show less  

## Key Features

* **MID Server Profile:** Contains all necessary configuration settings except sensitive data, which is managed via Kubernetes Secrets. Profiles support deploying multiple MID Servers without preset names, allowing dynamic naming during deployment requests.
* **Deployment Requests:** Created from MID Server profiles and exported as YAML files for deployment in Kubernetes clusters using standard commands (e.g., `kubectl apply -f <yamlfile>`).
* **Docker Image Preparation:** Customers build the MID Server Docker image, upload it to a registry, and pull it to clusters. Image tagging uses the MID Server build stamp for version tracking, ensuring consistency.
* **Kubernetes Setup:** Requires proper RBAC service accounts with cluster-admin roles to manage necessary resources. Secrets must be created to securely provide sensitive configurations like authentication files.
* **Auto-configuration:** Upon first connection, new MID Servers are automatically configured based on their assigned profile, streamlining setup and reducing manual interventions.
* **Profile Synchronization:** Profiles can be synced to existing MID Servers if updates occur after initial deployment. Cluster assignments require MID Servers to have capabilities assigned to avoid validation failures.
* **Automatic Upgrades:** Containerized MID Servers support self-upgrades controlled by a system parameter. Upgrades involve building new images tagged with updated build stamps and updating deployment YAML files accordingly.

## Practical Benefits for ServiceNow Customers

* Quickly deploy MID Servers in container environments using standardized profiles and deployment requests.
* Centralized management of configuration via MID Server profiles, improving consistency and repeatability.
* Secure handling of sensitive data through Kubernetes Secrets, enhancing security compliance.
* Seamless scaling by deploying multiple MID Servers from a single profile without manual reconfiguration.
* Automated MID Server configuration and lifecycle management, reducing administrative overhead.
* Support for smooth upgrades and synchronization, ensuring MID Servers stay current and consistent with organizational policies.  
An agent admin can enter a MID Server Profile and create a deployment request on the
instance. She/he can then export the deployment request to a YAML file and use it to deploy
MID Servers to Kubernetes or OpenShift cluster.

|-|
|   |
[ ]

{#containerized-mid-deployment__table_p53_ms4_nhb} Containerized MID Servers use a Docker image of the MID Server that allows you to quickly deploy MID Servers. The documentation for [Build MID Server Docker Image for Linux](https://servicenow-prod.fluidtopics.net/B8c9qaWjGIO_ACoQeCEWsw#mid-build-docker-linux "Deploy Containerized MID Servers on Linux by creating a Docker image with the provided recipes. Containerized MID Server uses a Docker image of the MID Server that allows you to quickly deploy MID Servers at scale.") provides steps for manually preparation and deployment. The following Containerized MID Server auto-configuration simplifies the process and makes it scalable.

## MID Server profile {#containerized-mid-deployment__section_jkw_fk3_fsb}

A MID Server profile contains all the settings required to configure a new MID Server, excluding sensitive data such as passwords and certificates. Sensitive data should be passed through Secrets created on the K8s cluster. The
user only enters secret names and locations in the deployment request. An agent_admin role is required to create or change profiles.

For information about the tables that store MID Server profile data, see [MID Server profile configuration data](https://servicenow-prod.fluidtopics.net/8w14RkM4oeQtWZkYAyFWKw "Use these tables to locate and manage MID Server profile records, configuration parameters, properties, and assignments stored in the instance database.").

During deployment, the mid_profile_config and
mid_profile_wrapper_config parameters are sent to the K8s cluster. These
parameters populate the `config.xml` and `wrapper-override.conf`
of the new MID Server. The other parameters are used by the auto-configuration on the instance.
The user can access the MID Server profile from the module MID Server Profiles on the instance.

The MID Server name is not required in a profile because a profile can be used to deploy
multiple MID Servers. Instead, the user is asked to enter MID Server names as part of a new
deployment request. For the mid_profile_wrapper_config, the user can
enter any parameters that they want to see in `wrapper-override.conf`. For
example:

|-|-|
| Name | Value |
| wrapper.java.maxmemory | 2048 |
| wrapper.java.additional.3 | -Djavax.net.debug=ssl:handshake |
[ ]

{#containerized-mid-deployment__table_jv2_nk3_fsb}

Other profile settings can be entered the same way as on a MID Server record.

## MID Server Deployment Request {#containerized-mid-deployment__section_q1k_hzc_3sb}

After creating a MID Server profile, create a deployment request. Deployment requests vary by container orchestrator. See [MID Server Deployment Request](https://servicenow-prod.fluidtopics.net/0SYWTWAv~1YLR7J~Bv8OpQ "After creating a MID server profile, the user can make a new deployment request to prepare the deployment process.​ A deployment request can be different for different container orchestrators.").

## Export MID Deployment Request for Manual Deployment {#containerized-mid-deployment__section_jcp_5yc_3sb}

The user can export it to a K8s deployment YAML file. The user can download the YAML
file to the K8s cluster and deploy new MID Servers with the following command:
`kubectl apply --f <yaml_file>`

## Docker image preparation {#containerized-mid-deployment__section_hdl_zyc_3sb}

To prepare a Docker image, first build a MID Server image on a K8s cluster as explained in [Build MID Server Docker Image](https://servicenow-prod.fluidtopics.net/B8c9qaWjGIO_ACoQeCEWsw#mid-build-docker-linux "Deploy Containerized MID Servers on Linux by creating a Docker image with the provided recipes. Containerized MID Server uses a Docker image of the MID Server that allows you to quickly deploy MID Servers at scale."). Upload the built image to an image registry and pull the image to a local image with the command: `docker pull registry/mid:<tag>`. Refer
to [Docker Registry Setup for Containerized MID Server II: Auto Configuration \[KB1001380\]](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1001380) for information on limitations on pulling an image directly from a remote registry.

Tag each image you build with the MID Server build stamp. You can find the build stamp on the stats.do page. Identify your images by the MID Server version, not by the instance release name.

## Kubernetes preparation {#containerized-mid-deployment__section_ldl_zyc_3sb}

See also [How to build and deploy Containerized MID Servers in
Kubernetes using StatefulSets \[KB1325173\]](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1325173).  
Kubernetes service account setup  
Ensure the service account has the proper RBAC set up to create, delete, and list permission for resources. The following example YAML file uses the default service account:

    apiVersion: rbac.authorization.k8s.io/v1 
     kind: ClusterRoleBinding 
     metadata:   
        name: default-service-acccount-as-cluster-admin 
     subjects:   

      - kind: ServiceAccount 
        # Reference to upper's `metadata.name`     
        name: default 
        # Reference to upper's `metadata.namespace`     
        namespace: default 
     roleRef:   
        kind: ClusterRole 
        name: cluster-admin 
        apiGroup: rbac.authorization.k8s.io

You may choose a custom service account and assign a ClusterRole to
that service account and name space. The default name space is default.
The following example YAML file uses a custom name space,
mynamespace.

    apiVersion: rbac.authorization.k8s.io/v1 
     kind: ClusterRoleBinding 
     metadata:   
        name: custom-serviceacccount-as-cluster-admin 
     subjects:   

      - kind: ServiceAccount 
        # Reference to upper's `metadata.name`     
        name: mycustomserviceaccount 
        # Reference to upper's `metadata.namespace`     
        namespace: mynamespace 
     roleRef:   
        kind: ClusterRole 
        name: cluster-admin 
        apiGroup: rbac.authorization.k8s.io

Kubernetes Secret setup

Secrets are created for mid-secrets.properties or PEM files for mutual
authentication. For more information about how to create a Secret, see the section in [Containerized MID Server](https://servicenow-prod.fluidtopics.net/an2sgfGhaezv4zetTRwDeQ "Containerized MID Server uses a Docker image of the MID Server that allows you to quickly deploy MID Servers at scale. MID Servers are deployed using orchestration tools like OpenShift or Kubernetes. Orchestration tools can automate their deployment and maintenance and add new containers on demand or replace failed containers automatically.").

## Auto-configure new Containerized MID Servers {#containerized-mid-deployment__section_l5p_ym3_fsb}

When a MID server is connected to the instance for the first time, a MID Server record is
created. The MID Server record is populated with the container ID, profile ID and deployment
name. The Auto-Configure MID from profile business rule is triggered when
the new MID Server record is updated with a profile ID in the profile_id
field. The business rule looks up the profile settings associated with that profile ID and
configures the new MID server accordingly.

## Sync MID Server Profile to existing MID Servers {#containerized-mid-deployment__section_d4j_cn3_fsb}

The MID Server profile can be out-of-sync with the settings of existing MID Servers if the
user updates the profile long after the related MID Servers were auto-configured. The user can
synchronize the profile settings to the existing MID Server by selecting Sync to MID Servers on the instance.  
Note:  
When applying cluster settings from MID Server profile to a MID Server, the cluster assignment will fail if the MID Server doesn't have any capability assigned. It is controlled by the "validate MID server capability" business rule on the ecc_agent_cluster_member_m2m table. If you want to assign a MID server to a cluster, please make sure it has some capabilities.

## Containerized MID Server upgrades {#containerized-mid-deployment__section_bpg_bqj_flc}

A containerized MID Server upgrades itself when the instance requires a newer version. This is controlled by the mid.container.autoupgrade.enabled parameter, which is true by default. When you move to a new
MID Server version, build a new image and tag it with the new build stamp. Then update the image in the deployment YAML file. For more information, see [Containerized MID Server](https://servicenow-prod.fluidtopics.net/an2sgfGhaezv4zetTRwDeQ "Containerized MID Server uses a Docker image of the MID Server that allows you to quickly deploy MID Servers at scale. MID Servers are deployed using orchestration tools like OpenShift or Kubernetes. Orchestration tools can automate their deployment and maintenance and add new containers on demand or replace failed containers automatically.")

