KingbaseES 在K8s中部署报错:invalid value for parameter “port“
文章目录
- 背景
- 原因
- 分析
- KINGBASE_PORT 环境变量从哪里来的?
- KingbaseES 会读取 KINGBASE_PORT 环境变量?
- 解决
- 参考
背景
项目中使用 Helm 部署 KingbaseES【本质上,就是在 K8s 中部署 KingBaseES】。
之前在 Docker 中部署运行正常😁,但在 K8s 下直接报错 😂:
invalid value for parameter "port": "tcp://10.98.39.57:54321"
详细日志如下:
export KINGBASE_USER=kuser
chmod: cannot access '/home/kingbase/userdata/data': No such file or directory
The database cluster will be initialized with locale "en_US.UTF-8".
The files belonging to this database system will be owned by user "kingbase".
This user must also own the server process.
The default text search configuration will be set to "english".
The comparision of strings is case-sensitive.
Data page checksums are disabled.
fixing