You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
867 B
YAML
43 lines
867 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: seata-server
|
|
labels:
|
|
k8s-app: seata-server
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 8091
|
|
name: server
|
|
selector:
|
|
k8s-app: seata-server
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: seata-server
|
|
labels:
|
|
k8s-app: seata-server
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: seata-server
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: seata-server
|
|
spec:
|
|
containers:
|
|
- name: seata-server
|
|
image: registry.cn-hangzhou.aliyuncs.com/sca-community/seata-server
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: SEATA_PORT
|
|
value: "8091"
|
|
- name: STORE_MODE
|
|
value: file
|
|
ports:
|
|
- name: http
|
|
containerPort: 8091
|
|
protocol: TCP |