public sealed class Container : IMessage<Container>, IEquatable<Container>, IDeepCloneable<Container>, IBufferMessage, IMessage
A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
Implements
IMessage<Container>, IEquatable<Container>, IDeepCloneable<Container>, IBufferMessage, IMessageNamespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Constructors
Container()
public Container()
Container(Container)
public Container(Container other)
Parameter | |
---|---|
Name | Description |
other | Container |
Properties
Args
public RepeatedField<string> Args { get; }
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
Command
public RepeatedField<string> Command { get; }
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
Env
public RepeatedField<EnvVar> Env { get; }
List of environment variables to set in the container.
Property Value | |
---|---|
Type | Description |
RepeatedField<EnvVar> |
Image
public string Image { get; set; }
Required. URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
Property Value | |
---|---|
Type | Description |
String |
Name
public string Name { get; set; }
Name of the container specified as a DNS_LABEL.
Property Value | |
---|---|
Type | Description |
String |
Ports
public RepeatedField<ContainerPort> Ports { get; }
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible.
If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
Property Value | |
---|---|
Type | Description |
RepeatedField<ContainerPort> |
Resources
public ResourceRequirements Resources { get; set; }
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
Property Value | |
---|---|
Type | Description |
ResourceRequirements |
VolumeMounts
public RepeatedField<VolumeMount> VolumeMounts { get; }
Volume to mount into the container's filesystem.
Property Value | |
---|---|
Type | Description |
RepeatedField<VolumeMount> |