Run WSO2 Micro Integrator on Kubernetes by baking your integration artifacts into a container image, injecting deployment.toml from a ConfigMap, passing secrets as Kubernetes secrets, running at least two replicas behind a service with health probes, and sending logs and metrics to your standard stack. The vendor documents the deployment patterns and Helm charts; this guide adds the order of work and the checks we would make.
It builds on our WSO2 Micro Integrator page. Vendor references: Kubernetes deployment patterns and configuring Helm charts, checked November 2026. If you are moving from the ESB, start with the migration guide.
Container build
- Package integration artifacts into a composite application archive in your build pipeline.
- Build an image from the vendor's Micro Integrator base with your archive added. The vendor documents generating a Docker image from the tooling.
- Tag images with an immutable version, such as the Git commit, never only latest.
- Scan the image and sign it. Pull it from your private registry.
- Promote the same image through environments. Change only configuration.
Configuration and secrets
| Item | Where it lives | Note |
|---|---|---|
| Server settings | deployment.toml in a ConfigMap, mounted into the pod | Keep one file per environment in source control |
| Passwords and keys | Kubernetes secrets or an external vault | The vendor documents using Kubernetes secrets in Synapse configurations |
| Keystores | Mounted from a secret, not baked into the image | See our hardening checklist |
| Endpoints and URLs per environment | Environment variables or config values read at start | Avoid editing artifacts per environment |
| Artifacts | In the image | Changes mean a new image and a rolling update |
Illustrative manifest. It shows the shape only and has not been run:
apiVersion: apps/v1
kind: Deployment
metadata:
name: mi-orders
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate: { maxUnavailable: 0, maxSurge: 1 }
selector:
matchLabels: { app: mi-orders }
template:
metadata:
labels: { app: mi-orders }
spec:
containers:
- name: mi
image: registry.example.com/integration/mi-orders:1.0.0 # your built image
ports:
- { name: http, containerPort: 8290 }
- { name: https, containerPort: 8253 }
envFrom:
- secretRef: { name: mi-orders-secrets }
volumeMounts:
- { name: config, mountPath: /home/wso2carbon/wso2mi/conf/deployment.toml, subPath: deployment.toml }
readinessProbe:
httpGet: { path: /healthz, port: 9201 }
initialDelaySeconds: 20
livenessProbe:
httpGet: { path: /healthz, port: 9201 }
initialDelaySeconds: 40
resources:
requests: { cpu: "500m", memory: 1Gi }
limits: { memory: 2Gi }
volumes:
- name: config
configMap: { name: mi-orders-config }Scaling and health probes
- Start with two replicas and rolling updates with no unavailable pods.
- Use readiness to hold traffic until artifacts are deployed, and liveness to restart a stuck process. Give startup enough time so liveness does not kill a slow start.
- Scale on CPU and request rate, and test with your slowest backend, since integration load is often bound by waiting on backends.
- Decide how scheduled tasks and inbound endpoints are coordinated across replicas. The vendor lists a coordination pattern with registry synchronization.
- Set a pod disruption budget so node upgrades do not drain all replicas at once.
- Message stores and in-flight work: test what happens to them when a pod is killed.
Observability
| Signal | How | Check |
|---|---|---|
| Logs | Write to stdout or a mounted volume and ship with your log agent | Correlation ID appears in every log line |
| Metrics | Expose metrics for your monitoring stack; the vendor documents monitoring options | Dashboards for request rate, errors and latency |
| Tracing | Propagate trace headers through mediation | One trace spans gateway, integration and backend |
| Service and API logs | Use the vendor's service-level and API-level logging | Log level can be changed without a restart |
| Alerts | Pod restarts, error rate, backend latency | Each alert has an owner and a runbook |
When a flow fails, use the troubleshooting runbook.
Release and rollback
- Build and scan a new image with a new tag.
- Deploy to a test namespace and run the recorded-traffic and error-path tests.
- Roll to production with no unavailable pods allowed, and watch error rate and latency.
- If a threshold trips, roll back to the previous tag. Keep the last two tags available.
- Record the version in the change log.
Because artifacts are baked into the image, a rollback is a tag change. That is the main operating benefit of the container model over editing artifacts on a server. It also means hot-editing a running pod is a habit to avoid.
Checks before go-live
- Pod restarts do not lose or duplicate messages.
- Scheduled tasks run once per schedule with several replicas.
- Secrets rotate without a rebuild.
- Resource requests and limits are set from load tests, not guesses.
- Logs from a killed pod are still searchable.



