k8s如何部署seata(分布式事务)?
官方传送门https://seata.io/zh-cn/
快速入门SEATA
Seata 是一款开源的分布式事务解决方案,致力于提供高性能和简单易用的分布式事务服务。Seata 将为用户提供了 AT、TCC、SAGA 和 XA 事务模式,为用户打造一站式的分布式解决方案。
本文章只提供部署教程,**
话不多,但图很多。
**
kuboard 部署 SEATA
第一步:创建工作负载
第二步:基本信息
第三步:容器信息
第四步:高级设置
第五步:服务/应用路由
yaml配置
---
apiVersion: apps/v1
kind: Deployment
metadata:annotations:k8s.kuboard.cn/displayName: ''labels:k8s.kuboard.cn/layer: cloudk8s.kuboard.cn/name: yc-seata-servername: yc-seata-servernamespace: sca-devresourceVersion: '1868503'
spec:progressDeadlineSeconds: 600replicas: 1revisionHistoryLimit: 10selector:matchLabels:k8s.kuboard.cn/layer: cloudk8s.kuboard.cn/name: yc-seata-serverstrategy:rollingUpdate:maxSurge: 25%maxUnavailable: 25%type: RollingUpdatetemplate:metadata:creationTimestamp: nulllabels:k8s.kuboard.cn/layer: cloudk8s.kuboard.cn/name: yc-seata-serverspec:containers:- image: 'bldharbor.wsb003.cn/sca/yc-seata-server:2.0.0'imagePullPolicy: Alwaysname: yc-seata-serverports:- containerPort: 30095protocol: TCPresources: {}terminationMessagePath: /dev/termination-logterminationMessagePolicy: FilednsPolicy: ClusterFirstimagePullSecrets:- name: harborrestartPolicy: AlwaysschedulerName: default-schedulersecurityContext: {}terminationGracePeriodSeconds: 30---
apiVersion: v1
kind: Service
metadata:annotations: {}labels:k8s.kuboard.cn/layer: cloudk8s.kuboard.cn/name: yc-seata-servername: yc-seata-servernamespace: sca-devresourceVersion: '1868492'
spec:clusterIP: 10.233.107.82clusterIPs:- 10.233.107.82externalTrafficPolicy: ClusterinternalTrafficPolicy: ClusteripFamilies:- IPv4ipFamilyPolicy: SingleStackports:- name: rbkf6xnodePort: 30095port: 30095protocol: TCPtargetPort: 30095selector:k8s.kuboard.cn/layer: cloudk8s.kuboard.cn/name: yc-seata-serversessionAffinity: ClientIPsessionAffinityConfig:clientIP:timeoutSeconds: 10800type: NodePort