args property
Immutable. Specifies arguments for the command that runs when the container
starts. This overrides the container's
CMD. Specify
this field as an array of executable and arguments, similar to a Docker
CMD's "default parameters" form.
If you don't specify this field but do specify the
command
field, then the command from the command field runs without any
additional arguments. See the Kubernetes documentation about how the
command and args fields interact with a container's ENTRYPOINT and
CMD.
If you don't specify this field and don't specify the command field,
then the container's
ENTRYPOINT and
CMD determine what runs based on their default behavior. See the Docker
documentation about how CMD and ENTRYPOINT
interact.
In this field, you can reference environment variables
set by Vertex
AI
and environment variables set in the
env field. You
cannot reference environment variables set in the Docker image. In order
for environment variables to be expanded, reference them by using the
following syntax:
$(VARIABLE_NAME)
Note that this differs from Bash variable expansion, which does not use
parentheses. If a variable cannot be resolved, the reference in the input
string is used unchanged. To avoid variable expansion, you can escape this
syntax with $$; for example:
$$(VARIABLE_NAME)
This field corresponds to the args field of the Kubernetes Containers
v1 core
API.
Implementation
final List<String> args;