public final class Cluster extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Kubernetes Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Cluster() |
| Modifier and Type | Method and Description |
|---|---|
Cluster |
clone() |
AddonsConfig |
getAddonsConfig()
Configurations for the various addons available to run in the cluster.
|
AuthenticatorGroupsConfig |
getAuthenticatorGroupsConfig()
Configuration controlling RBAC group membership information.
|
ClusterAutoscaling |
getAutoscaling()
Cluster-level autoscaling configuration.
|
BinaryAuthorization |
getBinaryAuthorization()
Configuration for Binary Authorization.
|
String |
getClusterIpv4Cidr()
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.
|
List<StatusCondition> |
getConditions()
Which conditions caused the current cluster state.
|
String |
getCreateTime()
[Output only] The time the cluster was created, in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
String |
getCurrentMasterVersion()
[Output only] The current software version of the master endpoint.
|
Integer |
getCurrentNodeCount()
[Output only] The number of nodes currently in the cluster.
|
String |
getCurrentNodeVersion()
[Output only] Deprecated, use [NodePools.version](/kubernetes-
engine/docs/reference/rest/v1/projects.zones.clusters.nodePools) instead.
|
DatabaseEncryption |
getDatabaseEncryption()
Configuration of etcd encryption.
|
MaxPodsConstraint |
getDefaultMaxPodsConstraint()
The default constraint on the maximum number of pods that can be run simultaneously on a node
in the node pool of this cluster.
|
String |
getDescription()
An optional description of this cluster.
|
Boolean |
getEnableKubernetesAlpha()
Kubernetes alpha features are enabled on this cluster.
|
Boolean |
getEnableTpu()
Enable the ability to use Cloud TPUs in this cluster.
|
String |
getEndpoint()
[Output only] The IP address of this cluster's master endpoint.
|
String |
getExpireTime()
[Output only] The time the cluster will be automatically deleted in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
String |
getInitialClusterVersion()
The initial Kubernetes version for this cluster.
|
Integer |
getInitialNodeCount()
The number of nodes to create in this cluster.
|
List<String> |
getInstanceGroupUrls()
Deprecated.
|
IPAllocationPolicy |
getIpAllocationPolicy()
Configuration for cluster IP allocation.
|
String |
getLabelFingerprint()
The fingerprint of the set of labels for this cluster.
|
LegacyAbac |
getLegacyAbac()
Configuration for the legacy ABAC authorization mode.
|
String |
getLocation()
[Output only] The name of the Google Compute Engine [zone](/compute/docs/regions-zones/regions-
zones#available) or [region](/compute/docs/regions-zones/regions-zones#available) in which the
cluster resides.
|
List<String> |
getLocations()
The list of Google Compute Engine [zones](/compute/docs/zones#available) in which the cluster's
nodes should be located.
|
String |
getLoggingService()
The logging service the cluster should use to write logs.
|
MaintenancePolicy |
getMaintenancePolicy()
Configure the maintenance policy for this cluster.
|
MasterAuth |
getMasterAuth()
The authentication information for accessing the master endpoint.
|
MasterAuthorizedNetworksConfig |
getMasterAuthorizedNetworksConfig()
The configuration options for master authorized networks feature.
|
String |
getMonitoringService()
The monitoring service the cluster should use to write metrics.
|
String |
getName()
The name of this cluster.
|
String |
getNetwork()
The name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks)
to which the cluster is connected.
|
NetworkConfig |
getNetworkConfig()
Configuration for cluster networking.
|
NetworkPolicy |
getNetworkPolicy()
Configuration options for the NetworkPolicy feature.
|
NodeConfig |
getNodeConfig()
Parameters used in creating the cluster's nodes.
|
Integer |
getNodeIpv4CidrSize()
[Output only] The size of the address space on each node for hosting containers.
|
List<NodePool> |
getNodePools()
The node pools associated with this cluster.
|
PrivateClusterConfig |
getPrivateClusterConfig()
Configuration for private cluster.
|
Map<String,String> |
getResourceLabels()
The resource labels for the cluster to use to annotate any related Google Compute Engine
resources.
|
ResourceUsageExportConfig |
getResourceUsageExportConfig()
Configuration for exporting resource usages.
|
String |
getSelfLink()
[Output only] Server-defined URL for the resource.
|
String |
getServicesIpv4Cidr()
[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.
|
ShieldedNodes |
getShieldedNodes()
Shielded Nodes configuration.
|
String |
getStatus()
[Output only] The current status of this cluster.
|
String |
getStatusMessage()
[Output only] Additional information about the current status of this cluster, if available.
|
String |
getSubnetwork()
The name of the Google Compute Engine [subnetwork](/compute/docs/subnetworks) to which the
cluster is connected.
|
String |
getTpuIpv4CidrBlock()
[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.
|
VerticalPodAutoscaling |
getVerticalPodAutoscaling()
Cluster-level Vertical Pod Autoscaling configuration.
|
WorkloadIdentityConfig |
getWorkloadIdentityConfig()
Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
|
String |
getZone()
[Output only] The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
which the cluster resides.
|
Cluster |
set(String fieldName,
Object value) |
Cluster |
setAddonsConfig(AddonsConfig addonsConfig)
Configurations for the various addons available to run in the cluster.
|
Cluster |
setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig authenticatorGroupsConfig)
Configuration controlling RBAC group membership information.
|
Cluster |
setAutoscaling(ClusterAutoscaling autoscaling)
Cluster-level autoscaling configuration.
|
Cluster |
setBinaryAuthorization(BinaryAuthorization binaryAuthorization)
Configuration for Binary Authorization.
|
Cluster |
setClusterIpv4Cidr(String clusterIpv4Cidr)
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.
|
Cluster |
setConditions(List<StatusCondition> conditions)
Which conditions caused the current cluster state.
|
Cluster |
setCreateTime(String createTime)
[Output only] The time the cluster was created, in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
Cluster |
setCurrentMasterVersion(String currentMasterVersion)
[Output only] The current software version of the master endpoint.
|
Cluster |
setCurrentNodeCount(Integer currentNodeCount)
[Output only] The number of nodes currently in the cluster.
|
Cluster |
setCurrentNodeVersion(String currentNodeVersion)
[Output only] Deprecated, use [NodePools.version](/kubernetes-
engine/docs/reference/rest/v1/projects.zones.clusters.nodePools) instead.
|
Cluster |
setDatabaseEncryption(DatabaseEncryption databaseEncryption)
Configuration of etcd encryption.
|
Cluster |
setDefaultMaxPodsConstraint(MaxPodsConstraint defaultMaxPodsConstraint)
The default constraint on the maximum number of pods that can be run simultaneously on a node
in the node pool of this cluster.
|
Cluster |
setDescription(String description)
An optional description of this cluster.
|
Cluster |
setEnableKubernetesAlpha(Boolean enableKubernetesAlpha)
Kubernetes alpha features are enabled on this cluster.
|
Cluster |
setEnableTpu(Boolean enableTpu)
Enable the ability to use Cloud TPUs in this cluster.
|
Cluster |
setEndpoint(String endpoint)
[Output only] The IP address of this cluster's master endpoint.
|
Cluster |
setExpireTime(String expireTime)
[Output only] The time the cluster will be automatically deleted in
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
Cluster |
setInitialClusterVersion(String initialClusterVersion)
The initial Kubernetes version for this cluster.
|
Cluster |
setInitialNodeCount(Integer initialNodeCount)
The number of nodes to create in this cluster.
|
Cluster |
setInstanceGroupUrls(List<String> instanceGroupUrls)
Deprecated.
|
Cluster |
setIpAllocationPolicy(IPAllocationPolicy ipAllocationPolicy)
Configuration for cluster IP allocation.
|
Cluster |
setLabelFingerprint(String labelFingerprint)
The fingerprint of the set of labels for this cluster.
|
Cluster |
setLegacyAbac(LegacyAbac legacyAbac)
Configuration for the legacy ABAC authorization mode.
|
Cluster |
setLocation(String location)
[Output only] The name of the Google Compute Engine [zone](/compute/docs/regions-zones/regions-
zones#available) or [region](/compute/docs/regions-zones/regions-zones#available) in which the
cluster resides.
|
Cluster |
setLocations(List<String> locations)
The list of Google Compute Engine [zones](/compute/docs/zones#available) in which the cluster's
nodes should be located.
|
Cluster |
setLoggingService(String loggingService)
The logging service the cluster should use to write logs.
|
Cluster |
setMaintenancePolicy(MaintenancePolicy maintenancePolicy)
Configure the maintenance policy for this cluster.
|
Cluster |
setMasterAuth(MasterAuth masterAuth)
The authentication information for accessing the master endpoint.
|
Cluster |
setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig)
The configuration options for master authorized networks feature.
|
Cluster |
setMonitoringService(String monitoringService)
The monitoring service the cluster should use to write metrics.
|
Cluster |
setName(String name)
The name of this cluster.
|
Cluster |
setNetwork(String network)
The name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks)
to which the cluster is connected.
|
Cluster |
setNetworkConfig(NetworkConfig networkConfig)
Configuration for cluster networking.
|
Cluster |
setNetworkPolicy(NetworkPolicy networkPolicy)
Configuration options for the NetworkPolicy feature.
|
Cluster |
setNodeConfig(NodeConfig nodeConfig)
Parameters used in creating the cluster's nodes.
|
Cluster |
setNodeIpv4CidrSize(Integer nodeIpv4CidrSize)
[Output only] The size of the address space on each node for hosting containers.
|
Cluster |
setNodePools(List<NodePool> nodePools)
The node pools associated with this cluster.
|
Cluster |
setPrivateClusterConfig(PrivateClusterConfig privateClusterConfig)
Configuration for private cluster.
|
Cluster |
setResourceLabels(Map<String,String> resourceLabels)
The resource labels for the cluster to use to annotate any related Google Compute Engine
resources.
|
Cluster |
setResourceUsageExportConfig(ResourceUsageExportConfig resourceUsageExportConfig)
Configuration for exporting resource usages.
|
Cluster |
setSelfLink(String selfLink)
[Output only] Server-defined URL for the resource.
|
Cluster |
setServicesIpv4Cidr(String servicesIpv4Cidr)
[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.
|
Cluster |
setShieldedNodes(ShieldedNodes shieldedNodes)
Shielded Nodes configuration.
|
Cluster |
setStatus(String status)
[Output only] The current status of this cluster.
|
Cluster |
setStatusMessage(String statusMessage)
[Output only] Additional information about the current status of this cluster, if available.
|
Cluster |
setSubnetwork(String subnetwork)
The name of the Google Compute Engine [subnetwork](/compute/docs/subnetworks) to which the
cluster is connected.
|
Cluster |
setTpuIpv4CidrBlock(String tpuIpv4CidrBlock)
[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.
|
Cluster |
setVerticalPodAutoscaling(VerticalPodAutoscaling verticalPodAutoscaling)
Cluster-level Vertical Pod Autoscaling configuration.
|
Cluster |
setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig)
Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
|
Cluster |
setZone(String zone)
[Output only] The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
which the cluster resides.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic AddonsConfig getAddonsConfig()
null for nonepublic Cluster setAddonsConfig(AddonsConfig addonsConfig)
addonsConfig - addonsConfig or null for nonepublic AuthenticatorGroupsConfig getAuthenticatorGroupsConfig()
null for nonepublic Cluster setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig authenticatorGroupsConfig)
authenticatorGroupsConfig - authenticatorGroupsConfig or null for nonepublic ClusterAutoscaling getAutoscaling()
null for nonepublic Cluster setAutoscaling(ClusterAutoscaling autoscaling)
autoscaling - autoscaling or null for nonepublic BinaryAuthorization getBinaryAuthorization()
null for nonepublic Cluster setBinaryAuthorization(BinaryAuthorization binaryAuthorization)
binaryAuthorization - binaryAuthorization or null for nonepublic String getClusterIpv4Cidr()
null for nonepublic Cluster setClusterIpv4Cidr(String clusterIpv4Cidr)
clusterIpv4Cidr - clusterIpv4Cidr or null for nonepublic List<StatusCondition> getConditions()
null for nonepublic Cluster setConditions(List<StatusCondition> conditions)
conditions - conditions or null for nonepublic String getCreateTime()
null for nonepublic Cluster setCreateTime(String createTime)
createTime - createTime or null for nonepublic String getCurrentMasterVersion()
null for nonepublic Cluster setCurrentMasterVersion(String currentMasterVersion)
currentMasterVersion - currentMasterVersion or null for nonepublic Integer getCurrentNodeCount()
null for nonepublic Cluster setCurrentNodeCount(Integer currentNodeCount)
currentNodeCount - currentNodeCount or null for nonepublic String getCurrentNodeVersion()
null for nonepublic Cluster setCurrentNodeVersion(String currentNodeVersion)
currentNodeVersion - currentNodeVersion or null for nonepublic DatabaseEncryption getDatabaseEncryption()
null for nonepublic Cluster setDatabaseEncryption(DatabaseEncryption databaseEncryption)
databaseEncryption - databaseEncryption or null for nonepublic MaxPodsConstraint getDefaultMaxPodsConstraint()
null for nonepublic Cluster setDefaultMaxPodsConstraint(MaxPodsConstraint defaultMaxPodsConstraint)
defaultMaxPodsConstraint - defaultMaxPodsConstraint or null for nonepublic String getDescription()
null for nonepublic Cluster setDescription(String description)
description - description or null for nonepublic Boolean getEnableKubernetesAlpha()
null for nonepublic Cluster setEnableKubernetesAlpha(Boolean enableKubernetesAlpha)
enableKubernetesAlpha - enableKubernetesAlpha or null for nonepublic Boolean getEnableTpu()
null for nonepublic Cluster setEnableTpu(Boolean enableTpu)
enableTpu - enableTpu or null for nonepublic String getEndpoint()
null for nonepublic Cluster setEndpoint(String endpoint)
endpoint - endpoint or null for nonepublic String getExpireTime()
null for nonepublic Cluster setExpireTime(String expireTime)
expireTime - expireTime or null for nonepublic String getInitialClusterVersion()
null for nonepublic Cluster setInitialClusterVersion(String initialClusterVersion)
initialClusterVersion - initialClusterVersion or null for nonepublic Integer getInitialNodeCount()
null for nonepublic Cluster setInitialNodeCount(Integer initialNodeCount)
initialNodeCount - initialNodeCount or null for nonepublic List<String> getInstanceGroupUrls()
null for nonepublic Cluster setInstanceGroupUrls(List<String> instanceGroupUrls)
instanceGroupUrls - instanceGroupUrls or null for nonepublic IPAllocationPolicy getIpAllocationPolicy()
null for nonepublic Cluster setIpAllocationPolicy(IPAllocationPolicy ipAllocationPolicy)
ipAllocationPolicy - ipAllocationPolicy or null for nonepublic String getLabelFingerprint()
null for nonepublic Cluster setLabelFingerprint(String labelFingerprint)
labelFingerprint - labelFingerprint or null for nonepublic LegacyAbac getLegacyAbac()
null for nonepublic Cluster setLegacyAbac(LegacyAbac legacyAbac)
legacyAbac - legacyAbac or null for nonepublic String getLocation()
null for nonepublic Cluster setLocation(String location)
location - location or null for nonepublic List<String> getLocations()
null for nonepublic Cluster setLocations(List<String> locations)
locations - locations or null for nonepublic String getLoggingService()
null for nonepublic Cluster setLoggingService(String loggingService)
loggingService - loggingService or null for nonepublic MaintenancePolicy getMaintenancePolicy()
null for nonepublic Cluster setMaintenancePolicy(MaintenancePolicy maintenancePolicy)
maintenancePolicy - maintenancePolicy or null for nonepublic MasterAuth getMasterAuth()
null for nonepublic Cluster setMasterAuth(MasterAuth masterAuth)
masterAuth - masterAuth or null for nonepublic MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig()
null for nonepublic Cluster setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig)
masterAuthorizedNetworksConfig - masterAuthorizedNetworksConfig or null for nonepublic String getMonitoringService()
null for nonepublic Cluster setMonitoringService(String monitoringService)
monitoringService - monitoringService or null for nonepublic String getName()
null for nonepublic Cluster setName(String name)
name - name or null for nonepublic String getNetwork()
null for nonepublic Cluster setNetwork(String network)
network - network or null for nonepublic NetworkConfig getNetworkConfig()
null for nonepublic Cluster setNetworkConfig(NetworkConfig networkConfig)
networkConfig - networkConfig or null for nonepublic NetworkPolicy getNetworkPolicy()
null for nonepublic Cluster setNetworkPolicy(NetworkPolicy networkPolicy)
networkPolicy - networkPolicy or null for nonepublic NodeConfig getNodeConfig()
null for nonepublic Cluster setNodeConfig(NodeConfig nodeConfig)
nodeConfig - nodeConfig or null for nonepublic Integer getNodeIpv4CidrSize()
null for nonepublic Cluster setNodeIpv4CidrSize(Integer nodeIpv4CidrSize)
nodeIpv4CidrSize - nodeIpv4CidrSize or null for nonepublic List<NodePool> getNodePools()
null for nonepublic Cluster setNodePools(List<NodePool> nodePools)
nodePools - nodePools or null for nonepublic PrivateClusterConfig getPrivateClusterConfig()
null for nonepublic Cluster setPrivateClusterConfig(PrivateClusterConfig privateClusterConfig)
privateClusterConfig - privateClusterConfig or null for nonepublic Map<String,String> getResourceLabels()
null for nonepublic Cluster setResourceLabels(Map<String,String> resourceLabels)
resourceLabels - resourceLabels or null for nonepublic ResourceUsageExportConfig getResourceUsageExportConfig()
null for nonepublic Cluster setResourceUsageExportConfig(ResourceUsageExportConfig resourceUsageExportConfig)
resourceUsageExportConfig - resourceUsageExportConfig or null for nonepublic String getSelfLink()
null for nonepublic Cluster setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getServicesIpv4Cidr()
null for nonepublic Cluster setServicesIpv4Cidr(String servicesIpv4Cidr)
servicesIpv4Cidr - servicesIpv4Cidr or null for nonepublic ShieldedNodes getShieldedNodes()
null for nonepublic Cluster setShieldedNodes(ShieldedNodes shieldedNodes)
shieldedNodes - shieldedNodes or null for nonepublic String getStatus()
null for nonepublic Cluster setStatus(String status)
status - status or null for nonepublic String getStatusMessage()
null for nonepublic Cluster setStatusMessage(String statusMessage)
statusMessage - statusMessage or null for nonepublic String getSubnetwork()
null for nonepublic Cluster setSubnetwork(String subnetwork)
subnetwork - subnetwork or null for nonepublic String getTpuIpv4CidrBlock()
null for nonepublic Cluster setTpuIpv4CidrBlock(String tpuIpv4CidrBlock)
tpuIpv4CidrBlock - tpuIpv4CidrBlock or null for nonepublic VerticalPodAutoscaling getVerticalPodAutoscaling()
null for nonepublic Cluster setVerticalPodAutoscaling(VerticalPodAutoscaling verticalPodAutoscaling)
verticalPodAutoscaling - verticalPodAutoscaling or null for nonepublic WorkloadIdentityConfig getWorkloadIdentityConfig()
null for nonepublic Cluster setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig)
workloadIdentityConfig - workloadIdentityConfig or null for nonepublic String getZone()
null for nonepublic Cluster setZone(String zone)
zone - zone or null for nonepublic Cluster set(String fieldName, Object value)
set in class GenericJsonpublic Cluster clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.