* 描述问题
直接源码运行试过可以,部署在K3S上报错。
昨天尝试了一天,一直卡在
浏览器打开请求报错:
注:数据库已提前初始化好。
* 运行环境
- NocoBase 版本:
1.3.25-beta
- 数据库种类与版本:
mysql 8
- 操作系统:
-浏览器及版本
- 部署方式:
K3S
- Docker 镜像版本:
1.3.25-beta
- NodeJS 版本: -
如何重现
部署yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nocobase
labels:
app: nocobase
spec:
replicas: 1
selector:
matchLabels:
app: nocobase
template:
metadata:
labels:
app: nocobase
spec:
containers:
- name: nocobase
image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:1.3.25-beta
ports:
- containerPort: 80
volumeMounts:
- name: nocobase-persistent-storage
mountPath: /app/nocobase/storage
subPath: nocobase
env:
- name: APP_KEY
value: ******
- name: DB_DIALECT
value: mysql
- name: DB_HOST
value: "192.168.*.*"
- name: DB_DATABASE
value: nocobase
- name: DB_USER
value: ******
- name: DB_PASSWORD
value: ******
- name: DB_UNDERSCORED
value: "true"
- name: DB_LOGGING
value: "on"
- name: TZ
value: Asia/Shanghai
volumes:
- name: nocobase-persistent-storage
persistentVolumeClaim:
claimName: pvc-smb
---
apiVersion: v1
kind: Service
metadata:
name: nocobase-service
spec:
type: NodePort
selector:
app: nocobase
ports:
- name: nocobase-service-port
protocol: TCP
port: 13000
nodePort: 13000
targetPort: 80