Class: Google::Cloud::Container::V1beta1::LinuxNodeConfig::SwapConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/container/v1beta1/cluster_service.rb

Overview

Configuration for swap memory on a node pool.

Defined Under Namespace

Classes: BootDiskProfile, DedicatedLocalSsdProfile, EncryptionConfig, EphemeralLocalSsdProfile

Instance Attribute Summary collapse

Instance Attribute Details

#boot_disk_profile::Google::Cloud::Container::V1beta1::LinuxNodeConfig::SwapConfig::BootDiskProfile

Returns Swap on the node's boot disk.

Note: The following fields are mutually exclusive: boot_disk_profile, ephemeral_local_ssd_profile, dedicated_local_ssd_profile. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/container/v1beta1/cluster_service.rb', line 141

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

  # Defines encryption settings for the swap space.
  # @!attribute [rw] disabled
  #   @return [::Boolean]
  #     Optional. If true, swap space will not be encrypted.
  #     Defaults to false (encrypted).
  class EncryptionConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the node's boot disk.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the boot disk
  #     size.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class BootDiskProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the local SSD shared with pod ephemeral storage.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the ephemeral
  #     local SSD capacity.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class EphemeralLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Provisions a new, separate local NVMe SSD exclusively for swap.
  # @!attribute [rw] disk_count
  #   @return [::Integer]
  #     The number of physical local NVMe SSD disks to attach.
  class DedicatedLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#dedicated_local_ssd_profile::Google::Cloud::Container::V1beta1::LinuxNodeConfig::SwapConfig::DedicatedLocalSsdProfile

Returns Provisions a new, separate local NVMe SSD exclusively for swap.

Note: The following fields are mutually exclusive: dedicated_local_ssd_profile, boot_disk_profile, ephemeral_local_ssd_profile. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/container/v1beta1/cluster_service.rb', line 141

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

  # Defines encryption settings for the swap space.
  # @!attribute [rw] disabled
  #   @return [::Boolean]
  #     Optional. If true, swap space will not be encrypted.
  #     Defaults to false (encrypted).
  class EncryptionConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the node's boot disk.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the boot disk
  #     size.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class BootDiskProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the local SSD shared with pod ephemeral storage.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the ephemeral
  #     local SSD capacity.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class EphemeralLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Provisions a new, separate local NVMe SSD exclusively for swap.
  # @!attribute [rw] disk_count
  #   @return [::Integer]
  #     The number of physical local NVMe SSD disks to attach.
  class DedicatedLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#enabled::Boolean

Returns Optional. Enables or disables swap for the node pool.

Returns:

  • (::Boolean)

    Optional. Enables or disables swap for the node pool.



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/container/v1beta1/cluster_service.rb', line 141

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

  # Defines encryption settings for the swap space.
  # @!attribute [rw] disabled
  #   @return [::Boolean]
  #     Optional. If true, swap space will not be encrypted.
  #     Defaults to false (encrypted).
  class EncryptionConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the node's boot disk.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the boot disk
  #     size.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class BootDiskProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the local SSD shared with pod ephemeral storage.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the ephemeral
  #     local SSD capacity.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class EphemeralLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Provisions a new, separate local NVMe SSD exclusively for swap.
  # @!attribute [rw] disk_count
  #   @return [::Integer]
  #     The number of physical local NVMe SSD disks to attach.
  class DedicatedLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#encryption_config::Google::Cloud::Container::V1beta1::LinuxNodeConfig::SwapConfig::EncryptionConfig

Returns Optional. If omitted, swap space is encrypted by default.

Returns:



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/container/v1beta1/cluster_service.rb', line 141

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

  # Defines encryption settings for the swap space.
  # @!attribute [rw] disabled
  #   @return [::Boolean]
  #     Optional. If true, swap space will not be encrypted.
  #     Defaults to false (encrypted).
  class EncryptionConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the node's boot disk.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the boot disk
  #     size.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class BootDiskProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the local SSD shared with pod ephemeral storage.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the ephemeral
  #     local SSD capacity.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class EphemeralLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Provisions a new, separate local NVMe SSD exclusively for swap.
  # @!attribute [rw] disk_count
  #   @return [::Integer]
  #     The number of physical local NVMe SSD disks to attach.
  class DedicatedLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#ephemeral_local_ssd_profile::Google::Cloud::Container::V1beta1::LinuxNodeConfig::SwapConfig::EphemeralLocalSsdProfile

Returns Swap on the local SSD shared with pod ephemeral storage.

Note: The following fields are mutually exclusive: ephemeral_local_ssd_profile, boot_disk_profile, dedicated_local_ssd_profile. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/container/v1beta1/cluster_service.rb', line 141

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

  # Defines encryption settings for the swap space.
  # @!attribute [rw] disabled
  #   @return [::Boolean]
  #     Optional. If true, swap space will not be encrypted.
  #     Defaults to false (encrypted).
  class EncryptionConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the node's boot disk.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the boot disk
  #     size.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class BootDiskProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Swap on the local SSD shared with pod ephemeral storage.
  # @!attribute [rw] swap_size_gib
  #   @return [::Integer]
  #     Specifies the size of the swap space in gibibytes (GiB).
  #
  #     Note: The following fields are mutually exclusive: `swap_size_gib`, `swap_size_percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] swap_size_percent
  #   @return [::Integer]
  #     Specifies the size of the swap space as a percentage of the ephemeral
  #     local SSD capacity.
  #
  #     Note: The following fields are mutually exclusive: `swap_size_percent`, `swap_size_gib`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  class EphemeralLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Provisions a new, separate local NVMe SSD exclusively for swap.
  # @!attribute [rw] disk_count
  #   @return [::Integer]
  #     The number of physical local NVMe SSD disks to attach.
  class DedicatedLocalSsdProfile
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end