funky-eyes commented on code in PR #975: URL: https://github.com/apache/incubator-seata-website/pull/975#discussion_r2118660995
########## docs/zh-cn/ops/deploy-by-kubernetes.md: ########## @@ -109,42 +107,99 @@ 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: '1' + memory: 4Gi + requests: + cpu: 500m + 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 --- +2.3.0 版本 ConfigMap +--- + 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 Review Comment: ```suggestion path: ${log.home:${user.home}/logs/seata} ``` ########## docs/zh-cn/ops/deploy-by-kubernetes.md: ########## @@ -109,42 +107,99 @@ 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: '1' Review Comment: Recommended configuration: 2 CPUs, 4GB RAM -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org