XiaoMi/naftis

naftis-api Pod启动出错

anna2018 opened this issue · 0 comments

naftis-api Pod启动出错如下:
Error: failed to start container "naftis-api": Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: "--config=/etc/naftis/config/config.toml": stat --config=/etc/naftis/config/config.toml: no such file or directory"

我感觉是不是这个configmap哪里有问题,还是我的部署方式有问题?

apiVersion: v1
kind: ConfigMap
data:
config: |-
mode="debug"
[logger]
[logger.console]
color=true
prefix="[naftis]"
level="Info"
[logger.zap]
path="naftis-api.log"
level="Debug"
[db]
default="naftis:naftisIsAwesome@tcp(naftis-mysql.naftis.svc.cluster.local:3306)/naftis?charset=utf8&parseTime=True&loc=Local"
metadata:
name: naftis-config
namespace: naftis
selfLink: /api/v1/namespaces/naftis/configmaps/naftis-config