You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by ji...@apache.org on 2025/06/01 07:33:35 UTC
(incubator-seata-website) branch docusaurus updated: update k8s doc (#977)
This is an automated email from the ASF dual-hosted git repository.
jianbin pushed a commit to branch docusaurus
in repository https://gitbox.apache.org/repos/asf/incubator-seata-website.git
The following commit(s) were added to refs/heads/docusaurus by this push:
new a745ab01c1a update k8s doc (#977)
a745ab01c1a is described below
commit a745ab01c1a0470332b71f24a333ef646ab8132a
Author: funkye <ji...@apache.org>
AuthorDate: Sun Jun 1 15:33:32 2025 +0800
update k8s doc (#977)
---
.../current/ops/deploy-by-kubernetes.md | 115 ++++++---------------
.../version-v1.0/ops/deploy-by-kubernetes.md | 13 +--
.../version-v1.1/ops/deploy-by-kubernetes.md | 13 +--
.../version-v1.2/ops/deploy-by-kubernetes.md | 13 +--
.../version-v1.3/ops/deploy-by-kubernetes.md | 13 +--
.../version-v1.4/ops/deploy-by-kubernetes.md | 13 +--
.../version-v1.5/ops/deploy-by-kubernetes.md | 95 +++++------------
.../version-v1.6/ops/deploy-by-kubernetes.md | 95 +++++------------
.../version-v1.7/ops/deploy-by-kubernetes.md | 97 +++++------------
.../version-v1.8/ops/deploy-by-kubernetes.md | 97 +++++------------
.../version-v2.0/ops/deploy-by-kubernetes.md | 97 +++++------------
.../version-v2.1/ops/deploy-by-kubernetes.md | 107 ++++++-------------
.../version-v2.2/ops/deploy-by-kubernetes.md | 107 ++++++-------------
.../version-v2.3/ops/deploy-by-kubernetes.md | 107 ++++++-------------
.../current/ops/deploy-by-kubernetes.md | 35 +------
.../version-v1.5/ops/deploy-by-kubernetes.md | 93 +++++++++++------
.../version-v1.6/ops/deploy-by-kubernetes.md | 93 +++++++++++------
.../version-v1.7/ops/deploy-by-kubernetes.md | 93 +++++++++++------
.../version-v1.8/ops/deploy-by-kubernetes.md | 93 +++++++++++------
.../version-v2.0/ops/deploy-by-kubernetes.md | 93 +++++++++++------
.../version-v2.1/ops/deploy-by-kubernetes.md | 93 +++++++++++------
.../version-v2.2/ops/deploy-by-kubernetes.md | 93 +++++++++++------
.../version-v2.3/ops/deploy-by-kubernetes.md | 93 +++++++++++------
23 files changed, 779 insertions(+), 982 deletions(-)
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/current/ops/deploy-by-kubernetes.md
index eb94ff8edcb..825e85e31e9 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/current/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -60,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: apache/seata-server:2.1.0
+ image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
+
+### Environment Variables
-### Use specify configuration file
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
+
+
+### Using Custom Configuration Files
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
- Deployment
@@ -114,11 +106,8 @@ spec:
spec:
containers:
- name: seata-server
- image: apache/seata-server:2.1.0
+ image: docker.io/apache/seata-server:latest
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -170,21 +138,16 @@ data:
application.yml: |
server:
port: 7091
-
+
spring:
application:
name: seata-server
-
+
logging:
config: classpath:logback-spring.xml
file:
- path: ${user.home}/logs/seata
-
- console:
- user:
- username: seata
- password: seata
-
+ path: ${log.home:${user.home}/logs/seata}
+
seata:
config:
# support: nacos, consul, apollo, zk, etcd3
@@ -211,21 +174,5 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
- security:
- secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
- tokenValidityInMilliseconds: 1800000
- ignore:
- urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
+
```
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.0/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.0/ops/deploy-by-kubernetes.md
index d5feb93aca0..1df58039157 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.0/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.0/ops/deploy-by-kubernetes.md
@@ -211,18 +211,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.1/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.1/ops/deploy-by-kubernetes.md
index d5feb93aca0..1df58039157 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.1/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.1/ops/deploy-by-kubernetes.md
@@ -211,18 +211,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.2/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.2/ops/deploy-by-kubernetes.md
index d5feb93aca0..1df58039157 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.2/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.2/ops/deploy-by-kubernetes.md
@@ -211,18 +211,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.3/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.3/ops/deploy-by-kubernetes.md
index d5feb93aca0..1df58039157 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.3/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.3/ops/deploy-by-kubernetes.md
@@ -211,18 +211,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.4/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.4/ops/deploy-by-kubernetes.md
index d5feb93aca0..1df58039157 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.4/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.4/ops/deploy-by-kubernetes.md
@@ -211,18 +211,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.5/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.5/ops/deploy-by-kubernetes.md
index d5feb93aca0..4ceb2909318 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.5/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.5/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -60,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:1.5.2
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
+
+### Environment Variables
+
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
-### Use specify configuration file
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
+### Using Custom Configuration Files
+
- Deployment
@@ -116,9 +108,6 @@ spec:
- name: seata-server
image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -211,18 +179,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.6/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.6/ops/deploy-by-kubernetes.md
index d5feb93aca0..c0e32da26f0 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.6/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.6/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -60,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:1.6.0
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
+
+### Environment Variables
+
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
-### Use specify configuration file
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
+### Using Custom Configuration Files
+
- Deployment
@@ -116,9 +108,6 @@ spec:
- name: seata-server
image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -211,18 +179,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.7/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.7/ops/deploy-by-kubernetes.md
index d5feb93aca0..1652f9559b0 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.7/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.7/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
-### Use specify configuration file
+### Environment Variables
+
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
+
+
+### Using Custom Configuration Files
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
- Deployment
@@ -114,11 +106,8 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:1.7.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -178,7 +146,7 @@ data:
logging:
config: classpath:logback-spring.xml
file:
- path: ${user.home}/logs/seata
+ path: ${log.home:${user.home}/logs/seata}
console:
user:
@@ -211,18 +179,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v1.8/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v1.8/ops/deploy-by-kubernetes.md
index d5feb93aca0..01490e802e2 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v1.8/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v1.8/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
-### Use specify configuration file
+### Environment Variables
+
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
+
+
+### Using Custom Configuration Files
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
- Deployment
@@ -114,11 +106,8 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:1.8.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -178,7 +146,7 @@ data:
logging:
config: classpath:logback-spring.xml
file:
- path: ${user.home}/logs/seata
+ path: ${log.home:${user.home}/logs/seata}
console:
user:
@@ -211,18 +179,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v2.0/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v2.0/ops/deploy-by-kubernetes.md
index d5feb93aca0..8ae22916b16 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v2.0/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v2.0/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
-### Use specify configuration file
+### Environment Variables
+
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
+
+
+### Using Custom Configuration Files
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
- Deployment
@@ -114,11 +106,8 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:2.0.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -178,7 +146,7 @@ data:
logging:
config: classpath:logback-spring.xml
file:
- path: ${user.home}/logs/seata
+ path: ${log.home:${user.home}/logs/seata}
console:
user:
@@ -211,18 +179,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v2.1/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v2.1/ops/deploy-by-kubernetes.md
index eb94ff8edcb..b41ebbf5201 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v2.1/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v2.1/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -60,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: apache/seata-server:2.1.0
+ image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
+
+### Environment Variables
-### Use specify configuration file
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
+
+
+### Using Custom Configuration Files
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
- Deployment
@@ -114,11 +106,8 @@ spec:
spec:
containers:
- name: seata-server
- image: apache/seata-server:2.1.0
+ image: docker.io/apache/seata-server:2.1.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -170,21 +138,21 @@ data:
application.yml: |
server:
port: 7091
-
+
spring:
application:
name: seata-server
-
+
logging:
config: classpath:logback-spring.xml
file:
- path: ${user.home}/logs/seata
-
+ path: ${log.home:${user.home}/logs/seata}
+
console:
user:
username: seata
password: seata
-
+
seata:
config:
# support: nacos, consul, apollo, zk, etcd3
@@ -211,18 +179,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v2.2/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v2.2/ops/deploy-by-kubernetes.md
index eb94ff8edcb..cb53fdcd402 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v2.2/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v2.2/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -60,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: apache/seata-server:2.1.0
+ image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
+
+### Environment Variables
-### Use specify configuration file
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
+
+
+### Using Custom Configuration Files
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
- Deployment
@@ -114,11 +106,8 @@ spec:
spec:
containers:
- name: seata-server
- image: apache/seata-server:2.1.0
+ image: docker.io/apache/seata-server:2.2.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -170,21 +138,21 @@ data:
application.yml: |
server:
port: 7091
-
+
spring:
application:
name: seata-server
-
+
logging:
config: classpath:logback-spring.xml
file:
- path: ${user.home}/logs/seata
-
+ path: ${log.home:${user.home}/logs/seata}
+
console:
user:
username: seata
password: seata
-
+
seata:
config:
# support: nacos, consul, apollo, zk, etcd3
@@ -211,18 +179,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/en/docusaurus-plugin-content-docs/version-v2.3/ops/deploy-by-kubernetes.md b/i18n/en/docusaurus-plugin-content-docs/version-v2.3/ops/deploy-by-kubernetes.md
index eb94ff8edcb..dc78f4cba34 100644
--- a/i18n/en/docusaurus-plugin-content-docs/version-v2.3/ops/deploy-by-kubernetes.md
+++ b/i18n/en/docusaurus-plugin-content-docs/version-v2.3/ops/deploy-by-kubernetes.md
@@ -1,21 +1,17 @@
---
hidden: true
-title: Deploy Seata Server By Kubernetes
+title: Deploy with Kubernetes
keywords: [kubernetes,ops]
-description: Deploy Seata Server By Kubernetes
+description: Deploy Seata Server using Kubernetes
author: helloworlde
-date: 2022-07-23
+date: 2019-12-01
---
-# Deploy Seata Server By Kubernetes
-
-### Last Updated
-
-- 2022.07.23 适配 Seata 1.5.x 增加控制台默认端口7091;seata-sever 在1.5.x 以下版本读取conf配置更改为yml配置文件。
+# Deploy Seata Server with Kubernetes
### Quick Start
-Create file `seata-server.yaml`
+Create `seata-server.yaml`
```yaml
apiVersion: v1
@@ -31,11 +27,7 @@ spec:
- port: 8091
nodePort: 30091
protocol: TCP
- name: service
- - port: 7091
- nodePort: 30092
- protocol: TCP
- name: console
+ name: http
selector:
k8s-app: seata-server
@@ -60,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: apache/seata-server:2.1.0
+ image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -68,12 +60,9 @@ spec:
- name: STORE_MODE
value: file
ports:
- - name: service
+ - name: http
containerPort: 8091
protocol: TCP
- - name: console
- containerPort: 7091
- protocol: TCP
```
@@ -82,15 +71,18 @@ spec:
$ kubectl apply -f seata-server.yaml
```
-## Custom configuration
-### Environment
-The environment is same with Docker, can reference [Deploy Seata Server By Docker](./deploy-by-docker)
+## Custom Configuration
+
+### Environment Variables
-### Use specify configuration file
+The supported environment variables are the same as Docker. You can refer to [Deploy Seata Server with Docker](./deploy-by-docker)
+
+
+
+### Using Custom Configuration Files
-Can specify configuration file by mount files or use ConfigMap, and then need specify environment `SEATA_CONFIG_NAME`, the value need start with `file:`, like `file:/root/seata-config/registry`
- Deployment
@@ -114,11 +106,8 @@ spec:
spec:
containers:
- name: seata-server
- image: apache/seata-server:2.1.0
+ image: docker.io/apache/seata-server:2.3.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/seata-server/conf/
ports:
- name: service
containerPort: 8091
@@ -126,42 +115,21 @@ spec:
- name: console
containerPort: 7091
protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
-1.5.x 以下版本 ConfigMap
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: seata-server-config
-data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "127.0.0.1:8848"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "127.0.0.1:8848"
- group = "SEATA_GROUP"
- }
- }
-
----
-1.5.x 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -170,21 +138,21 @@ data:
application.yml: |
server:
port: 7091
-
+
spring:
application:
name: seata-server
-
+
logging:
config: classpath:logback-spring.xml
file:
- path: ${user.home}/logs/seata
-
+ path: ${log.home:${user.home}/logs/seata}
+
console:
user:
username: seata
password: seata
-
+
seata:
config:
# support: nacos, consul, apollo, zk, etcd3
@@ -211,18 +179,7 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
+
security:
secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
tokenValidityInMilliseconds: 1800000
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/ops/deploy-by-kubernetes.md
index b17c9688b16..8c941f69b1a 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/ops/deploy-by-kubernetes.md
@@ -52,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/apache/seata-server:latest
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -130,11 +130,6 @@ spec:
- name: seata-config
configMap:
name: seata-server-config
-
----
-2.3.0 版本 ConfigMap
----
-
apiVersion: v1
kind: ConfigMap
metadata:
@@ -153,11 +148,6 @@ data:
file:
path: ${log.home:${user.home}/logs/seata}
- console:
- user:
- username: seata
- password: seata
-
seata:
config:
# support: nacos, consul, apollo, zk, etcd3
@@ -184,26 +174,5 @@ data:
##if use MSE Nacos with auth, mutex with username/password attribute
#access-key: ""
#secret-key: ""
- store:
- # support: file 、 db 、 redis
- mode: db
- db:
- datasource: druid
- db-type: mysql
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://xxx:3306/seata
- user: xxx
- password: xxx
- min-conn: 5
- max-conn: 100
- security:
- secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
- tokenValidityInMilliseconds: 1800000
- ignore:
- urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
-```
-
-
-
-
+```
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5/ops/deploy-by-kubernetes.md
index d7d410fbccf..3a8b3a2ebdc 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5/ops/deploy-by-kubernetes.md
@@ -52,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:1.5.2
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -83,7 +83,6 @@ $ kubectl apply -f seata-server.yaml
### 使用自定义配置文件
-指定配置文件可以通过挂载文件或使用 ConfigMap 的方式实现,挂载后需要通过指定 `SEATA_CONFIG_NAME` 指定配置文件位置,并且环境变量的值需要以`file:`开始, 如: `file:/root/seata-config/registry`
- Deployment
@@ -109,45 +108,81 @@ spec:
- name: seata-server
image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${user.home}/logs/seata
+
+ console:
+ user:
+ username: seata
+ password: seata
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+
+ security:
+ secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
+ tokenValidityInMilliseconds: 1800000
+ ignore:
+ urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
```
-
-
-
-
-
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6/ops/deploy-by-kubernetes.md
index d7d410fbccf..9623a3189ea 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.6/ops/deploy-by-kubernetes.md
@@ -83,7 +83,6 @@ $ kubectl apply -f seata-server.yaml
### 使用自定义配置文件
-指定配置文件可以通过挂载文件或使用 ConfigMap 的方式实现,挂载后需要通过指定 `SEATA_CONFIG_NAME` 指定配置文件位置,并且环境变量的值需要以`file:`开始, 如: `file:/root/seata-config/registry`
- Deployment
@@ -107,47 +106,83 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:1.6.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${user.home}/logs/seata
+
+ console:
+ user:
+ username: seata
+ password: seata
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+
+ security:
+ secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
+ tokenValidityInMilliseconds: 1800000
+ ignore:
+ urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
```
-
-
-
-
-
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.7/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.7/ops/deploy-by-kubernetes.md
index d7d410fbccf..08ec3a49d14 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.7/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.7/ops/deploy-by-kubernetes.md
@@ -83,7 +83,6 @@ $ kubectl apply -f seata-server.yaml
### 使用自定义配置文件
-指定配置文件可以通过挂载文件或使用 ConfigMap 的方式实现,挂载后需要通过指定 `SEATA_CONFIG_NAME` 指定配置文件位置,并且环境变量的值需要以`file:`开始, 如: `file:/root/seata-config/registry`
- Deployment
@@ -107,47 +106,83 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:1.7.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${log.home:${user.home}/logs/seata}
+
+ console:
+ user:
+ username: seata
+ password: seata
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+
+ security:
+ secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
+ tokenValidityInMilliseconds: 1800000
+ ignore:
+ urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
```
-
-
-
-
-
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.8/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.8/ops/deploy-by-kubernetes.md
index d7d410fbccf..2ae0caaac51 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.8/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.8/ops/deploy-by-kubernetes.md
@@ -52,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:1.8.0
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -83,7 +83,6 @@ $ kubectl apply -f seata-server.yaml
### 使用自定义配置文件
-指定配置文件可以通过挂载文件或使用 ConfigMap 的方式实现,挂载后需要通过指定 `SEATA_CONFIG_NAME` 指定配置文件位置,并且环境变量的值需要以`file:`开始, 如: `file:/root/seata-config/registry`
- Deployment
@@ -109,45 +108,81 @@ spec:
- name: seata-server
image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${log.home:${user.home}/logs/seata}
+
+ console:
+ user:
+ username: seata
+ password: seata
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+
+ security:
+ secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
+ tokenValidityInMilliseconds: 1800000
+ ignore:
+ urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
```
-
-
-
-
-
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.0/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.0/ops/deploy-by-kubernetes.md
index d7d410fbccf..2e1cdeb233f 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.0/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.0/ops/deploy-by-kubernetes.md
@@ -83,7 +83,6 @@ $ kubectl apply -f seata-server.yaml
### 使用自定义配置文件
-指定配置文件可以通过挂载文件或使用 ConfigMap 的方式实现,挂载后需要通过指定 `SEATA_CONFIG_NAME` 指定配置文件位置,并且环境变量的值需要以`file:`开始, 如: `file:/root/seata-config/registry`
- Deployment
@@ -107,47 +106,83 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/seataio/seata-server:2.0.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${log.home:${user.home}/logs/seata}
+
+ console:
+ user:
+ username: seata
+ password: seata
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+
+ security:
+ secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
+ tokenValidityInMilliseconds: 1800000
+ ignore:
+ urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
```
-
-
-
-
-
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.1/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.1/ops/deploy-by-kubernetes.md
index d7d410fbccf..08959966a2b 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.1/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.1/ops/deploy-by-kubernetes.md
@@ -83,7 +83,6 @@ $ kubectl apply -f seata-server.yaml
### 使用自定义配置文件
-指定配置文件可以通过挂载文件或使用 ConfigMap 的方式实现,挂载后需要通过指定 `SEATA_CONFIG_NAME` 指定配置文件位置,并且环境变量的值需要以`file:`开始, 如: `file:/root/seata-config/registry`
- Deployment
@@ -107,47 +106,83 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/apache/seata-server:2.1.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${log.home:${user.home}/logs/seata}
+
+ console:
+ user:
+ username: seata
+ password: seata
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+
+ security:
+ secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
+ tokenValidityInMilliseconds: 1800000
+ ignore:
+ urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
```
-
-
-
-
-
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.2/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.2/ops/deploy-by-kubernetes.md
index d7d410fbccf..a26a7de2f56 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.2/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.2/ops/deploy-by-kubernetes.md
@@ -83,7 +83,6 @@ $ kubectl apply -f seata-server.yaml
### 使用自定义配置文件
-指定配置文件可以通过挂载文件或使用 ConfigMap 的方式实现,挂载后需要通过指定 `SEATA_CONFIG_NAME` 指定配置文件位置,并且环境变量的值需要以`file:`开始, 如: `file:/root/seata-config/registry`
- Deployment
@@ -107,47 +106,83 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/apache/seata-server:2.3.0
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${log.home:${user.home}/logs/seata}
+
+ console:
+ user:
+ username: seata
+ password: seata
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+
+ security:
+ secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
+ tokenValidityInMilliseconds: 1800000
+ ignore:
+ urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
```
-
-
-
-
-
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.3/ops/deploy-by-kubernetes.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.3/ops/deploy-by-kubernetes.md
index d7d410fbccf..4c5b10e2a4b 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.3/ops/deploy-by-kubernetes.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-v2.3/ops/deploy-by-kubernetes.md
@@ -52,7 +52,7 @@ spec:
spec:
containers:
- name: seata-server
- image: docker.io/seataio/seata-server:latest
+ image: docker.io/apache/seata-server:2.3.0
imagePullPolicy: IfNotPresent
env:
- name: SEATA_PORT
@@ -83,7 +83,6 @@ $ kubectl apply -f seata-server.yaml
### 使用自定义配置文件
-指定配置文件可以通过挂载文件或使用 ConfigMap 的方式实现,挂载后需要通过指定 `SEATA_CONFIG_NAME` 指定配置文件位置,并且环境变量的值需要以`file:`开始, 如: `file:/root/seata-config/registry`
- Deployment
@@ -109,45 +108,81 @@ spec:
- name: seata-server
image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-server-config
-
----
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${log.home:${user.home}/logs/seata}
+
+ console:
+ user:
+ username: seata
+ password: seata
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+
+ security:
+ secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
+ tokenValidityInMilliseconds: 1800000
+ ignore:
+ urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login
```
-
-
-
-
-
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org