Deploy Seata Server By Helm
Overview
Install Seata Server with the repository's Helm chart. Review the chart values and mounted configuration before installation, then use the configuration section to adapt the deployment.
For production Kubernetes deployments (including Raft cluster lifecycle management), consider using the official Apache Seata K8s Operator (incubator-seata-k8s).
Quick Start
-
Clone the repository and switch to the Helm chart directory:
git clone -b 2.x https://github.com/apache/incubator-seata.git
cd incubator-seata/script/server/helm -
Install the chart (disable the default
hostPathvolume if/root/workspace/seata/seata-config/application.ymldoes not exist on the node, or customizevalues.yamlfirst):helm install seata-server ./seata-server --set image.repository=apache/seata-server --set image.tag=2.6.0 --set volume=null
Upgrade or uninstall:
helm upgrade seata-server ./seata-server -f my-values.yaml
helm uninstall seata-server
Custom Configuration
Environment Variables
The supported environment variables are the same as Docker. Refer to Deploy Seata Server By Docker.
Using Custom Configuration Files
Mount your application.yml to /seata-server/resources/application.yml inside the container via values.yaml:
replicaCount: 1
namespace: default
image:
repository: apache/seata-server
tag: 2.6.0
pullPolicy: IfNotPresent
service:
type: NodePort
port: 30091
env:
seataPort: "8091"
storeMode: "file"
seataIp: "192.168.1.10"
volume:
- name: seata-config
mountPath: /seata-server/resources/application.yml
subPath: application.yml
hostPath: /root/workspace/seata/seata-config/application.yml
SEATA_IP(env.seataIp) must be an IPv4 or IPv6 address literal, not a hostname.- When using
hostPath, ensureapplication.ymlalready exists on the host path before deploying; otherwise the Pod will fail to start.