Class: Google::Apis::ContainerV1::EvictionGracePeriod
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::EvictionGracePeriod
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb
Overview
Eviction grace periods are grace periods for each eviction signal.
Instance Attribute Summary collapse
-
#imagefs_available ⇒ String
Optional.
-
#imagefs_inodes_free ⇒ String
Optional.
-
#memory_available ⇒ String
Optional.
-
#nodefs_available ⇒ String
Optional.
-
#nodefs_inodes_free ⇒ String
Optional.
-
#pid_available ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EvictionGracePeriod
constructor
A new instance of EvictionGracePeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EvictionGracePeriod
Returns a new instance of EvictionGracePeriod.
3056 3057 3058 |
# File 'lib/google/apis/container_v1/classes.rb', line 3056 def initialize(**args) update!(**args) end |
Instance Attribute Details
#imagefs_available ⇒ String
Optional. Grace period for eviction due to imagefs available signal. Sample
format: "10s". Must be >= 0. See https://kubernetes.io/docs/concepts/
scheduling-eviction/node-pressure-eviction/#eviction-signals
Corresponds to the JSON property imagefsAvailable
3019 3020 3021 |
# File 'lib/google/apis/container_v1/classes.rb', line 3019 def imagefs_available @imagefs_available end |
#imagefs_inodes_free ⇒ String
Optional. Grace period for eviction due to imagefs inodes free signal. Sample
format: "10s". Must be >= 0. See https://kubernetes.io/docs/concepts/
scheduling-eviction/node-pressure-eviction/#eviction-signals
Corresponds to the JSON property imagefsInodesFree
3026 3027 3028 |
# File 'lib/google/apis/container_v1/classes.rb', line 3026 def imagefs_inodes_free @imagefs_inodes_free end |
#memory_available ⇒ String
Optional. Grace period for eviction due to memory available signal. Sample
format: "10s". Must be >= 0. See https://kubernetes.io/docs/concepts/
scheduling-eviction/node-pressure-eviction/#eviction-signals
Corresponds to the JSON property memoryAvailable
3033 3034 3035 |
# File 'lib/google/apis/container_v1/classes.rb', line 3033 def memory_available @memory_available end |
#nodefs_available ⇒ String
Optional. Grace period for eviction due to nodefs available signal. Sample
format: "10s". Must be >= 0. See https://kubernetes.io/docs/concepts/
scheduling-eviction/node-pressure-eviction/#eviction-signals
Corresponds to the JSON property nodefsAvailable
3040 3041 3042 |
# File 'lib/google/apis/container_v1/classes.rb', line 3040 def nodefs_available @nodefs_available end |
#nodefs_inodes_free ⇒ String
Optional. Grace period for eviction due to nodefs inodes free signal. Sample
format: "10s". Must be >= 0. See https://kubernetes.io/docs/concepts/
scheduling-eviction/node-pressure-eviction/#eviction-signals
Corresponds to the JSON property nodefsInodesFree
3047 3048 3049 |
# File 'lib/google/apis/container_v1/classes.rb', line 3047 def nodefs_inodes_free @nodefs_inodes_free end |
#pid_available ⇒ String
Optional. Grace period for eviction due to pid available signal. Sample format:
"10s". Must be >= 0. See https://kubernetes.io/docs/concepts/scheduling-
eviction/node-pressure-eviction/#eviction-signals
Corresponds to the JSON property pidAvailable
3054 3055 3056 |
# File 'lib/google/apis/container_v1/classes.rb', line 3054 def pid_available @pid_available end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3061 3062 3063 3064 3065 3066 3067 3068 |
# File 'lib/google/apis/container_v1/classes.rb', line 3061 def update!(**args) @imagefs_available = args[:imagefs_available] if args.key?(:imagefs_available) @imagefs_inodes_free = args[:imagefs_inodes_free] if args.key?(:imagefs_inodes_free) @memory_available = args[:memory_available] if args.key?(:memory_available) @nodefs_available = args[:nodefs_available] if args.key?(:nodefs_available) @nodefs_inodes_free = args[:nodefs_inodes_free] if args.key?(:nodefs_inodes_free) @pid_available = args[:pid_available] if args.key?(:pid_available) end |