Class: Google::Container::V1::Cluster

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

Overview

A Google Container Engine cluster.

Defined Under Namespace

Modules: Status

Instance Attribute Summary collapse

Instance Attribute Details

#addons_configGoogle::Container::V1::AddonsConfig

Returns Configurations for the various addons available to run in the cluster.

Returns:



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#cluster_ipv4_cidrString

Returns The IP address range of the container pods in this cluster, in CIDR notation (e.g. +10.96.0.0/14+). Leave blank to have one automatically chosen or specify a +/14+ block in +10.0.0.0/8+.

Returns:

  • (String)

    The IP address range of the container pods in this cluster, in CIDR notation (e.g. +10.96.0.0/14+). Leave blank to have one automatically chosen or specify a +/14+ block in +10.0.0.0/8+.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#create_timeString

Returns [Output only] The time the cluster was created, in RFC3339 text format.

Returns:

  • (String)

    [Output only] The time the cluster was created, in RFC3339 text format.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#current_master_versionString

Returns [Output only] The current software version of the master endpoint.

Returns:

  • (String)

    [Output only] The current software version of the master endpoint.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#current_node_countInteger

Returns [Output only] The number of nodes currently in the cluster.

Returns:

  • (Integer)

    [Output only] The number of nodes currently in the cluster.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#current_node_versionString

Returns [Output only] The current version of the node software components. If they are currently at multiple versions because they're in the process of being upgraded, this reflects the minimum version of all nodes.

Returns:

  • (String)

    [Output only] The current version of the node software components. If they are currently at multiple versions because they're in the process of being upgraded, this reflects the minimum version of all nodes.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#descriptionString

Returns An optional description of this cluster.

Returns:

  • (String)

    An optional description of this cluster.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#enable_kubernetes_alphatrue, false

Returns Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.

Returns:

  • (true, false)

    Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#endpointString

