7
apiVersion: apps/v1 kind: Deployment metadata: name: seata-server namespace: basic labels: k8s-app: seata-server spec: replicas: 1 selector: matchLabels: k8s-app: seata-server template: metadata: labels: k8s-app: seata-server spec: imagePullSecrets:
- name: registry-secret
containers:
- 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 containerPort: 8091 protocol: TCP volumeMounts:
- name: seata-config mountPath: /root/seata-config volumes:
- name: seata-config configMap: name: seata-server-config
- name: seata-server
image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
env:
apiVersion: v1 kind: ConfigMap metadata: name: seata-server-config namespace: basic data: registry.conf: | registry { type = "nacos" nacos { application = "seata-server" serverAddr = namespace = username = "nacos" password =
}
}
config {
type = "nacos"
nacos {
serverAddr =
namespace =
username = "nacos"
password =
dataId =
group = "DEFAULT_GROUP"
}
}
这个是我的启动文件