Open phymo opened 3 years ago
Description | Docker field name | Kubernetes field name |
---|---|---|
The command run by the container | Entrypoint | command |
The arguments passed to the command | Cmd | args |
When you override the default Entrypoint and Cmd, these rules apply:
If you do not supply command
or args
for a Container, the defaults defined in the Docker image are used.
If you supply a command
but no args
for a Container, only the supplied command
is used. The default EntryPoint and the default Cmd defined in the Docker image are ignored.
If you supply only args
for a Container, the default Entrypoint defined in the Docker image is run with the args
that you supplied.
If you supply a command
and args
, the default Entrypoint and the default Cmd defined in the Docker image are ignored. Your command
is run with your args
.
Kubernetes 的端口是怎么转发的
service 暴露端口 80, target port 默认 80 到nginx, nginx 通过 pod 的localhost proxy 到 8888