Class: Google::Cloud::Run::V2::EmptyDirVolumeSource

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

In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs).

Defined Under Namespace

Modules: Medium

Instance Attribute Summary collapse

Instance Attribute Details

#medium::Google::Cloud::Run::V2::EmptyDirVolumeSource::Medium

Returns The medium on which the data is stored. Acceptable values today is only MEMORY or none. When none, the default will currently be backed by memory but could change over time. +optional.

Returns:



326
327
328
329
330
331
332
333
334
335
336
337
338
339
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 326

class EmptyDirVolumeSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The different types of medium supported for EmptyDir.
  module Medium
    # When not specified, falls back to the default implementation which
    # is currently in memory (this may change over time).
    MEDIUM_UNSPECIFIED = 0

    # Explicitly set the EmptyDir to be in memory. Uses tmpfs.
    MEMORY = 1
  end
end

#size_limit::String

Returns Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.

Returns:



326
327
328
329
330
331
332
333
334
335
336
337
338
339
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 326

class EmptyDirVolumeSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The different types of medium supported for EmptyDir.
  module Medium
    # When not specified, falls back to the default implementation which
    # is currently in memory (this may change over time).
    MEDIUM_UNSPECIFIED = 0

    # Explicitly set the EmptyDir to be in memory. Uses tmpfs.
    MEMORY = 1
  end
end