Components allow you to use the Kubernetes feature of overriding the container startup commands:
commandwhich will override the
ENTRYPOINTspecified in the Dockerfile
argswhich will override the
CMDspecified in the Dockerfile
deployments: - name: backend component: containers: - image: dscr.io/username/api-server command: - sleep args: - 9999999
The above example would start the container effectively with the following command:
For more information, please take a look at the Kubernetes documentation for setting command and args.