class Google::Apis::ContainerV1::Cluster
A Google Container Engine cluster.
Attributes
Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality. Corresponds to the JSON property `addonsConfig` @return [Google::Apis::ContainerV1::AddonsConfig]
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`. Corresponds to the JSON property `clusterIpv4Cidr` @return [String]
- Output only
-
The time the cluster was created, in [RFC3339](www.ietf.
org/rfc/rfc3339.txt) text format. Corresponds to the JSON property `createTime` @return [String]
- Output only
-
The current software version of the master endpoint.
Corresponds to the JSON property `currentMasterVersion` @return [String]
- Output only
-
The number of nodes currently in the cluster.
Corresponds to the JSON property `currentNodeCount` @return [Fixnum]
- 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. Corresponds to the JSON property `currentNodeVersion` @return [String]
An optional description of this cluster. Corresponds to the JSON property `description` @return [String]
- Output only
-
The IP address of this cluster's master endpoint. The endpoint
can be accessed from the internet at `username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information. Corresponds to the JSON property `endpoint` @return [String]
- Output only
-
The software version of the master endpoint and kubelets used in
the cluster when it was first created. The version can be upgraded over time. Corresponds to the JSON property `initialClusterVersion` @return [String]
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. Corresponds to the JSON property `initialNodeCount` @return [Fixnum]
- Output only
-
The resource URLs of [instance groups](/compute/docs/instance-
groups/) associated with this cluster. Corresponds to the JSON property `instanceGroupUrls` @return [Array<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. Corresponds to the JSON property `loggingService` @return [String]
The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates. Corresponds to the JSON property `masterAuth` @return [Google::Apis::ContainerV1::MasterAuth]
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. Corresponds to the JSON property `monitoringService` @return [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. Corresponds to the JSON property `name` @return [String]
The name of the Google Compute Engine [network](/compute/docs/networks-and- firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used. Corresponds to the JSON property `network` @return [String]
Parameters that describe the nodes in a cluster. Corresponds to the JSON property `nodeConfig` @return [Google::Apis::ContainerV1::NodeConfig]
- Output only
-
The size of the address space on each node for hosting
containers. This is provisioned from within the `container_ipv4_cidr` range. Corresponds to the JSON property `nodeIpv4CidrSize` @return [Fixnum]
- Output only
-
Server-defined URL for the resource.
Corresponds to the JSON property `selfLink` @return [String]
- Output only
-
The IP address range of the Kubernetes services in this cluster,
in [CIDR](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. Corresponds to the JSON property `servicesIpv4Cidr` @return [String]
- Output only
-
The current status of this cluster.
Corresponds to the JSON property `status` @return [String]
- Output only
-
Additional information about the current status of this cluster,
if available. Corresponds to the JSON property `statusMessage` @return [String]
The name of the Google Compute Engine [subnetwork](/compute/docs/subnetworks) to which the cluster is connected. Corresponds to the JSON property `subnetwork` @return [String]
- Output only
-
The name of the Google Compute Engine [zone](/compute/docs/zones#
available) in which the cluster resides. Corresponds to the JSON property `zone` @return [String]
Public Class Methods
# File generated/google/apis/container_v1/classes.rb, line 211 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/container_v1/classes.rb, line 216 def update!(**args) @name = args[:name] if args.key?(:name) @description = args[:description] if args.key?(:description) @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) @node_config = args[:node_config] if args.key?(:node_config) @master_auth = args[:master_auth] if args.key?(:master_auth) @logging_service = args[:logging_service] if args.key?(:logging_service) @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) @network = args[:network] if args.key?(:network) @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) @addons_config = args[:addons_config] if args.key?(:addons_config) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @self_link = args[:self_link] if args.key?(:self_link) @zone = args[:zone] if args.key?(:zone) @endpoint = args[:endpoint] if args.key?(:endpoint) @initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version) @current_master_version = args[:current_master_version] if args.key?(:current_master_version) @current_node_version = args[:current_node_version] if args.key?(:current_node_version) @create_time = args[:create_time] if args.key?(:create_time) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size) @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) @current_node_count = args[:current_node_count] if args.key?(:current_node_count) end