想在容器启动时执行下面2个shell命令
ln -s /app/setttings/appsettings.Production /app/appsettings.Production
sh run.sh
请问如何编写yaml配置文件?
使用下面的 command 与 args 配置实现了
command: ["/bin/sh"]
args: ["-c", "ln -s /app/setttings/appsettings.Production.json /app/appsettings.Production.json && sh run.sh"]
k8s生成的对应的容器配置如下
"Entrypoint": [
"/bin/sh"
]
"Cmd": [
"-c",
"ln -s /app/setttings/appsettings.Production.json /app/appsettings.Production.json && sh run.sh"
]