Class: Google::Cloud::Run::V2::Container
- Inherits:
-
Object
- Object
- Google::Cloud::Run::V2::Container
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/run/v2/k8s.min.rb
Overview
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 can be supplied by the system to the container at runtime.
Instance Attribute Summary collapse
-
#args ⇒ ::Array<::String>
Arguments to the entrypoint.
-
#command ⇒ ::Array<::String>
Entrypoint array.
-
#depends_on ⇒ ::Array<::String>
Names of the containers that must start before this container.
-
#env ⇒ ::Array<::Google::Cloud::Run::V2::EnvVar>
List of environment variables to set in the container.
-
#image ⇒ ::String
Required.
-
#liveness_probe ⇒ ::Google::Cloud::Run::V2::Probe
Periodic probe of container liveness.
-
#name ⇒ ::String
Name of the container specified as a DNS_LABEL (RFC 1123).
-
#ports ⇒ ::Array<::Google::Cloud::Run::V2::ContainerPort>
List of ports to expose from the container.
-
#resources ⇒ ::Google::Cloud::Run::V2::ResourceRequirements
Compute Resource requirements by this container.
-
#startup_probe ⇒ ::Google::Cloud::Run::V2::Probe
Startup probe of application within the container.
-
#volume_mounts ⇒ ::Array<::Google::Cloud::Run::V2::VolumeMount>
Volume to mount into the container's filesystem.
-
#working_dir ⇒ ::String
Container's working directory.
Instance Attribute Details
#args ⇒ ::Array<::String>
Returns Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#command ⇒ ::Array<::String>
Returns Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#depends_on ⇒ ::Array<::String>
Returns Names of the containers that must start before this container.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#env ⇒ ::Array<::Google::Cloud::Run::V2::EnvVar>
Returns List of environment variables to set in the container.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#image ⇒ ::String
Returns Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#liveness_probe ⇒ ::Google::Cloud::Run::V2::Probe
Returns Periodic probe of container liveness. Container will be restarted if the probe fails.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns Name of the container specified as a DNS_LABEL (RFC 1123).
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#ports ⇒ ::Array<::Google::Cloud::Run::V2::ContainerPort>
Returns 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.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#resources ⇒ ::Google::Cloud::Run::V2::ResourceRequirements
Returns Compute Resource requirements by this container.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#startup_probe ⇒ ::Google::Cloud::Run::V2::Probe
Returns Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#volume_mounts ⇒ ::Array<::Google::Cloud::Run::V2::VolumeMount>
Returns Volume to mount into the container's filesystem.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#working_dir ⇒ ::String
Returns Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
80 81 82 83 |
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 80 class Container include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |