- 部署k8s
每个容器有个不退出的foregroud进程
- the container exists because every container needs one (and just one) foreground process.
CMD nohup /app/run.sh & sleep infinity
service 映射端口
- A Service can map any incoming port to a targetPort. By default and for convenience, the targetPort is set to the same value as the port field.