Class: Google::Cloud::Run::V2::Container

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#args::Array<::String>

Returns Arguments to the entrypoint. The docker image's CMD is used if this is not provided.

Returns:

  • (::Array<::String>)

    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.

Returns:

  • (::Array<::String>)

    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.

Returns:

  • (::Array<::String>)

    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.

Returns:



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.

Returns:

  • (::String)

    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.

Returns:



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).

Returns:

  • (::String)

    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.

Returns:

  • (::Array<::Google::Cloud::Run::V2::ContainerPort>)

    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.

Returns:



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.

Returns:

  • (::Google::Cloud::Run::V2::Probe)

    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.

Returns:



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.

Returns:

  • (::String)

    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