k8s容器化部署seata-server 1.6.1,在web输入ip:7091访问seata,输入application.yml(console.user.username/password)中设置的账号和密码登录没反应也没提示任何错误信息账号密码都输入seata也是这样
uyhoqukh1#
容器7091,映射端口也是一样吗?我之前也出现过这种情况后来删除重新部署就好了
icnyk63a2#
容器7091,映射端口也是一样吗?我之前也出现过这种情况后来删除重新部署就好了麻烦看看哪里需要改动application.yml端口设置如下
server: port: 7091 spring: application: name: seata-server
k8s部署脚本内容如下
apiVersion: v1 kind: Service metadata: name: seata-server namespace: default labels: k8s-app: seata-server spec: type: ClusterIP ports: - port: 8091 protocol: TCP name: service - port: 7091 protocol: TCP name: console selector: k8s-app: seata-server --- apiVersion: apps/v1 kind: Deployment metadata: name: seata-server namespace: default labels: k8s-app: seata-server spec: replicas: 3 selector: matchLabels: k8s-app: seata-server template: metadata: labels: k8s-app: seata-server spec: containers: - name: seata-server image: seataio/seata-server:1.6.1 imagePullPolicy: Always env: - name: SEATA_PORT value: "8091" - name: STORE_MODE value: db ports: - name: console containerPort: 7091 protocol: TCP - name: service containerPort: 8091 protocol: TCP volumeMounts: - mountPath: /opt/seata/logs name: azurefile subPath: seata/logs - name: seata-config mountPath: /opt/seata/conf volumes: - name: azurefile persistentVolumeClaim: claimName: xxx
j0pj023g3#
telnet xxx 7091 is it reachable? Is there any error log on the seata-server?
aij0ehis4#
All normal
bybem2ql5#
@S540J521 check the console output for browser developer mode.
5条答案
按热度按时间uyhoqukh1#
容器7091,映射端口也是一样吗?我之前也出现过这种情况后来删除重新部署就好了
icnyk63a2#
容器7091,映射端口也是一样吗?我之前也出现过这种情况后来删除重新部署就好了
麻烦看看哪里需要改动
application.yml端口设置如下
k8s部署脚本内容如下
j0pj023g3#
telnet xxx 7091 is it reachable? Is there any error log on the seata-server?
aij0ehis4#
telnet xxx 7091 is it reachable? Is there any error log on the seata-server?
All normal
bybem2ql5#
@S540J521 check the console output for browser developer mode.