Returns [Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at +https://username:password@endpoint/+.

See the +masterAuth+ property of this resource for username and password information.

Returns:

  • (String)

    [Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at +https://username:password@endpoint/+.

    See the +masterAuth+ property of this resource for username and password information.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#expire_timeString

Returns [Output only] The time the cluster will be automatically deleted in RFC3339 text format.

Returns:

  • (String)

    [Output only] The time the cluster will be automatically deleted in RFC3339 text format.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#initial_cluster_versionString

Returns The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion.

Returns:

  • (String)

    The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#initial_node_countInteger

Returns The number of nodes to create in this cluster. You must ensure that your Compute Engine resource quota is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time.

Returns:

  • (Integer)

    The number of nodes to create in this cluster. You must ensure that your Compute Engine resource quota is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#instance_group_urlsArray<String>

Returns Deprecated. Use node_pools.instance_group_urls.

Returns:

  • (Array<String>)

    Deprecated. Use node_pools.instance_group_urls.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#ip_allocation_policyGoogle::Container::V1::IPAllocationPolicy

Returns Configuration for cluster IP allocation.

Returns:



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#label_fingerprintString

Returns The fingerprint of the set of labels for this cluster.

Returns:

  • (String)

    The fingerprint of the set of labels for this cluster.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#legacy_abacGoogle::Container::V1::LegacyAbac

Returns Configuration for the legacy ABAC authorization mode.

Returns:



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#locationsArray<String>

Returns The list of Google Compute Engine locations in which the cluster's nodes should be located.

Returns:

  • (Array<String>)

    The list of Google Compute Engine locations in which the cluster's nodes should be located.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#logging_serviceString

Returns The logging service the cluster should use to write logs. Currently available options:

  • +logging.googleapis.com+ - the Google Cloud Logging service.
  • +none+ - no logs will be exported from the cluster.
  • if left as an empty string,+logging.googleapis.com+ will be used.

Returns:

  • (String)

    The logging service the cluster should use to write logs. Currently available options:

    • +logging.googleapis.com+ - the Google Cloud Logging service.
    • +none+ - no logs will be exported from the cluster.
    • if left as an empty string,+logging.googleapis.com+ will be used.


530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#maintenance_policyGoogle::Container::V1::MaintenancePolicy

Returns Configure the maintenance policy for this cluster.

Returns:



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#master_authGoogle::Container::V1::MasterAuth

Returns The authentication information for accessing the master endpoint.

Returns:



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#master_authorized_networks_configGoogle::Container::V1::MasterAuthorizedNetworksConfig

Returns Master authorized networks is a Beta feature. The configuration options for master authorized networks feature.

Returns:



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#monitoring_serviceString

Returns The monitoring service the cluster should use to write metrics. Currently available options:

  • +monitoring.googleapis.com+ - the Google Cloud Monitoring service.
  • +none+ - no metrics will be exported from the cluster.
  • if left as an empty string, +monitoring.googleapis.com+ will be used.

Returns:

  • (String)

    The monitoring service the cluster should use to write metrics. Currently available options:

    • +monitoring.googleapis.com+ - the Google Cloud Monitoring service.
    • +none+ - no metrics will be exported from the cluster.
    • if left as an empty string, +monitoring.googleapis.com+ will be used.


530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#nameString

Returns The name of this cluster. The name must be unique within this project and zone, and can be up to 40 characters with the following restrictions:

  • Lowercase letters, numbers, and hyphens only.
  • Must start with a letter.
  • Must end with a number or a letter.

Returns:

  • (String)

    The name of this cluster. The name must be unique within this project and zone, and can be up to 40 characters with the following restrictions:

    • Lowercase letters, numbers, and hyphens only.
    • Must start with a letter.
    • Must end with a number or a letter.


530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#networkString

Returns The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the +default+ network will be used.

Returns:

  • (String)

    The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the +default+ network will be used.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#network_policyGoogle::Container::V1::NetworkPolicy

Returns Configuration options for the NetworkPolicy feature.

Returns:



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#node_configGoogle::Container::V1::NodeConfig

Returns Parameters used in creating the cluster's nodes. See +nodeConfig+ for the description of its properties. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool.

If unspecified, the defaults are used.

Returns:

  • (Google::Container::V1::NodeConfig)

    Parameters used in creating the cluster's nodes. See +nodeConfig+ for the description of its properties. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool.

    If unspecified, the defaults are used.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#node_ipv4_cidr_sizeInteger

Returns [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the +container_ipv4_cidr+ range.

Returns:

  • (Integer)

    [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the +container_ipv4_cidr+ range.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#node_poolsArray<Google::Container::V1::NodePool>

Returns The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

Returns:

  • (Array<Google::Container::V1::NodePool>)

    The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#resource_labelsHash{String => String}

Returns The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

Returns:

  • (Hash{String => String})

    The resource labels for the cluster to use to annotate any related Google Compute Engine resources.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

Returns [Output only] Server-defined URL for the resource.

Returns:

  • (String)

    [Output only] Server-defined URL for the resource.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#services_ipv4_cidrString

Returns [Output only] The IP address range of the Kubernetes services in this cluster, in CIDR notation (e.g. +1.2.3.4/29+). Service addresses are typically put in the last +/16+ from the container CIDR.

Returns:

  • (String)

    [Output only] The IP address range of the Kubernetes services in this cluster, in CIDR notation (e.g. +1.2.3.4/29+). Service addresses are typically put in the last +/16+ from the container CIDR.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#statusGoogle::Container::V1::Cluster::Status

Returns [Output only] The current status of this cluster.

Returns:



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#status_messageString

Returns [Output only] Additional information about the current status of this cluster, if available.

Returns:

  • (String)

    [Output only] Additional information about the current status of this cluster, if available.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#subnetworkString

Returns The name of the Google Compute Engine subnetwork to which the cluster is connected.

Returns:

  • (String)

    The name of the Google Compute Engine subnetwork to which the cluster is connected.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end

#zoneString

Returns [Output only] The name of the Google Compute Engine zone in which the cluster resides.

Returns:

  • (String)

    [Output only] The name of the Google Compute Engine zone in which the cluster resides.



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb', line 530

class Cluster
  # The current status of the cluster.
  module Status
    # Not set.
    STATUS_UNSPECIFIED = 0

    # The PROVISIONING state indicates the cluster is being created.
    PROVISIONING = 1

    # The RUNNING state indicates the cluster has been created and is fully
    # usable.
    RUNNING = 2

    # The RECONCILING state indicates that some work is actively being done on
    # the cluster, such as upgrading the master or node software. Details can
    # be found in the +statusMessage+ field.
    RECONCILING = 3

    # The STOPPING state indicates the cluster is being deleted.
    STOPPING = 4

    # The ERROR state indicates the cluster may be unusable. Details
    # can be found in the +statusMessage+ field.
    ERROR = 5
  end
end