Class: Google::Container::V1::MasterAuthorizedNetworksConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb

Overview

Master authorized networks is a Beta feature. Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs.

Defined Under Namespace

Classes: CidrBlock

Instance Attribute Summary collapse

Instance Attribute Details

#cidr_blocksArray<Google::Container::V1::MasterAuthorizedNetworksConfig::CidrBlock>

Returns cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.

Returns:



231
232
233
234
235
236
237
238
239
240
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 231

class MasterAuthorizedNetworksConfig
  # CidrBlock contains an optional name and one CIDR block.
  # @!attribute [rw] display_name
  #   @return [String]
  #     display_name is an optional field for users to identify CIDR blocks.
  # @!attribute [rw] cidr_block
  #   @return [String]
  #     cidr_block must be specified in CIDR notation.
  class CidrBlock; end
end

#enabledtrue, false

Returns Whether or not master authorized networks is enabled.

Returns:

  • (true, false)

    Whether or not master authorized networks is enabled.



231
232
233
234
235
236
237
238
239
240
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 231

class MasterAuthorizedNetworksConfig
  # CidrBlock contains an optional name and one CIDR block.
  # @!attribute [rw] display_name
  #   @return [String]
  #     display_name is an optional field for users to identify CIDR blocks.
  # @!attribute [rw] cidr_block
  #   @return [String]
  #     cidr_block must be specified in CIDR notation.
  class CidrBlock; end
end