seata console输入账号密码登录没反应

d4so4syb  于 2023-03-19  发布在  其他
关注(0)|答案(5)|浏览(391)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

k8s容器化部署seata-server 1.6.1,在web输入ip:7091访问seata,输入application.yml(console.user.username/password)中设置的账号和密码登录没反应也没提示任何错误信息
账号密码都输入seata也是这样

uyhoqukh

uyhoqukh1#

容器7091,映射端口也是一样吗?我之前也出现过这种情况后来删除重新部署就好了

icnyk63a

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
j0pj023g

j0pj023g3#

telnet xxx 7091 is it reachable? Is there any error log on the seata-server?

aij0ehis

aij0ehis4#

telnet xxx 7091 is it reachable? Is there any error log on the seata-server?

All normal

bybem2ql

bybem2ql5#

@S540J521 check the console output for browser developer mode.

相关问题