Class Cluster (0.5.0)

A Google Kubernetes Engine cluster. .. attribute:: name

The name of this cluster. The name must be unique within this project and location (e.g. zone or region), 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.

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. This field is deprecated, use node_pool.initial_node_count instead.

The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, username will be set to "admin", a random password will be generated, and a client certificate will be issued.

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.

The IP address range of the container pods in this cluster, in CIDR <http://en.wikipedia.org/wiki/Classless_Inter- Domain_Routing>__ 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.

The name of the Google Compute Engine subnetwork <https://cloud.google.com/compute/docs/subnetworks>__ to which the cluster is connected.

The list of Google Compute Engine zones <https://cloud.google.com/compute/docs/zones#available>__ in which the cluster's nodes should be located.

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

Configuration for the legacy ABAC authorization mode.

Configuration for cluster IP allocation.

Configure the maintenance policy for this cluster.

Cluster-level autoscaling configuration.

The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.

Configuration controlling RBAC group membership information.

Configuration of etcd encryption.

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

[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.

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

[Output only] The time the cluster was created, in RFC3339 <https://www.ietf.org/rfc/rfc3339.txt>__ text format.

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

[Output only] The IP address range of the Kubernetes services in this cluster, in CIDR <http://en.wikipedia.org/wiki/Classless_Inter- Domain_Routing>__ notation (e.g. 1.2.3.4/29). Service addresses are typically put in the last /16 from the container CIDR.

[Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.

[Output only] The name of the Google Compute Engine zone <https://cloud.google.com/compute/docs/regions-zones/regions- zones#available> or region <https://cloud.google.com/compute/docs/regions-zones/regions- zones#available> in which the cluster resides.

[Output only] The IP address range of the Cloud TPUs in this cluster, in CIDR <http://en.wikipedia.org/wiki/Classless_Inter- Domain_Routing>__ notation (e.g. 1.2.3.4/29).

Classes

ResourceLabelsEntry

API documentation for container_v1.types.Cluster.ResourceLabelsEntry class.