docs: update docs (#916)
* fix: re-run script
* test: fix noxfile
diff --git a/docs/dyn/container_v1beta1.projects.zones.clusters.html b/docs/dyn/container_v1beta1.projects.zones.clusters.html
index 58bd5ab..74a0c40 100644
--- a/docs/dyn/container_v1beta1.projects.zones.clusters.html
+++ b/docs/dyn/container_v1beta1.projects.zones.clusters.html
@@ -163,31 +163,6 @@
"addonsConfig": { # Configuration for the addons that can be automatically spun up in the # Required. The desired configurations for the various addons available to run in the
# cluster.
# cluster, enabling additional functionality.
- "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
- },
- "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
- # extension to manage hosted GCP services through the Kubernetes API
- "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
- },
- "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
- # enabled in order to enable Cloud Run addon. This option can only be enabled
- # at cluster creation time.
- "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
- },
- "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
- # When enabled, it ensures that metrics are collected into Stackdriver
- # Monitoring.
- },
"httpLoadBalancing": { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
# makes it easy to set up HTTP load balancers for services in a cluster.
# which makes it easy to set up HTTP load balancers for services in a cluster.
@@ -215,8 +190,33 @@
},
"istioConfig": { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
# microservices.
- "disabled": True or False, # Whether Istio is enabled for this cluster.
"auth": "A String", # The specified Istio auth mode, either none, or mutual TLS.
+ "disabled": True or False, # Whether Istio is enabled for this cluster.
+ },
+ "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
+ },
+ "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+ # enabled in order to enable Cloud Run addon. This option can only be enabled
+ # at cluster creation time.
+ "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
+ },
+ "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
+ # extension to manage hosted GCP services through the Kubernetes API
+ "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
+ },
+ "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+ # When enabled, it ensures that metrics are collected into Stackdriver
+ # Monitoring.
},
},
}
@@ -231,6 +231,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -238,13 +243,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -255,11 +260,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -273,19 +273,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -307,6 +307,8 @@
The object takes the form of:
{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+ "clusterId": "A String", # Required. Deprecated. The name of the cluster.
+ # This field has been deprecated and replaced by the name field.
"name": "A String", # The name (project, location, cluster id) of the cluster to complete IP
# rotation. Specified in the format `projects/*/locations/*/clusters/*`.
"projectId": "A String", # Required. Deprecated. The Google Developers Console [project ID or project
@@ -316,8 +318,6 @@
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# cluster resides. This field has been deprecated and replaced by the name
# field.
- "clusterId": "A String", # Required. Deprecated. The name of the cluster.
- # This field has been deprecated and replaced by the name field.
}
x__xgafv: string, V1 error format.
@@ -330,6 +330,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -337,13 +342,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -354,11 +359,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -372,19 +372,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -417,11 +417,34 @@
The object takes the form of:
{ # CreateClusterRequest creates a cluster.
- "projectId": "A String", # Required. Deprecated. The Google Developers Console [project ID or project
- # number](https://support.google.com/cloud/answer/6158840).
- # This field has been deprecated and replaced by the parent field.
+ "parent": "A String", # The parent (project and location) where the cluster will be created.
+ # Specified in the format `projects/*/locations/*`.
"cluster": { # A Google Kubernetes Engine cluster. # Required. A [cluster
# resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.zones.clusters)
+ "privateClusterConfig": { # Configuration options for private clusters. # Configuration for private cluster.
+ "masterIpv4CidrBlock": "A String", # The IP range in CIDR notation to use for the hosted master network. This
+ # range will be used for assigning internal IP addresses to the master or
+ # set of masters, as well as the ILB VIP. This range must not overlap with
+ # any other ranges in use within the cluster's network.
+ "enablePrivateNodes": True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
+ # given only RFC 1918 private addresses and communicate with the master via
+ # private networking.
+ "privateEndpoint": "A String", # Output only. The internal IP address of this cluster's master endpoint.
+ "enablePrivateEndpoint": True or False, # Whether the master's internal IP address is used as the cluster endpoint.
+ "peeringName": "A String", # Output only. The peering name in the customer VPC used by this cluster.
+ "masterGlobalAccessConfig": { # Configuration for controlling master global access settings. # Controls master global access settings.
+ "enabled": True or False, # Whenever master is accessible globally or not.
+ },
+ "publicEndpoint": "A String", # Output only. The external IP address of this cluster's master endpoint.
+ },
+ "shieldedNodes": { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
+ "enabled": True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
+ },
+ "verticalPodAutoscaling": { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
+ # required by Vertical Pod Autoscaler to automatically adjust
+ # the resources of pods controlled by it.
+ "enabled": True or False, # Enables vertical pod autoscaling.
+ },
"defaultMaxPodsConstraint": { # Constraints applied to pods. # 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.
@@ -441,14 +464,14 @@
# 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.
+ "enabled": True or False, # Whether or not master authorized networks is enabled.
"cidrBlocks": [ # cidr_blocks define up to 10 external networks that could access
# Kubernetes master through HTTPS.
{ # CidrBlock contains an optional name and one CIDR block.
- "displayName": "A String", # display_name is an optional field for users to identify CIDR blocks.
"cidrBlock": "A String", # cidr_block must be specified in CIDR notation.
+ "displayName": "A String", # display_name is an optional field for users to identify CIDR blocks.
},
],
- "enabled": True or False, # Whether or not master authorized networks is enabled.
},
"statusMessage": "A String", # [Output only] Additional information about the current status of this
# cluster, if available.
@@ -478,10 +501,10 @@
# leaving username unspecified (or setting it to the empty string).
},
"authenticatorGroupsConfig": { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
- "enabled": True or False, # Whether this cluster should return group membership lookups
- # during authentication using a group of security groups.
"securityGroup": "A String", # The name of the security group-of-groups to be used. Only relevant
# if enabled = true.
+ "enabled": True or False, # Whether this cluster should return group membership lookups
+ # during authentication using a group of security groups.
},
"masterIpv4CidrBlock": "A String", # The IP prefix in CIDR notation to use for the hosted master network.
# This prefix will be used for assigning private IP addresses to the
@@ -492,33 +515,12 @@
"type": "A String", # Type of the integration.
},
"currentMasterVersion": "A String", # [Output only] The current software version of the master endpoint.
+ "podSecurityPolicyConfig": { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
+ "enabled": True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+ # must be valid under a PodSecurityPolicy to be created.
+ },
"addonsConfig": { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
# cluster, enabling additional functionality.
- "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
- },
- "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
- # extension to manage hosted GCP services through the Kubernetes API
- "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
- },
- "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
- # enabled in order to enable Cloud Run addon. This option can only be enabled
- # at cluster creation time.
- "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
- },
- "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
- # When enabled, it ensures that metrics are collected into Stackdriver
- # Monitoring.
- },
"httpLoadBalancing": { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
# makes it easy to set up HTTP load balancers for services in a cluster.
# which makes it easy to set up HTTP load balancers for services in a cluster.
@@ -546,35 +548,53 @@
},
"istioConfig": { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
# microservices.
- "disabled": True or False, # Whether Istio is enabled for this cluster.
"auth": "A String", # The specified Istio auth mode, either none, or mutual TLS.
+ "disabled": True or False, # Whether Istio is enabled for this cluster.
+ },
+ "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
+ },
+ "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+ # enabled in order to enable Cloud Run addon. This option can only be enabled
+ # at cluster creation time.
+ "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
+ },
+ "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
+ # extension to manage hosted GCP services through the Kubernetes API
+ "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
+ },
+ "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+ # When enabled, it ensures that metrics are collected into Stackdriver
+ # Monitoring.
},
},
- "podSecurityPolicyConfig": { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
- "enabled": True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
- # must be valid under a PodSecurityPolicy to be created.
- },
+ "subnetwork": "A String", # The name of the Google Compute Engine
+ # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+ # the cluster is connected. On output this shows the subnetwork ID instead of
+ # the name.
"currentNodeVersion": "A String", # [Output only] Deprecated, use
# [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
# instead. 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.
- "subnetwork": "A String", # The name of the Google Compute Engine
- # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
- # the cluster is connected. On output this shows the subnetwork ID instead of
- # the name.
"maintenancePolicy": { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
- "resourceVersion": "A String", # A hash identifying the version of this policy, so that updates to fields of
- # the policy won't accidentally undo intermediate changes (and so that users
- # of the API unaware of some fields won't accidentally remove other fields).
- # Make a <code>get()</code> request to the cluster to get the current
- # resource version and include it with requests to set the policy.
"window": { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
- "dailyMaintenanceWindow": { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
- "duration": "A String", # [Output only] Duration of the time window, automatically chosen to be
- # smallest possible in the given scenario.
- "startTime": "A String", # Time within the maintenance window to start the maintenance operations.
- # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+ "maintenanceExclusions": { # Exceptions to maintenance window. Non-emergency maintenance should not
+ # occur in these windows.
+ "a_key": { # Represents an arbitrary window of time.
+ "startTime": "A String", # The time that the window first starts.
+ "endTime": "A String", # The time that the window ends. The end time should take place after the
+ # start time.
+ },
},
"recurringWindow": { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
# maintenance to occur. The time windows may be overlapping. If no
@@ -607,20 +627,23 @@
# to specify duration of the window and when it first starts.
# The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
"window": { # Represents an arbitrary window of time. # The window of the first recurrence.
+ "startTime": "A String", # The time that the window first starts.
"endTime": "A String", # The time that the window ends. The end time should take place after the
# start time.
- "startTime": "A String", # The time that the window first starts.
},
},
- "maintenanceExclusions": { # Exceptions to maintenance window. Non-emergency maintenance should not
- # occur in these windows.
- "a_key": { # Represents an arbitrary window of time.
- "endTime": "A String", # The time that the window ends. The end time should take place after the
- # start time.
- "startTime": "A String", # The time that the window first starts.
- },
+ "dailyMaintenanceWindow": { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
+ "duration": "A String", # [Output only] Duration of the time window, automatically chosen to be
+ # smallest possible in the given scenario.
+ "startTime": "A String", # Time within the maintenance window to start the maintenance operations.
+ # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
},
},
+ "resourceVersion": "A String", # A hash identifying the version of this policy, so that updates to fields of
+ # the policy won't accidentally undo intermediate changes (and so that users
+ # of the API unaware of some fields won't accidentally remove other fields).
+ # Make a <code>get()</code> request to the cluster to get the current
+ # resource version and include it with requests to set the policy.
},
"resourceLabels": { # The resource labels for the cluster to use to annotate any related
# Google Compute Engine resources.
@@ -731,13 +754,13 @@
#
# This field is only applicable with use_ip_aliases and
# create_subnetwork is false.
+ "createSubnetwork": True or False, # Whether a new subnetwork will be created automatically for the cluster.
+ #
+ # This field is only applicable when `use_ip_aliases` is true.
"useIpAliases": True or False, # Whether alias IPs will be used for pod IPs in the cluster.
# This is used in conjunction with use_routes. It cannot
# be true if use_routes is true. If both use_ip_aliases and use_routes are
# false, then the server picks the default IP allocation mode
- "createSubnetwork": True or False, # Whether a new subnetwork will be created automatically for the cluster.
- #
- # This field is only applicable when `use_ip_aliases` is true.
"subnetworkName": "A String", # A custom subnetwork name to be used if `create_subnetwork` is true. If
# this field is empty, then an automatic name will be chosen for the new
# subnetwork.
@@ -751,8 +774,6 @@
# controllers, will have statically granted permissions beyond those
# provided by the RBAC configuration or IAM.
},
- "enableTpu": True or False, # Enable the ability to use Cloud TPUs in this cluster.
- # This field is deprecated, use tpu_config.enabled instead.
"resourceUsageExportConfig": { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
# disabled when this config unspecified.
"enableNetworkEgressMetering": True or False, # Whether to enable network egress metering for this cluster. If enabled, a
@@ -766,11 +787,8 @@
"datasetId": "A String", # The ID of a BigQuery Dataset.
},
},
- "locations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # cluster's nodes should be located.
- "A String",
- ],
+ "enableTpu": True or False, # Enable the ability to use Cloud TPUs in this cluster.
+ # This field is deprecated, use tpu_config.enabled instead.
"nodePools": [ # The node pools associated with this cluster.
# This field should not be set if "node_config" or "initial_node_count" are
# specified.
@@ -780,122 +798,8 @@
# of Kubernetes labels applied to them, which may be used to reference them
# during pod scheduling. They may also be resized up or down, to accommodate
# the workload.
- "statusMessage": "A String", # [Output only] Additional information about the current status of this
- # node pool instance, if available.
- "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
- # only if a valid configuration is present.
- # adjust the size of the node pool to the current cluster usage.
- "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <=
- # max_node_count.
- "autoprovisioned": True or False, # Can this node pool be deleted automatically.
- "enabled": True or False, # Is autoscaling enabled for this node pool.
- "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
- # has to enough quota to scale up the cluster.
- },
- "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your
- # Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
- # is sufficient for this number of instances. You must also have available
- # firewall and routes quota.
- "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
- # disruption caused by an upgrade.
- #
- # maxUnavailable controls the number of nodes that can be simultaneously
- # unavailable.
- #
- # maxSurge controls the number of additional nodes that can be added to the
- # node pool temporarily for the time of the upgrade to increase the number of
- # available nodes.
- #
- # (maxUnavailable + maxSurge) determines the level of parallelism (how many
- # nodes are being upgraded at the same time).
- #
- # Note: upgrades inevitably introduce some disruption since workloads need to
- # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
- # this holds true. (Disruption stays within the limits of
- # PodDisruptionBudget, if it is configured.)
- #
- # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
- # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
- # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
- # down 3 old (not yet upgraded) nodes at the same time. This ensures that
- # there are always at least 4 nodes available.
- "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
- # of the node pool during the upgrade process.
- "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
- # the upgrade process. A node is considered available if its status is
- # Ready.
- },
- "selfLink": "A String", # [Output only] Server-defined URL for the resource.
- "locations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # NodePool's nodes should be located.
- "A String",
- ],
- "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance
- # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
- # associated with this node pool.
- "A String",
- ],
- "version": "A String", # The version of the Kubernetes of this node.
- "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool.
- "conditions": [ # Which conditions caused the current node pool state.
- { # StatusCondition describes why a cluster or a node pool has a certain status
- # (e.g., ERROR or DEGRADED).
- "code": "A String", # Machine-friendly representation of the condition
- "message": "A String", # Human-friendly representation of the condition
- },
- ],
"status": "A String", # [Output only] The status of the nodes in this pool instance.
"config": { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
- "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
- # The smallest allowed disk size is 10GB.
- #
- # If unspecified, the default disk size is 100GB.
- "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
- # workloads on the node pool.
- "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
- # workloads running on the node.
- "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
- # on the node pool.
- },
- "accelerators": [ # A list of hardware accelerators to be attached to each node.
- # See https://cloud.google.com/compute/docs/gpus for more information about
- # support for GPUs.
- { # AcceleratorConfig represents a Hardware Accelerator request.
- "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
- "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
- # [here](https://cloud.google.com/compute/docs/gpus)
- },
- ],
- "machineType": "A String", # The name of a Google Compute Engine [machine
- # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
- # `n1-standard-1`).
- #
- # If unspecified, the default machine type is
- # `n1-standard-1`.
- "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
- #
- # If unspecified, the default disk type is 'pd-standard'
- "bootDiskKmsKey": "A String", #
- # The Customer Managed Encryption Key used to encrypt the boot disk attached
- # to each node in the node pool. This should be of the form
- # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
- # For more information about protecting resources with Cloud KMS Keys please
- # see:
- # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
- "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
- "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
- #
- # Secure Boot helps ensure that the system only runs authentic software by
- # verifying the digital signature of all boot components, and halting the
- # boot process if signature verification fails.
- "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
- #
- # Enables monitoring and attestation of the boot integrity of the instance.
- # The attestation is performed against the integrity policy baseline. This
- # baseline is initially derived from the implicitly trusted boot image when
- # the instance is created.
- },
"minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be
# scheduled on the specified or newer CPU platform. Applicable values are the
# friendly names of CPU platforms, such as
@@ -903,6 +807,19 @@
# <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
# information, read [how to specify min CPU
# platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
+ "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
+ #
+ # Enables monitoring and attestation of the boot integrity of the instance.
+ # The attestation is performed against the integrity policy baseline. This
+ # baseline is initially derived from the implicitly trusted boot image when
+ # the instance is created.
+ "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
+ #
+ # Secure Boot helps ensure that the system only runs authentic software by
+ # verifying the digital signature of all boot components, and halting the
+ # boot process if signature verification fails.
+ },
"preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See:
# https://cloud.google.com/compute/docs/instances/preemptible for more
# inforamtion about preemptible VM instances.
@@ -1001,9 +918,9 @@
# See
# [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
# for more information, including usage and the valid values.
- "key": "A String", # Key for taint.
- "value": "A String", # Value for taint.
"effect": "A String", # Effect for taint.
+ "value": "A String", # Value for taint.
+ "key": "A String", # Key for taint.
},
],
"labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
@@ -1016,16 +933,52 @@
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
"a_key": "A String",
},
+ "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
+ # The smallest allowed disk size is 10GB.
+ #
+ # If unspecified, the default disk size is 100GB.
+ "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
+ # workloads on the node pool.
+ "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
+ # workloads running on the node.
+ "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
+ # on the node pool.
+ },
+ "accelerators": [ # A list of hardware accelerators to be attached to each node.
+ # See https://cloud.google.com/compute/docs/gpus for more information about
+ # support for GPUs.
+ { # AcceleratorConfig represents a Hardware Accelerator request.
+ "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
+ # [here](https://cloud.google.com/compute/docs/gpus)
+ "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
+ },
+ ],
+ "machineType": "A String", # The name of a Google Compute Engine [machine
+ # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
+ # `n1-standard-1`).
+ #
+ # If unspecified, the default machine type is
+ # `n1-standard-1`.
+ "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+ #
+ # If unspecified, the default disk type is 'pd-standard'
+ "bootDiskKmsKey": "A String", #
+ # The Customer Managed Encryption Key used to encrypt the boot disk attached
+ # to each node in the node pool. This should be of the form
+ # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+ # For more information about protecting resources with Cloud KMS Keys please
+ # see:
+ # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
},
- "name": "A String", # The name of the node pool.
"maxPodsConstraint": { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
# simultaneously on a node in the node pool.
"maxPodsPerNode": "A String", # Constraint enforced on the max num of pods per node.
},
+ "name": "A String", # The name of the node pool.
"management": { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
# node pool.
- "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"autoRepair": True or False, # Whether the nodes will be automatically repaired.
+ "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
# the Auto Upgrades will proceed.
"description": "A String", # [Output only] This field is set when upgrades are about to commence
@@ -1035,19 +988,79 @@
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
},
},
+ "statusMessage": "A String", # [Output only] Additional information about the current status of this
+ # node pool instance, if available.
+ "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
+ # only if a valid configuration is present.
+ # adjust the size of the node pool to the current cluster usage.
+ "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+ # has to enough quota to scale up the cluster.
+ "autoprovisioned": True or False, # Can this node pool be deleted automatically.
+ "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <=
+ # max_node_count.
+ "enabled": True or False, # Is autoscaling enabled for this node pool.
+ },
+ "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your
+ # Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+ # is sufficient for this number of instances. You must also have available
+ # firewall and routes quota.
+ "locations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # NodePool's nodes should be located.
+ "A String",
+ ],
+ "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
+ # disruption caused by an upgrade.
+ #
+ # maxUnavailable controls the number of nodes that can be simultaneously
+ # unavailable.
+ #
+ # maxSurge controls the number of additional nodes that can be added to the
+ # node pool temporarily for the time of the upgrade to increase the number of
+ # available nodes.
+ #
+ # (maxUnavailable + maxSurge) determines the level of parallelism (how many
+ # nodes are being upgraded at the same time).
+ #
+ # Note: upgrades inevitably introduce some disruption since workloads need to
+ # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+ # this holds true. (Disruption stays within the limits of
+ # PodDisruptionBudget, if it is configured.)
+ #
+ # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+ # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+ # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+ # down 3 old (not yet upgraded) nodes at the same time. This ensures that
+ # there are always at least 4 nodes available.
+ "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
+ # the upgrade process. A node is considered available if its status is
+ # Ready.
+ "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
+ # of the node pool during the upgrade process.
+ },
+ "selfLink": "A String", # [Output only] Server-defined URL for the resource.
+ "version": "A String", # The version of the Kubernetes of this node.
+ "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance
+ # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+ # associated with this node pool.
+ "A String",
+ ],
+ "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool.
+ "conditions": [ # Which conditions caused the current node pool state.
+ { # StatusCondition describes why a cluster or a node pool has a certain status
+ # (e.g., ERROR or DEGRADED).
+ "code": "A String", # Machine-friendly representation of the condition
+ "message": "A String", # Human-friendly representation of the condition
+ },
+ ],
},
],
+ "locations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # cluster's nodes should be located.
+ "A String",
+ ],
"selfLink": "A String", # [Output only] Server-defined URL for the resource.
- "servicesIpv4Cidr": "A String", # [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.
- "networkPolicy": { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
- # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
- "enabled": True or False, # Whether network policy is enabled on the cluster.
- "provider": "A String", # The selected network policy provider.
- },
"releaseChannel": { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
# subscribed to. Release channels are arranged in order of risk and
# frequency of updates.
@@ -1058,6 +1071,16 @@
# fields (e.g. current_master_version) return an error.
"channel": "A String", # channel specifies which release channel the cluster is subscribed to.
},
+ "networkPolicy": { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
+ # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+ "provider": "A String", # The selected network policy provider.
+ "enabled": True or False, # Whether network policy is enabled on the cluster.
+ },
+ "servicesIpv4Cidr": "A String", # [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.
"enableKubernetesAlpha": True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
# API groups (e.g. v1beta1) and features that may not be production ready in
# the kubernetes version of the master and nodes.
@@ -1105,8 +1128,8 @@
"workloadIdentityConfig": { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
# policies.
# policies.
- "identityNamespace": "A String", # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
"workloadPool": "A String", # The workload pool to attach all Kubernetes service accounts to.
+ "identityNamespace": "A String", # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
},
"zone": "A String", # [Output only] The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
@@ -1135,55 +1158,6 @@
#
# If unspecified, the defaults are used.
# This field is deprecated, use node_pool.config instead.
- "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
- # The smallest allowed disk size is 10GB.
- #
- # If unspecified, the default disk size is 100GB.
- "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
- # workloads on the node pool.
- "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
- # workloads running on the node.
- "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
- # on the node pool.
- },
- "accelerators": [ # A list of hardware accelerators to be attached to each node.
- # See https://cloud.google.com/compute/docs/gpus for more information about
- # support for GPUs.
- { # AcceleratorConfig represents a Hardware Accelerator request.
- "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
- "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
- # [here](https://cloud.google.com/compute/docs/gpus)
- },
- ],
- "machineType": "A String", # The name of a Google Compute Engine [machine
- # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
- # `n1-standard-1`).
- #
- # If unspecified, the default machine type is
- # `n1-standard-1`.
- "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
- #
- # If unspecified, the default disk type is 'pd-standard'
- "bootDiskKmsKey": "A String", #
- # The Customer Managed Encryption Key used to encrypt the boot disk attached
- # to each node in the node pool. This should be of the form
- # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
- # For more information about protecting resources with Cloud KMS Keys please
- # see:
- # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
- "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
- "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
- #
- # Secure Boot helps ensure that the system only runs authentic software by
- # verifying the digital signature of all boot components, and halting the
- # boot process if signature verification fails.
- "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
- #
- # Enables monitoring and attestation of the boot integrity of the instance.
- # The attestation is performed against the integrity policy baseline. This
- # baseline is initially derived from the implicitly trusted boot image when
- # the instance is created.
- },
"minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be
# scheduled on the specified or newer CPU platform. Applicable values are the
# friendly names of CPU platforms, such as
@@ -1191,6 +1165,19 @@
# <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
# information, read [how to specify min CPU
# platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
+ "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
+ #
+ # Enables monitoring and attestation of the boot integrity of the instance.
+ # The attestation is performed against the integrity policy baseline. This
+ # baseline is initially derived from the implicitly trusted boot image when
+ # the instance is created.
+ "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
+ #
+ # Secure Boot helps ensure that the system only runs authentic software by
+ # verifying the digital signature of all boot components, and halting the
+ # boot process if signature verification fails.
+ },
"preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See:
# https://cloud.google.com/compute/docs/instances/preemptible for more
# inforamtion about preemptible VM instances.
@@ -1289,9 +1276,9 @@
# See
# [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
# for more information, including usage and the valid values.
- "key": "A String", # Key for taint.
- "value": "A String", # Value for taint.
"effect": "A String", # Effect for taint.
+ "value": "A String", # Value for taint.
+ "key": "A String", # Key for taint.
},
],
"labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
@@ -1304,14 +1291,52 @@
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
"a_key": "A String",
},
+ "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
+ # The smallest allowed disk size is 10GB.
+ #
+ # If unspecified, the default disk size is 100GB.
+ "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
+ # workloads on the node pool.
+ "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
+ # workloads running on the node.
+ "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
+ # on the node pool.
+ },
+ "accelerators": [ # A list of hardware accelerators to be attached to each node.
+ # See https://cloud.google.com/compute/docs/gpus for more information about
+ # support for GPUs.
+ { # AcceleratorConfig represents a Hardware Accelerator request.
+ "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
+ # [here](https://cloud.google.com/compute/docs/gpus)
+ "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
+ },
+ ],
+ "machineType": "A String", # The name of a Google Compute Engine [machine
+ # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
+ # `n1-standard-1`).
+ #
+ # If unspecified, the default machine type is
+ # `n1-standard-1`.
+ "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+ #
+ # If unspecified, the default disk type is 'pd-standard'
+ "bootDiskKmsKey": "A String", #
+ # The Customer Managed Encryption Key used to encrypt the boot disk attached
+ # to each node in the node pool. This should be of the form
+ # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+ # For more information about protecting resources with Cloud KMS Keys please
+ # see:
+ # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+ },
+ "tpuConfig": { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
+ "useServiceNetworking": True or False, # Whether to use service networking for Cloud TPU or not.
+ "ipv4CidrBlock": "A String", # IPv4 CIDR block reserved for Cloud TPU in the VPC.
+ "enabled": True or False, # Whether Cloud TPU integration is enabled or not.
},
"status": "A String", # [Output only] The current status of this cluster.
- "tpuConfig": { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
- "enabled": True or False, # Whether Cloud TPU integration is enabled or not.
- "ipv4CidrBlock": "A String", # IPv4 CIDR block reserved for Cloud TPU in the VPC.
- "useServiceNetworking": True or False, # Whether to use service networking for Cloud TPU or not.
- },
"networkConfig": { # NetworkConfig reports the relative names of network & subnetwork. # Configuration for cluster networking.
+ "enableIntraNodeVisibility": True or False, # Whether Intra-node visibility is enabled for this cluster.
+ # This makes same node pod to pod traffic visible for VPC network.
"subnetwork": "A String", # Output only. The relative name of the Google Compute Engine
# [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
# cluster is connected. Example:
@@ -1320,8 +1345,13 @@
# network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
# to which the cluster is connected. Example:
# projects/my-project/global/networks/my-network
- "enableIntraNodeVisibility": True or False, # Whether Intra-node visibility is enabled for this cluster.
- # This makes same node pod to pod traffic visible for VPC network.
+ "defaultSnatStatus": { # DefaultSnatStatus contains the desired state of whether default sNAT should # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+ # will be disabled when default_snat_status is disabled. When disabled is set
+ # to false, default IP masquerade rules will be applied to the nodes to
+ # prevent sNAT on cluster internal traffic.
+ # be disabled on the cluster.
+ "disabled": True or False, # Disables cluster default sNAT rules.
+ },
},
"name": "A String", # 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
@@ -1330,17 +1360,17 @@
# * Lowercase letters, numbers, and hyphens only.
# * Must start with a letter.
# * Must end with a number or a letter.
+ "location": "A String", # [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.
"endpoint": "A 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.
- "location": "A String", # [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.
"createTime": "A String", # [Output only] The time the cluster was created, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterIpv4Cidr": "A String", # The IP address range of the container pods in this cluster, in
@@ -1351,6 +1381,11 @@
# required by Cluster Autoscaler to automatically adjust
# the size of the cluster and create/delete
# node pools based on the current needs.
+ "autoprovisioningLocations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # NodePool's nodes can be created by NAP.
+ "A String",
+ ],
"resourceLimits": [ # Contains global constraints regarding minimum and maximum
# amount of resources in the cluster.
{ # Contains information about amount of some resource in the cluster.
@@ -1365,14 +1400,20 @@
"autoprovisioningNodePoolDefaults": { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
# created by NAP.
# by NAP.
- "oauthScopes": [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
- # specified, service_account should be empty.
- "A String",
- ],
+ "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. If
+ # service_account is specified, scopes should be empty.
+ "minCpuPlatform": "A String", # Minimum CPU platform to be used for NAP created node pools.
+ # The instance may be scheduled on the specified or newer CPU platform.
+ # Applicable values are the friendly names of CPU platforms, such as
+ # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+ # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+ # information, read [how to specify min CPU
+ # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ # To unset the min cpu platform field pass "automatic" as field value.
"management": { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
# node pool.
- "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"autoRepair": True or False, # Whether the nodes will be automatically repaired.
+ "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
# the Auto Upgrades will proceed.
"description": "A String", # [Output only] This field is set when upgrades are about to commence
@@ -1382,14 +1423,10 @@
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
},
},
- "minCpuPlatform": "A String", # Minimum CPU platform to be used for NAP created node pools.
- # The instance may be scheduled on the specified or newer CPU platform.
- # Applicable values are the friendly names of CPU platforms, such as
- # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
- # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
- # information, read [how to specify min CPU
- # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
- # To unset the min cpu platform field pass "automatic" as field value.
+ "oauthScopes": [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
+ # specified, service_account should be empty.
+ "A String",
+ ],
"upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
# disruption caused by an upgrade.
#
@@ -1413,20 +1450,13 @@
# simultaneously. It creates 2 additional (upgraded) nodes, then it brings
# down 3 old (not yet upgraded) nodes at the same time. This ensures that
# there are always at least 4 nodes available.
- "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
- # of the node pool during the upgrade process.
"maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
# the upgrade process. A node is considered available if its status is
# Ready.
+ "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
+ # of the node pool during the upgrade process.
},
- "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. If
- # service_account is specified, scopes should be empty.
},
- "autoprovisioningLocations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # NodePool's nodes can be created by NAP.
- "A String",
- ],
},
"initialNodeCount": 42, # The number of nodes to create in this cluster. You must ensure that your
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
@@ -1441,37 +1471,14 @@
"instanceGroupUrls": [ # Deprecated. Use node_pools.instance_group_urls.
"A String",
],
- "privateClusterConfig": { # Configuration options for private clusters. # Configuration for private cluster.
- "privateEndpoint": "A String", # Output only. The internal IP address of this cluster's master endpoint.
- "enablePrivateEndpoint": True or False, # Whether the master's internal IP address is used as the cluster endpoint.
- "peeringName": "A String", # Output only. The peering name in the customer VPC used by this cluster.
- "masterGlobalAccessConfig": { # Configuration for controlling master global access settings. # Controls master global access settings.
- "enabled": True or False, # Whenever master is accessible globally or not.
- },
- "publicEndpoint": "A String", # Output only. The external IP address of this cluster's master endpoint.
- "enablePrivateNodes": True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
- # given only RFC 1918 private addresses and communicate with the master via
- # private networking.
- "masterIpv4CidrBlock": "A String", # The IP range in CIDR notation to use for the hosted master network. This
- # range will be used for assigning internal IP addresses to the master or
- # set of masters, as well as the ILB VIP. This range must not overlap with
- # any other ranges in use within the cluster's network.
- },
- "shieldedNodes": { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
- "enabled": True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
- },
- "verticalPodAutoscaling": { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
- # required by Vertical Pod Autoscaler to automatically adjust
- # the resources of pods controlled by it.
- "enabled": True or False, # Enables vertical pod autoscaling.
- },
},
+ "projectId": "A String", # Required. Deprecated. The Google Developers Console [project ID or project
+ # number](https://support.google.com/cloud/answer/6158840).
+ # This field has been deprecated and replaced by the parent field.
"zone": "A String", # Required. Deprecated. The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# cluster resides. This field has been deprecated and replaced by the parent
# field.
- "parent": "A String", # The parent (project and location) where the cluster will be created.
- # Specified in the format `projects/*/locations/*`.
}
x__xgafv: string, V1 error format.
@@ -1484,6 +1491,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -1491,13 +1503,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -1508,11 +1520,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -1526,19 +1533,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -1576,6 +1583,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -1583,13 +1595,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -1600,11 +1612,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -1618,19 +1625,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -1659,6 +1666,30 @@
An object of the form:
{ # A Google Kubernetes Engine cluster.
+ "privateClusterConfig": { # Configuration options for private clusters. # Configuration for private cluster.
+ "masterIpv4CidrBlock": "A String", # The IP range in CIDR notation to use for the hosted master network. This
+ # range will be used for assigning internal IP addresses to the master or
+ # set of masters, as well as the ILB VIP. This range must not overlap with
+ # any other ranges in use within the cluster's network.
+ "enablePrivateNodes": True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
+ # given only RFC 1918 private addresses and communicate with the master via
+ # private networking.
+ "privateEndpoint": "A String", # Output only. The internal IP address of this cluster's master endpoint.
+ "enablePrivateEndpoint": True or False, # Whether the master's internal IP address is used as the cluster endpoint.
+ "peeringName": "A String", # Output only. The peering name in the customer VPC used by this cluster.
+ "masterGlobalAccessConfig": { # Configuration for controlling master global access settings. # Controls master global access settings.
+ "enabled": True or False, # Whenever master is accessible globally or not.
+ },
+ "publicEndpoint": "A String", # Output only. The external IP address of this cluster's master endpoint.
+ },
+ "shieldedNodes": { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
+ "enabled": True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
+ },
+ "verticalPodAutoscaling": { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
+ # required by Vertical Pod Autoscaler to automatically adjust
+ # the resources of pods controlled by it.
+ "enabled": True or False, # Enables vertical pod autoscaling.
+ },
"defaultMaxPodsConstraint": { # Constraints applied to pods. # 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.
@@ -1678,14 +1709,14 @@
# 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.
+ "enabled": True or False, # Whether or not master authorized networks is enabled.
"cidrBlocks": [ # cidr_blocks define up to 10 external networks that could access
# Kubernetes master through HTTPS.
{ # CidrBlock contains an optional name and one CIDR block.
- "displayName": "A String", # display_name is an optional field for users to identify CIDR blocks.
"cidrBlock": "A String", # cidr_block must be specified in CIDR notation.
+ "displayName": "A String", # display_name is an optional field for users to identify CIDR blocks.
},
],
- "enabled": True or False, # Whether or not master authorized networks is enabled.
},
"statusMessage": "A String", # [Output only] Additional information about the current status of this
# cluster, if available.
@@ -1715,10 +1746,10 @@
# leaving username unspecified (or setting it to the empty string).
},
"authenticatorGroupsConfig": { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
- "enabled": True or False, # Whether this cluster should return group membership lookups
- # during authentication using a group of security groups.
"securityGroup": "A String", # The name of the security group-of-groups to be used. Only relevant
# if enabled = true.
+ "enabled": True or False, # Whether this cluster should return group membership lookups
+ # during authentication using a group of security groups.
},
"masterIpv4CidrBlock": "A String", # The IP prefix in CIDR notation to use for the hosted master network.
# This prefix will be used for assigning private IP addresses to the
@@ -1729,33 +1760,12 @@
"type": "A String", # Type of the integration.
},
"currentMasterVersion": "A String", # [Output only] The current software version of the master endpoint.
+ "podSecurityPolicyConfig": { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
+ "enabled": True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+ # must be valid under a PodSecurityPolicy to be created.
+ },
"addonsConfig": { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
# cluster, enabling additional functionality.
- "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
- },
- "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
- # extension to manage hosted GCP services through the Kubernetes API
- "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
- },
- "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
- # enabled in order to enable Cloud Run addon. This option can only be enabled
- # at cluster creation time.
- "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
- },
- "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
- # When enabled, it ensures that metrics are collected into Stackdriver
- # Monitoring.
- },
"httpLoadBalancing": { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
# makes it easy to set up HTTP load balancers for services in a cluster.
# which makes it easy to set up HTTP load balancers for services in a cluster.
@@ -1783,35 +1793,53 @@
},
"istioConfig": { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
# microservices.
- "disabled": True or False, # Whether Istio is enabled for this cluster.
"auth": "A String", # The specified Istio auth mode, either none, or mutual TLS.
+ "disabled": True or False, # Whether Istio is enabled for this cluster.
+ },
+ "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
+ },
+ "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+ # enabled in order to enable Cloud Run addon. This option can only be enabled
+ # at cluster creation time.
+ "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
+ },
+ "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
+ # extension to manage hosted GCP services through the Kubernetes API
+ "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
+ },
+ "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+ # When enabled, it ensures that metrics are collected into Stackdriver
+ # Monitoring.
},
},
- "podSecurityPolicyConfig": { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
- "enabled": True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
- # must be valid under a PodSecurityPolicy to be created.
- },
+ "subnetwork": "A String", # The name of the Google Compute Engine
+ # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+ # the cluster is connected. On output this shows the subnetwork ID instead of
+ # the name.
"currentNodeVersion": "A String", # [Output only] Deprecated, use
# [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
# instead. 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.
- "subnetwork": "A String", # The name of the Google Compute Engine
- # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
- # the cluster is connected. On output this shows the subnetwork ID instead of
- # the name.
"maintenancePolicy": { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
- "resourceVersion": "A String", # A hash identifying the version of this policy, so that updates to fields of
- # the policy won't accidentally undo intermediate changes (and so that users
- # of the API unaware of some fields won't accidentally remove other fields).
- # Make a <code>get()</code> request to the cluster to get the current
- # resource version and include it with requests to set the policy.
"window": { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
- "dailyMaintenanceWindow": { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
- "duration": "A String", # [Output only] Duration of the time window, automatically chosen to be
- # smallest possible in the given scenario.
- "startTime": "A String", # Time within the maintenance window to start the maintenance operations.
- # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+ "maintenanceExclusions": { # Exceptions to maintenance window. Non-emergency maintenance should not
+ # occur in these windows.
+ "a_key": { # Represents an arbitrary window of time.
+ "startTime": "A String", # The time that the window first starts.
+ "endTime": "A String", # The time that the window ends. The end time should take place after the
+ # start time.
+ },
},
"recurringWindow": { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
# maintenance to occur. The time windows may be overlapping. If no
@@ -1844,20 +1872,23 @@
# to specify duration of the window and when it first starts.
# The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
"window": { # Represents an arbitrary window of time. # The window of the first recurrence.
+ "startTime": "A String", # The time that the window first starts.
"endTime": "A String", # The time that the window ends. The end time should take place after the
# start time.
- "startTime": "A String", # The time that the window first starts.
},
},
- "maintenanceExclusions": { # Exceptions to maintenance window. Non-emergency maintenance should not
- # occur in these windows.
- "a_key": { # Represents an arbitrary window of time.
- "endTime": "A String", # The time that the window ends. The end time should take place after the
- # start time.
- "startTime": "A String", # The time that the window first starts.
- },
+ "dailyMaintenanceWindow": { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
+ "duration": "A String", # [Output only] Duration of the time window, automatically chosen to be
+ # smallest possible in the given scenario.
+ "startTime": "A String", # Time within the maintenance window to start the maintenance operations.
+ # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
},
},
+ "resourceVersion": "A String", # A hash identifying the version of this policy, so that updates to fields of
+ # the policy won't accidentally undo intermediate changes (and so that users
+ # of the API unaware of some fields won't accidentally remove other fields).
+ # Make a <code>get()</code> request to the cluster to get the current
+ # resource version and include it with requests to set the policy.
},
"resourceLabels": { # The resource labels for the cluster to use to annotate any related
# Google Compute Engine resources.
@@ -1968,13 +1999,13 @@
#
# This field is only applicable with use_ip_aliases and
# create_subnetwork is false.
+ "createSubnetwork": True or False, # Whether a new subnetwork will be created automatically for the cluster.
+ #
+ # This field is only applicable when `use_ip_aliases` is true.
"useIpAliases": True or False, # Whether alias IPs will be used for pod IPs in the cluster.
# This is used in conjunction with use_routes. It cannot
# be true if use_routes is true. If both use_ip_aliases and use_routes are
# false, then the server picks the default IP allocation mode
- "createSubnetwork": True or False, # Whether a new subnetwork will be created automatically for the cluster.
- #
- # This field is only applicable when `use_ip_aliases` is true.
"subnetworkName": "A String", # A custom subnetwork name to be used if `create_subnetwork` is true. If
# this field is empty, then an automatic name will be chosen for the new
# subnetwork.
@@ -1988,8 +2019,6 @@
# controllers, will have statically granted permissions beyond those
# provided by the RBAC configuration or IAM.
},
- "enableTpu": True or False, # Enable the ability to use Cloud TPUs in this cluster.
- # This field is deprecated, use tpu_config.enabled instead.
"resourceUsageExportConfig": { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
# disabled when this config unspecified.
"enableNetworkEgressMetering": True or False, # Whether to enable network egress metering for this cluster. If enabled, a
@@ -2003,11 +2032,8 @@
"datasetId": "A String", # The ID of a BigQuery Dataset.
},
},
- "locations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # cluster's nodes should be located.
- "A String",
- ],
+ "enableTpu": True or False, # Enable the ability to use Cloud TPUs in this cluster.
+ # This field is deprecated, use tpu_config.enabled instead.
"nodePools": [ # The node pools associated with this cluster.
# This field should not be set if "node_config" or "initial_node_count" are
# specified.
@@ -2017,122 +2043,8 @@
# of Kubernetes labels applied to them, which may be used to reference them
# during pod scheduling. They may also be resized up or down, to accommodate
# the workload.
- "statusMessage": "A String", # [Output only] Additional information about the current status of this
- # node pool instance, if available.
- "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
- # only if a valid configuration is present.
- # adjust the size of the node pool to the current cluster usage.
- "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <=
- # max_node_count.
- "autoprovisioned": True or False, # Can this node pool be deleted automatically.
- "enabled": True or False, # Is autoscaling enabled for this node pool.
- "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
- # has to enough quota to scale up the cluster.
- },
- "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your
- # Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
- # is sufficient for this number of instances. You must also have available
- # firewall and routes quota.
- "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
- # disruption caused by an upgrade.
- #
- # maxUnavailable controls the number of nodes that can be simultaneously
- # unavailable.
- #
- # maxSurge controls the number of additional nodes that can be added to the
- # node pool temporarily for the time of the upgrade to increase the number of
- # available nodes.
- #
- # (maxUnavailable + maxSurge) determines the level of parallelism (how many
- # nodes are being upgraded at the same time).
- #
- # Note: upgrades inevitably introduce some disruption since workloads need to
- # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
- # this holds true. (Disruption stays within the limits of
- # PodDisruptionBudget, if it is configured.)
- #
- # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
- # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
- # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
- # down 3 old (not yet upgraded) nodes at the same time. This ensures that
- # there are always at least 4 nodes available.
- "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
- # of the node pool during the upgrade process.
- "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
- # the upgrade process. A node is considered available if its status is
- # Ready.
- },
- "selfLink": "A String", # [Output only] Server-defined URL for the resource.
- "locations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # NodePool's nodes should be located.
- "A String",
- ],
- "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance
- # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
- # associated with this node pool.
- "A String",
- ],
- "version": "A String", # The version of the Kubernetes of this node.
- "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool.
- "conditions": [ # Which conditions caused the current node pool state.
- { # StatusCondition describes why a cluster or a node pool has a certain status
- # (e.g., ERROR or DEGRADED).
- "code": "A String", # Machine-friendly representation of the condition
- "message": "A String", # Human-friendly representation of the condition
- },
- ],
"status": "A String", # [Output only] The status of the nodes in this pool instance.
"config": { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
- "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
- # The smallest allowed disk size is 10GB.
- #
- # If unspecified, the default disk size is 100GB.
- "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
- # workloads on the node pool.
- "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
- # workloads running on the node.
- "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
- # on the node pool.
- },
- "accelerators": [ # A list of hardware accelerators to be attached to each node.
- # See https://cloud.google.com/compute/docs/gpus for more information about
- # support for GPUs.
- { # AcceleratorConfig represents a Hardware Accelerator request.
- "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
- "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
- # [here](https://cloud.google.com/compute/docs/gpus)
- },
- ],
- "machineType": "A String", # The name of a Google Compute Engine [machine
- # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
- # `n1-standard-1`).
- #
- # If unspecified, the default machine type is
- # `n1-standard-1`.
- "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
- #
- # If unspecified, the default disk type is 'pd-standard'
- "bootDiskKmsKey": "A String", #
- # The Customer Managed Encryption Key used to encrypt the boot disk attached
- # to each node in the node pool. This should be of the form
- # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
- # For more information about protecting resources with Cloud KMS Keys please
- # see:
- # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
- "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
- "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
- #
- # Secure Boot helps ensure that the system only runs authentic software by
- # verifying the digital signature of all boot components, and halting the
- # boot process if signature verification fails.
- "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
- #
- # Enables monitoring and attestation of the boot integrity of the instance.
- # The attestation is performed against the integrity policy baseline. This
- # baseline is initially derived from the implicitly trusted boot image when
- # the instance is created.
- },
"minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be
# scheduled on the specified or newer CPU platform. Applicable values are the
# friendly names of CPU platforms, such as
@@ -2140,6 +2052,19 @@
# <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
# information, read [how to specify min CPU
# platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
+ "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
+ #
+ # Enables monitoring and attestation of the boot integrity of the instance.
+ # The attestation is performed against the integrity policy baseline. This
+ # baseline is initially derived from the implicitly trusted boot image when
+ # the instance is created.
+ "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
+ #
+ # Secure Boot helps ensure that the system only runs authentic software by
+ # verifying the digital signature of all boot components, and halting the
+ # boot process if signature verification fails.
+ },
"preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See:
# https://cloud.google.com/compute/docs/instances/preemptible for more
# inforamtion about preemptible VM instances.
@@ -2238,9 +2163,9 @@
# See
# [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
# for more information, including usage and the valid values.
- "key": "A String", # Key for taint.
- "value": "A String", # Value for taint.
"effect": "A String", # Effect for taint.
+ "value": "A String", # Value for taint.
+ "key": "A String", # Key for taint.
},
],
"labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
@@ -2253,16 +2178,52 @@
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
"a_key": "A String",
},
+ "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
+ # The smallest allowed disk size is 10GB.
+ #
+ # If unspecified, the default disk size is 100GB.
+ "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
+ # workloads on the node pool.
+ "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
+ # workloads running on the node.
+ "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
+ # on the node pool.
+ },
+ "accelerators": [ # A list of hardware accelerators to be attached to each node.
+ # See https://cloud.google.com/compute/docs/gpus for more information about
+ # support for GPUs.
+ { # AcceleratorConfig represents a Hardware Accelerator request.
+ "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
+ # [here](https://cloud.google.com/compute/docs/gpus)
+ "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
+ },
+ ],
+ "machineType": "A String", # The name of a Google Compute Engine [machine
+ # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
+ # `n1-standard-1`).
+ #
+ # If unspecified, the default machine type is
+ # `n1-standard-1`.
+ "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+ #
+ # If unspecified, the default disk type is 'pd-standard'
+ "bootDiskKmsKey": "A String", #
+ # The Customer Managed Encryption Key used to encrypt the boot disk attached
+ # to each node in the node pool. This should be of the form
+ # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+ # For more information about protecting resources with Cloud KMS Keys please
+ # see:
+ # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
},
- "name": "A String", # The name of the node pool.
"maxPodsConstraint": { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
# simultaneously on a node in the node pool.
"maxPodsPerNode": "A String", # Constraint enforced on the max num of pods per node.
},
+ "name": "A String", # The name of the node pool.
"management": { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
# node pool.
- "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"autoRepair": True or False, # Whether the nodes will be automatically repaired.
+ "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
# the Auto Upgrades will proceed.
"description": "A String", # [Output only] This field is set when upgrades are about to commence
@@ -2272,19 +2233,79 @@
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
},
},
+ "statusMessage": "A String", # [Output only] Additional information about the current status of this
+ # node pool instance, if available.
+ "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
+ # only if a valid configuration is present.
+ # adjust the size of the node pool to the current cluster usage.
+ "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+ # has to enough quota to scale up the cluster.
+ "autoprovisioned": True or False, # Can this node pool be deleted automatically.
+ "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <=
+ # max_node_count.
+ "enabled": True or False, # Is autoscaling enabled for this node pool.
+ },
+ "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your
+ # Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+ # is sufficient for this number of instances. You must also have available
+ # firewall and routes quota.
+ "locations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # NodePool's nodes should be located.
+ "A String",
+ ],
+ "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
+ # disruption caused by an upgrade.
+ #
+ # maxUnavailable controls the number of nodes that can be simultaneously
+ # unavailable.
+ #
+ # maxSurge controls the number of additional nodes that can be added to the
+ # node pool temporarily for the time of the upgrade to increase the number of
+ # available nodes.
+ #
+ # (maxUnavailable + maxSurge) determines the level of parallelism (how many
+ # nodes are being upgraded at the same time).
+ #
+ # Note: upgrades inevitably introduce some disruption since workloads need to
+ # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+ # this holds true. (Disruption stays within the limits of
+ # PodDisruptionBudget, if it is configured.)
+ #
+ # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+ # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+ # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+ # down 3 old (not yet upgraded) nodes at the same time. This ensures that
+ # there are always at least 4 nodes available.
+ "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
+ # the upgrade process. A node is considered available if its status is
+ # Ready.
+ "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
+ # of the node pool during the upgrade process.
+ },
+ "selfLink": "A String", # [Output only] Server-defined URL for the resource.
+ "version": "A String", # The version of the Kubernetes of this node.
+ "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance
+ # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+ # associated with this node pool.
+ "A String",
+ ],
+ "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool.
+ "conditions": [ # Which conditions caused the current node pool state.
+ { # StatusCondition describes why a cluster or a node pool has a certain status
+ # (e.g., ERROR or DEGRADED).
+ "code": "A String", # Machine-friendly representation of the condition
+ "message": "A String", # Human-friendly representation of the condition
+ },
+ ],
},
],
+ "locations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # cluster's nodes should be located.
+ "A String",
+ ],
"selfLink": "A String", # [Output only] Server-defined URL for the resource.
- "servicesIpv4Cidr": "A String", # [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.
- "networkPolicy": { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
- # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
- "enabled": True or False, # Whether network policy is enabled on the cluster.
- "provider": "A String", # The selected network policy provider.
- },
"releaseChannel": { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
# subscribed to. Release channels are arranged in order of risk and
# frequency of updates.
@@ -2295,6 +2316,16 @@
# fields (e.g. current_master_version) return an error.
"channel": "A String", # channel specifies which release channel the cluster is subscribed to.
},
+ "networkPolicy": { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
+ # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+ "provider": "A String", # The selected network policy provider.
+ "enabled": True or False, # Whether network policy is enabled on the cluster.
+ },
+ "servicesIpv4Cidr": "A String", # [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.
"enableKubernetesAlpha": True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
# API groups (e.g. v1beta1) and features that may not be production ready in
# the kubernetes version of the master and nodes.
@@ -2342,8 +2373,8 @@
"workloadIdentityConfig": { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
# policies.
# policies.
- "identityNamespace": "A String", # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
"workloadPool": "A String", # The workload pool to attach all Kubernetes service accounts to.
+ "identityNamespace": "A String", # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
},
"zone": "A String", # [Output only] The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
@@ -2372,55 +2403,6 @@
#
# If unspecified, the defaults are used.
# This field is deprecated, use node_pool.config instead.
- "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
- # The smallest allowed disk size is 10GB.
- #
- # If unspecified, the default disk size is 100GB.
- "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
- # workloads on the node pool.
- "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
- # workloads running on the node.
- "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
- # on the node pool.
- },
- "accelerators": [ # A list of hardware accelerators to be attached to each node.
- # See https://cloud.google.com/compute/docs/gpus for more information about
- # support for GPUs.
- { # AcceleratorConfig represents a Hardware Accelerator request.
- "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
- "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
- # [here](https://cloud.google.com/compute/docs/gpus)
- },
- ],
- "machineType": "A String", # The name of a Google Compute Engine [machine
- # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
- # `n1-standard-1`).
- #
- # If unspecified, the default machine type is
- # `n1-standard-1`.
- "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
- #
- # If unspecified, the default disk type is 'pd-standard'
- "bootDiskKmsKey": "A String", #
- # The Customer Managed Encryption Key used to encrypt the boot disk attached
- # to each node in the node pool. This should be of the form
- # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
- # For more information about protecting resources with Cloud KMS Keys please
- # see:
- # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
- "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
- "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
- #
- # Secure Boot helps ensure that the system only runs authentic software by
- # verifying the digital signature of all boot components, and halting the
- # boot process if signature verification fails.
- "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
- #
- # Enables monitoring and attestation of the boot integrity of the instance.
- # The attestation is performed against the integrity policy baseline. This
- # baseline is initially derived from the implicitly trusted boot image when
- # the instance is created.
- },
"minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be
# scheduled on the specified or newer CPU platform. Applicable values are the
# friendly names of CPU platforms, such as
@@ -2428,6 +2410,19 @@
# <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
# information, read [how to specify min CPU
# platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
+ "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
+ #
+ # Enables monitoring and attestation of the boot integrity of the instance.
+ # The attestation is performed against the integrity policy baseline. This
+ # baseline is initially derived from the implicitly trusted boot image when
+ # the instance is created.
+ "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
+ #
+ # Secure Boot helps ensure that the system only runs authentic software by
+ # verifying the digital signature of all boot components, and halting the
+ # boot process if signature verification fails.
+ },
"preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See:
# https://cloud.google.com/compute/docs/instances/preemptible for more
# inforamtion about preemptible VM instances.
@@ -2526,9 +2521,9 @@
# See
# [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
# for more information, including usage and the valid values.
- "key": "A String", # Key for taint.
- "value": "A String", # Value for taint.
"effect": "A String", # Effect for taint.
+ "value": "A String", # Value for taint.
+ "key": "A String", # Key for taint.
},
],
"labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
@@ -2541,14 +2536,52 @@
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
"a_key": "A String",
},
+ "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
+ # The smallest allowed disk size is 10GB.
+ #
+ # If unspecified, the default disk size is 100GB.
+ "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
+ # workloads on the node pool.
+ "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
+ # workloads running on the node.
+ "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
+ # on the node pool.
+ },
+ "accelerators": [ # A list of hardware accelerators to be attached to each node.
+ # See https://cloud.google.com/compute/docs/gpus for more information about
+ # support for GPUs.
+ { # AcceleratorConfig represents a Hardware Accelerator request.
+ "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
+ # [here](https://cloud.google.com/compute/docs/gpus)
+ "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
+ },
+ ],
+ "machineType": "A String", # The name of a Google Compute Engine [machine
+ # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
+ # `n1-standard-1`).
+ #
+ # If unspecified, the default machine type is
+ # `n1-standard-1`.
+ "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+ #
+ # If unspecified, the default disk type is 'pd-standard'
+ "bootDiskKmsKey": "A String", #
+ # The Customer Managed Encryption Key used to encrypt the boot disk attached
+ # to each node in the node pool. This should be of the form
+ # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+ # For more information about protecting resources with Cloud KMS Keys please
+ # see:
+ # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+ },
+ "tpuConfig": { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
+ "useServiceNetworking": True or False, # Whether to use service networking for Cloud TPU or not.
+ "ipv4CidrBlock": "A String", # IPv4 CIDR block reserved for Cloud TPU in the VPC.
+ "enabled": True or False, # Whether Cloud TPU integration is enabled or not.
},
"status": "A String", # [Output only] The current status of this cluster.
- "tpuConfig": { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
- "enabled": True or False, # Whether Cloud TPU integration is enabled or not.
- "ipv4CidrBlock": "A String", # IPv4 CIDR block reserved for Cloud TPU in the VPC.
- "useServiceNetworking": True or False, # Whether to use service networking for Cloud TPU or not.
- },
"networkConfig": { # NetworkConfig reports the relative names of network & subnetwork. # Configuration for cluster networking.
+ "enableIntraNodeVisibility": True or False, # Whether Intra-node visibility is enabled for this cluster.
+ # This makes same node pod to pod traffic visible for VPC network.
"subnetwork": "A String", # Output only. The relative name of the Google Compute Engine
# [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
# cluster is connected. Example:
@@ -2557,8 +2590,13 @@
# network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
# to which the cluster is connected. Example:
# projects/my-project/global/networks/my-network
- "enableIntraNodeVisibility": True or False, # Whether Intra-node visibility is enabled for this cluster.
- # This makes same node pod to pod traffic visible for VPC network.
+ "defaultSnatStatus": { # DefaultSnatStatus contains the desired state of whether default sNAT should # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+ # will be disabled when default_snat_status is disabled. When disabled is set
+ # to false, default IP masquerade rules will be applied to the nodes to
+ # prevent sNAT on cluster internal traffic.
+ # be disabled on the cluster.
+ "disabled": True or False, # Disables cluster default sNAT rules.
+ },
},
"name": "A String", # 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
@@ -2567,17 +2605,17 @@
# * Lowercase letters, numbers, and hyphens only.
# * Must start with a letter.
# * Must end with a number or a letter.
+ "location": "A String", # [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.
"endpoint": "A 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.
- "location": "A String", # [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.
"createTime": "A String", # [Output only] The time the cluster was created, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterIpv4Cidr": "A String", # The IP address range of the container pods in this cluster, in
@@ -2588,6 +2626,11 @@
# required by Cluster Autoscaler to automatically adjust
# the size of the cluster and create/delete
# node pools based on the current needs.
+ "autoprovisioningLocations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # NodePool's nodes can be created by NAP.
+ "A String",
+ ],
"resourceLimits": [ # Contains global constraints regarding minimum and maximum
# amount of resources in the cluster.
{ # Contains information about amount of some resource in the cluster.
@@ -2602,14 +2645,20 @@
"autoprovisioningNodePoolDefaults": { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
# created by NAP.
# by NAP.
- "oauthScopes": [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
- # specified, service_account should be empty.
- "A String",
- ],
+ "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. If
+ # service_account is specified, scopes should be empty.
+ "minCpuPlatform": "A String", # Minimum CPU platform to be used for NAP created node pools.
+ # The instance may be scheduled on the specified or newer CPU platform.
+ # Applicable values are the friendly names of CPU platforms, such as
+ # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+ # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+ # information, read [how to specify min CPU
+ # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ # To unset the min cpu platform field pass "automatic" as field value.
"management": { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
# node pool.
- "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"autoRepair": True or False, # Whether the nodes will be automatically repaired.
+ "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
# the Auto Upgrades will proceed.
"description": "A String", # [Output only] This field is set when upgrades are about to commence
@@ -2619,14 +2668,10 @@
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
},
},
- "minCpuPlatform": "A String", # Minimum CPU platform to be used for NAP created node pools.
- # The instance may be scheduled on the specified or newer CPU platform.
- # Applicable values are the friendly names of CPU platforms, such as
- # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
- # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
- # information, read [how to specify min CPU
- # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
- # To unset the min cpu platform field pass "automatic" as field value.
+ "oauthScopes": [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
+ # specified, service_account should be empty.
+ "A String",
+ ],
"upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
# disruption caused by an upgrade.
#
@@ -2650,20 +2695,13 @@
# simultaneously. It creates 2 additional (upgraded) nodes, then it brings
# down 3 old (not yet upgraded) nodes at the same time. This ensures that
# there are always at least 4 nodes available.
- "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
- # of the node pool during the upgrade process.
"maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
# the upgrade process. A node is considered available if its status is
# Ready.
+ "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
+ # of the node pool during the upgrade process.
},
- "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. If
- # service_account is specified, scopes should be empty.
},
- "autoprovisioningLocations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # NodePool's nodes can be created by NAP.
- "A String",
- ],
},
"initialNodeCount": 42, # The number of nodes to create in this cluster. You must ensure that your
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
@@ -2678,30 +2716,6 @@
"instanceGroupUrls": [ # Deprecated. Use node_pools.instance_group_urls.
"A String",
],
- "privateClusterConfig": { # Configuration options for private clusters. # Configuration for private cluster.
- "privateEndpoint": "A String", # Output only. The internal IP address of this cluster's master endpoint.
- "enablePrivateEndpoint": True or False, # Whether the master's internal IP address is used as the cluster endpoint.
- "peeringName": "A String", # Output only. The peering name in the customer VPC used by this cluster.
- "masterGlobalAccessConfig": { # Configuration for controlling master global access settings. # Controls master global access settings.
- "enabled": True or False, # Whenever master is accessible globally or not.
- },
- "publicEndpoint": "A String", # Output only. The external IP address of this cluster's master endpoint.
- "enablePrivateNodes": True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
- # given only RFC 1918 private addresses and communicate with the master via
- # private networking.
- "masterIpv4CidrBlock": "A String", # The IP range in CIDR notation to use for the hosted master network. This
- # range will be used for assigning internal IP addresses to the master or
- # set of masters, as well as the ILB VIP. This range must not overlap with
- # any other ranges in use within the cluster's network.
- },
- "shieldedNodes": { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
- "enabled": True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
- },
- "verticalPodAutoscaling": { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
- # required by Vertical Pod Autoscaler to automatically adjust
- # the resources of pods controlled by it.
- "enabled": True or False, # Enables vertical pod autoscaling.
- },
}</pre>
</div>
@@ -2748,6 +2762,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -2755,13 +2774,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -2772,11 +2791,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -2790,19 +2804,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -2834,6 +2848,30 @@
"clusters": [ # A list of clusters in the project in the specified zone, or
# across all ones.
{ # A Google Kubernetes Engine cluster.
+ "privateClusterConfig": { # Configuration options for private clusters. # Configuration for private cluster.
+ "masterIpv4CidrBlock": "A String", # The IP range in CIDR notation to use for the hosted master network. This
+ # range will be used for assigning internal IP addresses to the master or
+ # set of masters, as well as the ILB VIP. This range must not overlap with
+ # any other ranges in use within the cluster's network.
+ "enablePrivateNodes": True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
+ # given only RFC 1918 private addresses and communicate with the master via
+ # private networking.
+ "privateEndpoint": "A String", # Output only. The internal IP address of this cluster's master endpoint.
+ "enablePrivateEndpoint": True or False, # Whether the master's internal IP address is used as the cluster endpoint.
+ "peeringName": "A String", # Output only. The peering name in the customer VPC used by this cluster.
+ "masterGlobalAccessConfig": { # Configuration for controlling master global access settings. # Controls master global access settings.
+ "enabled": True or False, # Whenever master is accessible globally or not.
+ },
+ "publicEndpoint": "A String", # Output only. The external IP address of this cluster's master endpoint.
+ },
+ "shieldedNodes": { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
+ "enabled": True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
+ },
+ "verticalPodAutoscaling": { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
+ # required by Vertical Pod Autoscaler to automatically adjust
+ # the resources of pods controlled by it.
+ "enabled": True or False, # Enables vertical pod autoscaling.
+ },
"defaultMaxPodsConstraint": { # Constraints applied to pods. # 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.
@@ -2853,14 +2891,14 @@
# 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.
+ "enabled": True or False, # Whether or not master authorized networks is enabled.
"cidrBlocks": [ # cidr_blocks define up to 10 external networks that could access
# Kubernetes master through HTTPS.
{ # CidrBlock contains an optional name and one CIDR block.
- "displayName": "A String", # display_name is an optional field for users to identify CIDR blocks.
"cidrBlock": "A String", # cidr_block must be specified in CIDR notation.
+ "displayName": "A String", # display_name is an optional field for users to identify CIDR blocks.
},
],
- "enabled": True or False, # Whether or not master authorized networks is enabled.
},
"statusMessage": "A String", # [Output only] Additional information about the current status of this
# cluster, if available.
@@ -2890,10 +2928,10 @@
# leaving username unspecified (or setting it to the empty string).
},
"authenticatorGroupsConfig": { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
- "enabled": True or False, # Whether this cluster should return group membership lookups
- # during authentication using a group of security groups.
"securityGroup": "A String", # The name of the security group-of-groups to be used. Only relevant
# if enabled = true.
+ "enabled": True or False, # Whether this cluster should return group membership lookups
+ # during authentication using a group of security groups.
},
"masterIpv4CidrBlock": "A String", # The IP prefix in CIDR notation to use for the hosted master network.
# This prefix will be used for assigning private IP addresses to the
@@ -2904,33 +2942,12 @@
"type": "A String", # Type of the integration.
},
"currentMasterVersion": "A String", # [Output only] The current software version of the master endpoint.
+ "podSecurityPolicyConfig": { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
+ "enabled": True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+ # must be valid under a PodSecurityPolicy to be created.
+ },
"addonsConfig": { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
# cluster, enabling additional functionality.
- "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
- },
- "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
- # extension to manage hosted GCP services through the Kubernetes API
- "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
- },
- "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
- # enabled in order to enable Cloud Run addon. This option can only be enabled
- # at cluster creation time.
- "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
- },
- "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
- # When enabled, it ensures that metrics are collected into Stackdriver
- # Monitoring.
- },
"httpLoadBalancing": { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
# makes it easy to set up HTTP load balancers for services in a cluster.
# which makes it easy to set up HTTP load balancers for services in a cluster.
@@ -2958,35 +2975,53 @@
},
"istioConfig": { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
# microservices.
- "disabled": True or False, # Whether Istio is enabled for this cluster.
"auth": "A String", # The specified Istio auth mode, either none, or mutual TLS.
+ "disabled": True or False, # Whether Istio is enabled for this cluster.
+ },
+ "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
+ },
+ "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+ # enabled in order to enable Cloud Run addon. This option can only be enabled
+ # at cluster creation time.
+ "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
+ },
+ "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
+ # extension to manage hosted GCP services through the Kubernetes API
+ "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
+ },
+ "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+ # When enabled, it ensures that metrics are collected into Stackdriver
+ # Monitoring.
},
},
- "podSecurityPolicyConfig": { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
- "enabled": True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
- # must be valid under a PodSecurityPolicy to be created.
- },
+ "subnetwork": "A String", # The name of the Google Compute Engine
+ # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+ # the cluster is connected. On output this shows the subnetwork ID instead of
+ # the name.
"currentNodeVersion": "A String", # [Output only] Deprecated, use
# [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
# instead. 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.
- "subnetwork": "A String", # The name of the Google Compute Engine
- # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
- # the cluster is connected. On output this shows the subnetwork ID instead of
- # the name.
"maintenancePolicy": { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
- "resourceVersion": "A String", # A hash identifying the version of this policy, so that updates to fields of
- # the policy won't accidentally undo intermediate changes (and so that users
- # of the API unaware of some fields won't accidentally remove other fields).
- # Make a <code>get()</code> request to the cluster to get the current
- # resource version and include it with requests to set the policy.
"window": { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
- "dailyMaintenanceWindow": { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
- "duration": "A String", # [Output only] Duration of the time window, automatically chosen to be
- # smallest possible in the given scenario.
- "startTime": "A String", # Time within the maintenance window to start the maintenance operations.
- # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+ "maintenanceExclusions": { # Exceptions to maintenance window. Non-emergency maintenance should not
+ # occur in these windows.
+ "a_key": { # Represents an arbitrary window of time.
+ "startTime": "A String", # The time that the window first starts.
+ "endTime": "A String", # The time that the window ends. The end time should take place after the
+ # start time.
+ },
},
"recurringWindow": { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
# maintenance to occur. The time windows may be overlapping. If no
@@ -3019,20 +3054,23 @@
# to specify duration of the window and when it first starts.
# The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
"window": { # Represents an arbitrary window of time. # The window of the first recurrence.
+ "startTime": "A String", # The time that the window first starts.
"endTime": "A String", # The time that the window ends. The end time should take place after the
# start time.
- "startTime": "A String", # The time that the window first starts.
},
},
- "maintenanceExclusions": { # Exceptions to maintenance window. Non-emergency maintenance should not
- # occur in these windows.
- "a_key": { # Represents an arbitrary window of time.
- "endTime": "A String", # The time that the window ends. The end time should take place after the
- # start time.
- "startTime": "A String", # The time that the window first starts.
- },
+ "dailyMaintenanceWindow": { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
+ "duration": "A String", # [Output only] Duration of the time window, automatically chosen to be
+ # smallest possible in the given scenario.
+ "startTime": "A String", # Time within the maintenance window to start the maintenance operations.
+ # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
},
},
+ "resourceVersion": "A String", # A hash identifying the version of this policy, so that updates to fields of
+ # the policy won't accidentally undo intermediate changes (and so that users
+ # of the API unaware of some fields won't accidentally remove other fields).
+ # Make a <code>get()</code> request to the cluster to get the current
+ # resource version and include it with requests to set the policy.
},
"resourceLabels": { # The resource labels for the cluster to use to annotate any related
# Google Compute Engine resources.
@@ -3143,13 +3181,13 @@
#
# This field is only applicable with use_ip_aliases and
# create_subnetwork is false.
+ "createSubnetwork": True or False, # Whether a new subnetwork will be created automatically for the cluster.
+ #
+ # This field is only applicable when `use_ip_aliases` is true.
"useIpAliases": True or False, # Whether alias IPs will be used for pod IPs in the cluster.
# This is used in conjunction with use_routes. It cannot
# be true if use_routes is true. If both use_ip_aliases and use_routes are
# false, then the server picks the default IP allocation mode
- "createSubnetwork": True or False, # Whether a new subnetwork will be created automatically for the cluster.
- #
- # This field is only applicable when `use_ip_aliases` is true.
"subnetworkName": "A String", # A custom subnetwork name to be used if `create_subnetwork` is true. If
# this field is empty, then an automatic name will be chosen for the new
# subnetwork.
@@ -3163,8 +3201,6 @@
# controllers, will have statically granted permissions beyond those
# provided by the RBAC configuration or IAM.
},
- "enableTpu": True or False, # Enable the ability to use Cloud TPUs in this cluster.
- # This field is deprecated, use tpu_config.enabled instead.
"resourceUsageExportConfig": { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
# disabled when this config unspecified.
"enableNetworkEgressMetering": True or False, # Whether to enable network egress metering for this cluster. If enabled, a
@@ -3178,11 +3214,8 @@
"datasetId": "A String", # The ID of a BigQuery Dataset.
},
},
- "locations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # cluster's nodes should be located.
- "A String",
- ],
+ "enableTpu": True or False, # Enable the ability to use Cloud TPUs in this cluster.
+ # This field is deprecated, use tpu_config.enabled instead.
"nodePools": [ # The node pools associated with this cluster.
# This field should not be set if "node_config" or "initial_node_count" are
# specified.
@@ -3192,122 +3225,8 @@
# of Kubernetes labels applied to them, which may be used to reference them
# during pod scheduling. They may also be resized up or down, to accommodate
# the workload.
- "statusMessage": "A String", # [Output only] Additional information about the current status of this
- # node pool instance, if available.
- "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
- # only if a valid configuration is present.
- # adjust the size of the node pool to the current cluster usage.
- "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <=
- # max_node_count.
- "autoprovisioned": True or False, # Can this node pool be deleted automatically.
- "enabled": True or False, # Is autoscaling enabled for this node pool.
- "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
- # has to enough quota to scale up the cluster.
- },
- "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your
- # Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
- # is sufficient for this number of instances. You must also have available
- # firewall and routes quota.
- "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
- # disruption caused by an upgrade.
- #
- # maxUnavailable controls the number of nodes that can be simultaneously
- # unavailable.
- #
- # maxSurge controls the number of additional nodes that can be added to the
- # node pool temporarily for the time of the upgrade to increase the number of
- # available nodes.
- #
- # (maxUnavailable + maxSurge) determines the level of parallelism (how many
- # nodes are being upgraded at the same time).
- #
- # Note: upgrades inevitably introduce some disruption since workloads need to
- # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
- # this holds true. (Disruption stays within the limits of
- # PodDisruptionBudget, if it is configured.)
- #
- # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
- # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
- # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
- # down 3 old (not yet upgraded) nodes at the same time. This ensures that
- # there are always at least 4 nodes available.
- "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
- # of the node pool during the upgrade process.
- "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
- # the upgrade process. A node is considered available if its status is
- # Ready.
- },
- "selfLink": "A String", # [Output only] Server-defined URL for the resource.
- "locations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # NodePool's nodes should be located.
- "A String",
- ],
- "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance
- # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
- # associated with this node pool.
- "A String",
- ],
- "version": "A String", # The version of the Kubernetes of this node.
- "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool.
- "conditions": [ # Which conditions caused the current node pool state.
- { # StatusCondition describes why a cluster or a node pool has a certain status
- # (e.g., ERROR or DEGRADED).
- "code": "A String", # Machine-friendly representation of the condition
- "message": "A String", # Human-friendly representation of the condition
- },
- ],
"status": "A String", # [Output only] The status of the nodes in this pool instance.
"config": { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
- "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
- # The smallest allowed disk size is 10GB.
- #
- # If unspecified, the default disk size is 100GB.
- "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
- # workloads on the node pool.
- "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
- # workloads running on the node.
- "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
- # on the node pool.
- },
- "accelerators": [ # A list of hardware accelerators to be attached to each node.
- # See https://cloud.google.com/compute/docs/gpus for more information about
- # support for GPUs.
- { # AcceleratorConfig represents a Hardware Accelerator request.
- "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
- "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
- # [here](https://cloud.google.com/compute/docs/gpus)
- },
- ],
- "machineType": "A String", # The name of a Google Compute Engine [machine
- # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
- # `n1-standard-1`).
- #
- # If unspecified, the default machine type is
- # `n1-standard-1`.
- "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
- #
- # If unspecified, the default disk type is 'pd-standard'
- "bootDiskKmsKey": "A String", #
- # The Customer Managed Encryption Key used to encrypt the boot disk attached
- # to each node in the node pool. This should be of the form
- # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
- # For more information about protecting resources with Cloud KMS Keys please
- # see:
- # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
- "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
- "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
- #
- # Secure Boot helps ensure that the system only runs authentic software by
- # verifying the digital signature of all boot components, and halting the
- # boot process if signature verification fails.
- "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
- #
- # Enables monitoring and attestation of the boot integrity of the instance.
- # The attestation is performed against the integrity policy baseline. This
- # baseline is initially derived from the implicitly trusted boot image when
- # the instance is created.
- },
"minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be
# scheduled on the specified or newer CPU platform. Applicable values are the
# friendly names of CPU platforms, such as
@@ -3315,6 +3234,19 @@
# <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
# information, read [how to specify min CPU
# platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
+ "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
+ #
+ # Enables monitoring and attestation of the boot integrity of the instance.
+ # The attestation is performed against the integrity policy baseline. This
+ # baseline is initially derived from the implicitly trusted boot image when
+ # the instance is created.
+ "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
+ #
+ # Secure Boot helps ensure that the system only runs authentic software by
+ # verifying the digital signature of all boot components, and halting the
+ # boot process if signature verification fails.
+ },
"preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See:
# https://cloud.google.com/compute/docs/instances/preemptible for more
# inforamtion about preemptible VM instances.
@@ -3413,9 +3345,9 @@
# See
# [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
# for more information, including usage and the valid values.
- "key": "A String", # Key for taint.
- "value": "A String", # Value for taint.
"effect": "A String", # Effect for taint.
+ "value": "A String", # Value for taint.
+ "key": "A String", # Key for taint.
},
],
"labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
@@ -3428,16 +3360,52 @@
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
"a_key": "A String",
},
+ "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
+ # The smallest allowed disk size is 10GB.
+ #
+ # If unspecified, the default disk size is 100GB.
+ "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
+ # workloads on the node pool.
+ "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
+ # workloads running on the node.
+ "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
+ # on the node pool.
+ },
+ "accelerators": [ # A list of hardware accelerators to be attached to each node.
+ # See https://cloud.google.com/compute/docs/gpus for more information about
+ # support for GPUs.
+ { # AcceleratorConfig represents a Hardware Accelerator request.
+ "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
+ # [here](https://cloud.google.com/compute/docs/gpus)
+ "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
+ },
+ ],
+ "machineType": "A String", # The name of a Google Compute Engine [machine
+ # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
+ # `n1-standard-1`).
+ #
+ # If unspecified, the default machine type is
+ # `n1-standard-1`.
+ "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+ #
+ # If unspecified, the default disk type is 'pd-standard'
+ "bootDiskKmsKey": "A String", #
+ # The Customer Managed Encryption Key used to encrypt the boot disk attached
+ # to each node in the node pool. This should be of the form
+ # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+ # For more information about protecting resources with Cloud KMS Keys please
+ # see:
+ # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
},
- "name": "A String", # The name of the node pool.
"maxPodsConstraint": { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
# simultaneously on a node in the node pool.
"maxPodsPerNode": "A String", # Constraint enforced on the max num of pods per node.
},
+ "name": "A String", # The name of the node pool.
"management": { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
# node pool.
- "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"autoRepair": True or False, # Whether the nodes will be automatically repaired.
+ "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
# the Auto Upgrades will proceed.
"description": "A String", # [Output only] This field is set when upgrades are about to commence
@@ -3447,19 +3415,79 @@
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
},
},
+ "statusMessage": "A String", # [Output only] Additional information about the current status of this
+ # node pool instance, if available.
+ "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
+ # only if a valid configuration is present.
+ # adjust the size of the node pool to the current cluster usage.
+ "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+ # has to enough quota to scale up the cluster.
+ "autoprovisioned": True or False, # Can this node pool be deleted automatically.
+ "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <=
+ # max_node_count.
+ "enabled": True or False, # Is autoscaling enabled for this node pool.
+ },
+ "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your
+ # Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+ # is sufficient for this number of instances. You must also have available
+ # firewall and routes quota.
+ "locations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # NodePool's nodes should be located.
+ "A String",
+ ],
+ "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
+ # disruption caused by an upgrade.
+ #
+ # maxUnavailable controls the number of nodes that can be simultaneously
+ # unavailable.
+ #
+ # maxSurge controls the number of additional nodes that can be added to the
+ # node pool temporarily for the time of the upgrade to increase the number of
+ # available nodes.
+ #
+ # (maxUnavailable + maxSurge) determines the level of parallelism (how many
+ # nodes are being upgraded at the same time).
+ #
+ # Note: upgrades inevitably introduce some disruption since workloads need to
+ # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+ # this holds true. (Disruption stays within the limits of
+ # PodDisruptionBudget, if it is configured.)
+ #
+ # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+ # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+ # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+ # down 3 old (not yet upgraded) nodes at the same time. This ensures that
+ # there are always at least 4 nodes available.
+ "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
+ # the upgrade process. A node is considered available if its status is
+ # Ready.
+ "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
+ # of the node pool during the upgrade process.
+ },
+ "selfLink": "A String", # [Output only] Server-defined URL for the resource.
+ "version": "A String", # The version of the Kubernetes of this node.
+ "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance
+ # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+ # associated with this node pool.
+ "A String",
+ ],
+ "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool.
+ "conditions": [ # Which conditions caused the current node pool state.
+ { # StatusCondition describes why a cluster or a node pool has a certain status
+ # (e.g., ERROR or DEGRADED).
+ "code": "A String", # Machine-friendly representation of the condition
+ "message": "A String", # Human-friendly representation of the condition
+ },
+ ],
},
],
+ "locations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # cluster's nodes should be located.
+ "A String",
+ ],
"selfLink": "A String", # [Output only] Server-defined URL for the resource.
- "servicesIpv4Cidr": "A String", # [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.
- "networkPolicy": { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
- # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
- "enabled": True or False, # Whether network policy is enabled on the cluster.
- "provider": "A String", # The selected network policy provider.
- },
"releaseChannel": { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
# subscribed to. Release channels are arranged in order of risk and
# frequency of updates.
@@ -3470,6 +3498,16 @@
# fields (e.g. current_master_version) return an error.
"channel": "A String", # channel specifies which release channel the cluster is subscribed to.
},
+ "networkPolicy": { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
+ # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+ "provider": "A String", # The selected network policy provider.
+ "enabled": True or False, # Whether network policy is enabled on the cluster.
+ },
+ "servicesIpv4Cidr": "A String", # [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.
"enableKubernetesAlpha": True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
# API groups (e.g. v1beta1) and features that may not be production ready in
# the kubernetes version of the master and nodes.
@@ -3517,8 +3555,8 @@
"workloadIdentityConfig": { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
# policies.
# policies.
- "identityNamespace": "A String", # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
"workloadPool": "A String", # The workload pool to attach all Kubernetes service accounts to.
+ "identityNamespace": "A String", # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
},
"zone": "A String", # [Output only] The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
@@ -3547,55 +3585,6 @@
#
# If unspecified, the defaults are used.
# This field is deprecated, use node_pool.config instead.
- "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
- # The smallest allowed disk size is 10GB.
- #
- # If unspecified, the default disk size is 100GB.
- "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
- # workloads on the node pool.
- "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
- # workloads running on the node.
- "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
- # on the node pool.
- },
- "accelerators": [ # A list of hardware accelerators to be attached to each node.
- # See https://cloud.google.com/compute/docs/gpus for more information about
- # support for GPUs.
- { # AcceleratorConfig represents a Hardware Accelerator request.
- "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
- "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
- # [here](https://cloud.google.com/compute/docs/gpus)
- },
- ],
- "machineType": "A String", # The name of a Google Compute Engine [machine
- # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
- # `n1-standard-1`).
- #
- # If unspecified, the default machine type is
- # `n1-standard-1`.
- "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
- #
- # If unspecified, the default disk type is 'pd-standard'
- "bootDiskKmsKey": "A String", #
- # The Customer Managed Encryption Key used to encrypt the boot disk attached
- # to each node in the node pool. This should be of the form
- # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
- # For more information about protecting resources with Cloud KMS Keys please
- # see:
- # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
- "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
- "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
- #
- # Secure Boot helps ensure that the system only runs authentic software by
- # verifying the digital signature of all boot components, and halting the
- # boot process if signature verification fails.
- "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
- #
- # Enables monitoring and attestation of the boot integrity of the instance.
- # The attestation is performed against the integrity policy baseline. This
- # baseline is initially derived from the implicitly trusted boot image when
- # the instance is created.
- },
"minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be
# scheduled on the specified or newer CPU platform. Applicable values are the
# friendly names of CPU platforms, such as
@@ -3603,6 +3592,19 @@
# <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
# information, read [how to specify min CPU
# platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options.
+ "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled.
+ #
+ # Enables monitoring and attestation of the boot integrity of the instance.
+ # The attestation is performed against the integrity policy baseline. This
+ # baseline is initially derived from the implicitly trusted boot image when
+ # the instance is created.
+ "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled.
+ #
+ # Secure Boot helps ensure that the system only runs authentic software by
+ # verifying the digital signature of all boot components, and halting the
+ # boot process if signature verification fails.
+ },
"preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See:
# https://cloud.google.com/compute/docs/instances/preemptible for more
# inforamtion about preemptible VM instances.
@@ -3701,9 +3703,9 @@
# See
# [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
# for more information, including usage and the valid values.
- "key": "A String", # Key for taint.
- "value": "A String", # Value for taint.
"effect": "A String", # Effect for taint.
+ "value": "A String", # Value for taint.
+ "key": "A String", # Key for taint.
},
],
"labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
@@ -3716,14 +3718,52 @@
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
"a_key": "A String",
},
+ "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB.
+ # The smallest allowed disk size is 10GB.
+ #
+ # If unspecified, the default disk size is 100GB.
+ "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
+ # workloads on the node pool.
+ "nodeMetadata": "A String", # NodeMetadata is the configuration for how to expose metadata to the
+ # workloads running on the node.
+ "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running
+ # on the node pool.
+ },
+ "accelerators": [ # A list of hardware accelerators to be attached to each node.
+ # See https://cloud.google.com/compute/docs/gpus for more information about
+ # support for GPUs.
+ { # AcceleratorConfig represents a Hardware Accelerator request.
+ "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators
+ # [here](https://cloud.google.com/compute/docs/gpus)
+ "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance.
+ },
+ ],
+ "machineType": "A String", # The name of a Google Compute Engine [machine
+ # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
+ # `n1-standard-1`).
+ #
+ # If unspecified, the default machine type is
+ # `n1-standard-1`.
+ "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+ #
+ # If unspecified, the default disk type is 'pd-standard'
+ "bootDiskKmsKey": "A String", #
+ # The Customer Managed Encryption Key used to encrypt the boot disk attached
+ # to each node in the node pool. This should be of the form
+ # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+ # For more information about protecting resources with Cloud KMS Keys please
+ # see:
+ # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+ },
+ "tpuConfig": { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
+ "useServiceNetworking": True or False, # Whether to use service networking for Cloud TPU or not.
+ "ipv4CidrBlock": "A String", # IPv4 CIDR block reserved for Cloud TPU in the VPC.
+ "enabled": True or False, # Whether Cloud TPU integration is enabled or not.
},
"status": "A String", # [Output only] The current status of this cluster.
- "tpuConfig": { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
- "enabled": True or False, # Whether Cloud TPU integration is enabled or not.
- "ipv4CidrBlock": "A String", # IPv4 CIDR block reserved for Cloud TPU in the VPC.
- "useServiceNetworking": True or False, # Whether to use service networking for Cloud TPU or not.
- },
"networkConfig": { # NetworkConfig reports the relative names of network & subnetwork. # Configuration for cluster networking.
+ "enableIntraNodeVisibility": True or False, # Whether Intra-node visibility is enabled for this cluster.
+ # This makes same node pod to pod traffic visible for VPC network.
"subnetwork": "A String", # Output only. The relative name of the Google Compute Engine
# [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
# cluster is connected. Example:
@@ -3732,8 +3772,13 @@
# network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
# to which the cluster is connected. Example:
# projects/my-project/global/networks/my-network
- "enableIntraNodeVisibility": True or False, # Whether Intra-node visibility is enabled for this cluster.
- # This makes same node pod to pod traffic visible for VPC network.
+ "defaultSnatStatus": { # DefaultSnatStatus contains the desired state of whether default sNAT should # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+ # will be disabled when default_snat_status is disabled. When disabled is set
+ # to false, default IP masquerade rules will be applied to the nodes to
+ # prevent sNAT on cluster internal traffic.
+ # be disabled on the cluster.
+ "disabled": True or False, # Disables cluster default sNAT rules.
+ },
},
"name": "A String", # 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
@@ -3742,17 +3787,17 @@
# * Lowercase letters, numbers, and hyphens only.
# * Must start with a letter.
# * Must end with a number or a letter.
+ "location": "A String", # [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.
"endpoint": "A 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.
- "location": "A String", # [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.
"createTime": "A String", # [Output only] The time the cluster was created, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterIpv4Cidr": "A String", # The IP address range of the container pods in this cluster, in
@@ -3763,6 +3808,11 @@
# required by Cluster Autoscaler to automatically adjust
# the size of the cluster and create/delete
# node pools based on the current needs.
+ "autoprovisioningLocations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # NodePool's nodes can be created by NAP.
+ "A String",
+ ],
"resourceLimits": [ # Contains global constraints regarding minimum and maximum
# amount of resources in the cluster.
{ # Contains information about amount of some resource in the cluster.
@@ -3777,14 +3827,20 @@
"autoprovisioningNodePoolDefaults": { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
# created by NAP.
# by NAP.
- "oauthScopes": [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
- # specified, service_account should be empty.
- "A String",
- ],
+ "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. If
+ # service_account is specified, scopes should be empty.
+ "minCpuPlatform": "A String", # Minimum CPU platform to be used for NAP created node pools.
+ # The instance may be scheduled on the specified or newer CPU platform.
+ # Applicable values are the friendly names of CPU platforms, such as
+ # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+ # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+ # information, read [how to specify min CPU
+ # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ # To unset the min cpu platform field pass "automatic" as field value.
"management": { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
# node pool.
- "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"autoRepair": True or False, # Whether the nodes will be automatically repaired.
+ "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
"upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
# the Auto Upgrades will proceed.
"description": "A String", # [Output only] This field is set when upgrades are about to commence
@@ -3794,14 +3850,10 @@
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
},
},
- "minCpuPlatform": "A String", # Minimum CPU platform to be used for NAP created node pools.
- # The instance may be scheduled on the specified or newer CPU platform.
- # Applicable values are the friendly names of CPU platforms, such as
- # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
- # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
- # information, read [how to specify min CPU
- # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
- # To unset the min cpu platform field pass "automatic" as field value.
+ "oauthScopes": [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
+ # specified, service_account should be empty.
+ "A String",
+ ],
"upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
# disruption caused by an upgrade.
#
@@ -3825,20 +3877,13 @@
# simultaneously. It creates 2 additional (upgraded) nodes, then it brings
# down 3 old (not yet upgraded) nodes at the same time. This ensures that
# there are always at least 4 nodes available.
- "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
- # of the node pool during the upgrade process.
"maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
# the upgrade process. A node is considered available if its status is
# Ready.
+ "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
+ # of the node pool during the upgrade process.
},
- "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. If
- # service_account is specified, scopes should be empty.
},
- "autoprovisioningLocations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # NodePool's nodes can be created by NAP.
- "A String",
- ],
},
"initialNodeCount": 42, # The number of nodes to create in this cluster. You must ensure that your
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
@@ -3853,30 +3898,6 @@
"instanceGroupUrls": [ # Deprecated. Use node_pools.instance_group_urls.
"A String",
],
- "privateClusterConfig": { # Configuration options for private clusters. # Configuration for private cluster.
- "privateEndpoint": "A String", # Output only. The internal IP address of this cluster's master endpoint.
- "enablePrivateEndpoint": True or False, # Whether the master's internal IP address is used as the cluster endpoint.
- "peeringName": "A String", # Output only. The peering name in the customer VPC used by this cluster.
- "masterGlobalAccessConfig": { # Configuration for controlling master global access settings. # Controls master global access settings.
- "enabled": True or False, # Whenever master is accessible globally or not.
- },
- "publicEndpoint": "A String", # Output only. The external IP address of this cluster's master endpoint.
- "enablePrivateNodes": True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
- # given only RFC 1918 private addresses and communicate with the master via
- # private networking.
- "masterIpv4CidrBlock": "A String", # The IP range in CIDR notation to use for the hosted master network. This
- # range will be used for assigning internal IP addresses to the master or
- # set of masters, as well as the ILB VIP. This range must not overlap with
- # any other ranges in use within the cluster's network.
- },
- "shieldedNodes": { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
- "enabled": True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
- },
- "verticalPodAutoscaling": { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
- # required by Vertical Pod Autoscaler to automatically adjust
- # the resources of pods controlled by it.
- "enabled": True or False, # Enables vertical pod autoscaling.
- },
},
],
"missingZones": [ # If any zones are listed here, the list of clusters returned
@@ -3907,13 +3928,13 @@
The object takes the form of:
{ # SetLocationsRequest sets the locations of the cluster.
+ "clusterId": "A String", # Required. Deprecated. The name of the cluster to upgrade.
+ # This field has been deprecated and replaced by the name field.
+ "name": "A String", # The name (project, location, cluster) of the cluster to set locations.
+ # Specified in the format `projects/*/locations/*/clusters/*`.
"projectId": "A String", # Required. Deprecated. The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# This field has been deprecated and replaced by the name field.
- "zone": "A String", # Required. Deprecated. The name of the Google Compute Engine
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
- # cluster resides. This field has been deprecated and replaced by the name
- # field.
"locations": [ # Required. The desired list of Google Compute Engine
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
# cluster's nodes should be located. Changing the locations a cluster is in
@@ -3923,10 +3944,10 @@
# This list must always include the cluster's primary zone.
"A String",
],
- "clusterId": "A String", # Required. Deprecated. The name of the cluster to upgrade.
- # This field has been deprecated and replaced by the name field.
- "name": "A String", # The name (project, location, cluster) of the cluster to set locations.
- # Specified in the format `projects/*/locations/*/clusters/*`.
+ "zone": "A String", # Required. Deprecated. The name of the Google Compute Engine
+ # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ # cluster resides. This field has been deprecated and replaced by the name
+ # field.
}
x__xgafv: string, V1 error format.
@@ -3939,6 +3960,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -3946,13 +3972,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -3963,11 +3989,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -3981,19 +4002,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4015,6 +4036,15 @@
The object takes the form of:
{ # SetLoggingServiceRequest sets the logging service of a cluster.
+ "projectId": "A String", # Required. Deprecated. The Google Developers Console [project ID or project
+ # number](https://support.google.com/cloud/answer/6158840).
+ # This field has been deprecated and replaced by the name field.
+ "zone": "A String", # Required. Deprecated. The name of the Google Compute Engine
+ # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ # cluster resides. This field has been deprecated and replaced by the name
+ # field.
+ "clusterId": "A String", # Required. Deprecated. The name of the cluster to upgrade.
+ # This field has been deprecated and replaced by the name field.
"loggingService": "A String", # Required. The logging service the cluster should use to write logs.
# Currently available options:
#
@@ -4028,15 +4058,6 @@
# used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
"name": "A String", # The name (project, location, cluster) of the cluster to set logging.
# Specified in the format `projects/*/locations/*/clusters/*`.
- "projectId": "A String", # Required. Deprecated. The Google Developers Console [project ID or project
- # number](https://support.google.com/cloud/answer/6158840).
- # This field has been deprecated and replaced by the name field.
- "zone": "A String", # Required. Deprecated. The name of the Google Compute Engine
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
- # cluster resides. This field has been deprecated and replaced by the name
- # field.
- "clusterId": "A String", # Required. Deprecated. The name of the cluster to upgrade.
- # This field has been deprecated and replaced by the name field.
}
x__xgafv: string, V1 error format.
@@ -4049,6 +4070,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -4056,13 +4082,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -4073,11 +4099,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -4091,19 +4112,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4125,13 +4146,11 @@
The object takes the form of:
{ # UpdateMasterRequest updates the master of the cluster.
+ "name": "A String", # The name (project, location, cluster) of the cluster to update.
+ # Specified in the format `projects/*/locations/*/clusters/*`.
"projectId": "A String", # Required. Deprecated. The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# This field has been deprecated and replaced by the name field.
- "zone": "A String", # Required. Deprecated. The name of the Google Compute Engine
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
- # cluster resides. This field has been deprecated and replaced by the name
- # field.
"masterVersion": "A String", # Required. The Kubernetes version to change the master to.
#
# Users may specify either explicit versions offered by
@@ -4142,10 +4161,12 @@
# - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
# - "1.X.Y-gke.N": picks an explicit Kubernetes version
# - "-": picks the default Kubernetes version
+ "zone": "A String", # Required. Deprecated. The name of the Google Compute Engine
+ # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ # cluster resides. This field has been deprecated and replaced by the name
+ # field.
"clusterId": "A String", # Required. Deprecated. The name of the cluster to upgrade.
# This field has been deprecated and replaced by the name field.
- "name": "A String", # The name (project, location, cluster) of the cluster to update.
- # Specified in the format `projects/*/locations/*/clusters/*`.
}
x__xgafv: string, V1 error format.
@@ -4158,6 +4179,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -4165,13 +4191,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -4182,11 +4208,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -4200,19 +4221,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4268,6 +4289,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -4275,13 +4301,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -4292,11 +4318,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -4310,19 +4331,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4378,6 +4399,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -4385,13 +4411,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -4402,11 +4428,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -4420,19 +4441,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4451,20 +4472,19 @@
The object takes the form of:
{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
- "clusterId": "A String", # Required. The name of the cluster to update.
+ "name": "A String", # The name (project, location, cluster id) of the cluster to set maintenance
+ # policy.
+ # Specified in the format `projects/*/locations/*/clusters/*`.
"maintenancePolicy": { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Required. The maintenance policy to be set for the cluster. An empty field
# clears the existing maintenance policy.
- "resourceVersion": "A String", # A hash identifying the version of this policy, so that updates to fields of
- # the policy won't accidentally undo intermediate changes (and so that users
- # of the API unaware of some fields won't accidentally remove other fields).
- # Make a <code>get()</code> request to the cluster to get the current
- # resource version and include it with requests to set the policy.
"window": { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
- "dailyMaintenanceWindow": { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
- "duration": "A String", # [Output only] Duration of the time window, automatically chosen to be
- # smallest possible in the given scenario.
- "startTime": "A String", # Time within the maintenance window to start the maintenance operations.
- # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+ "maintenanceExclusions": { # Exceptions to maintenance window. Non-emergency maintenance should not
+ # occur in these windows.
+ "a_key": { # Represents an arbitrary window of time.
+ "startTime": "A String", # The time that the window first starts.
+ "endTime": "A String", # The time that the window ends. The end time should take place after the
+ # start time.
+ },
},
"recurringWindow": { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
# maintenance to occur. The time windows may be overlapping. If no
@@ -4497,29 +4517,30 @@
# to specify duration of the window and when it first starts.
# The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
"window": { # Represents an arbitrary window of time. # The window of the first recurrence.
+ "startTime": "A String", # The time that the window first starts.
"endTime": "A String", # The time that the window ends. The end time should take place after the
# start time.
- "startTime": "A String", # The time that the window first starts.
},
},
- "maintenanceExclusions": { # Exceptions to maintenance window. Non-emergency maintenance should not
- # occur in these windows.
- "a_key": { # Represents an arbitrary window of time.
- "endTime": "A String", # The time that the window ends. The end time should take place after the
- # start time.
- "startTime": "A String", # The time that the window first starts.
- },
+ "dailyMaintenanceWindow": { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
+ "duration": "A String", # [Output only] Duration of the time window, automatically chosen to be
+ # smallest possible in the given scenario.
+ "startTime": "A String", # Time within the maintenance window to start the maintenance operations.
+ # It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
},
},
+ "resourceVersion": "A String", # A hash identifying the version of this policy, so that updates to fields of
+ # the policy won't accidentally undo intermediate changes (and so that users
+ # of the API unaware of some fields won't accidentally remove other fields).
+ # Make a <code>get()</code> request to the cluster to get the current
+ # resource version and include it with requests to set the policy.
},
- "name": "A String", # The name (project, location, cluster id) of the cluster to set maintenance
- # policy.
- # Specified in the format `projects/*/locations/*/clusters/*`.
"projectId": "A String", # Required. The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
"zone": "A String", # Required. The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# cluster resides.
+ "clusterId": "A String", # Required. The name of the cluster to update.
}
x__xgafv: string, V1 error format.
@@ -4532,6 +4553,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -4539,13 +4565,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -4556,11 +4582,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -4574,19 +4595,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4655,6 +4676,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -4662,13 +4688,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -4679,11 +4705,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -4697,19 +4718,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4742,8 +4763,8 @@
# This field has been deprecated and replaced by the name field.
"networkPolicy": { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
# https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
- "enabled": True or False, # Whether network policy is enabled on the cluster.
"provider": "A String", # The selected network policy provider.
+ "enabled": True or False, # Whether network policy is enabled on the cluster.
},
"name": "A String", # The name (project, location, cluster id) of the cluster to set networking
# policy. Specified in the format `projects/*/locations/*/clusters/*`.
@@ -4759,6 +4780,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -4766,13 +4792,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -4783,11 +4809,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -4801,19 +4822,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4845,9 +4866,9 @@
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# cluster resides. This field has been deprecated and replaced by the name
# field.
+ "rotateCredentials": True or False, # Whether to rotate credentials during IP rotation.
"clusterId": "A String", # Required. Deprecated. The name of the cluster.
# This field has been deprecated and replaced by the name field.
- "rotateCredentials": True or False, # Whether to rotate credentials during IP rotation.
}
x__xgafv: string, V1 error format.
@@ -4860,6 +4881,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -4867,13 +4893,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -4884,11 +4910,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -4902,19 +4923,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>
@@ -4936,6 +4957,8 @@
The object takes the form of:
{ # UpdateClusterRequest updates the settings of a cluster.
+ "name": "A String", # The name (project, location, cluster) of the cluster to update.
+ # Specified in the format `projects/*/locations/*/clusters/*`.
"projectId": "A String", # Required. Deprecated. The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# This field has been deprecated and replaced by the name field.
@@ -4948,7 +4971,170 @@
"update": { # ClusterUpdate describes an update to the cluster. Exactly one update can # Required. A description of the update.
# be applied to a cluster with each request, so at most one field can be
# provided.
+ "desiredNodeVersion": "A String", # The Kubernetes version to change the nodes to (typically an
+ # upgrade).
+ #
+ # Users may specify either explicit versions offered by
+ # Kubernetes Engine or version aliases, which have the following behavior:
+ #
+ # - "latest": picks the highest valid Kubernetes version
+ # - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+ # - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+ # - "1.X.Y-gke.N": picks an explicit Kubernetes version
+ # - "-": picks the Kubernetes master version
+ "desiredClusterAutoscaling": { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
+ # required by Cluster Autoscaler to automatically adjust
+ # the size of the cluster and create/delete
+ # node pools based on the current needs.
+ "autoprovisioningLocations": [ # The list of Google Compute Engine
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ # NodePool's nodes can be created by NAP.
+ "A String",
+ ],
+ "resourceLimits": [ # Contains global constraints regarding minimum and maximum
+ # amount of resources in the cluster.
+ { # Contains information about amount of some resource in the cluster.
+ # For memory, value should be in GB.
+ "maximum": "A String", # Maximum amount of the resource in the cluster.
+ "resourceType": "A String", # Resource name "cpu", "memory" or gpu-specific string.
+ "minimum": "A String", # Minimum amount of the resource in the cluster.
+ },
+ ],
+ "autoscalingProfile": "A String", # Defines autoscaling behaviour.
+ "enableNodeAutoprovisioning": True or False, # Enables automatic node pool creation and deletion.
+ "autoprovisioningNodePoolDefaults": { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
+ # created by NAP.
+ # by NAP.
+ "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. If
+ # service_account is specified, scopes should be empty.
+ "minCpuPlatform": "A String", # Minimum CPU platform to be used for NAP created node pools.
+ # The instance may be scheduled on the specified or newer CPU platform.
+ # Applicable values are the friendly names of CPU platforms, such as
+ # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
+ # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
+ # information, read [how to specify min CPU
+ # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ # To unset the min cpu platform field pass "automatic" as field value.
+ "management": { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
+ # node pool.
+ "autoRepair": True or False, # Whether the nodes will be automatically repaired.
+ "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
+ "upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
+ # the Auto Upgrades will proceed.
+ "description": "A String", # [Output only] This field is set when upgrades are about to commence
+ # with the description of the upgrade.
+ "autoUpgradeStartTime": "A String", # [Output only] This field is set when upgrades are about to commence
+ # with the approximate start time for the upgrades, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+ },
+ },
+ "oauthScopes": [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
+ # specified, service_account should be empty.
+ "A String",
+ ],
+ "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
+ # disruption caused by an upgrade.
+ #
+ # maxUnavailable controls the number of nodes that can be simultaneously
+ # unavailable.
+ #
+ # maxSurge controls the number of additional nodes that can be added to the
+ # node pool temporarily for the time of the upgrade to increase the number of
+ # available nodes.
+ #
+ # (maxUnavailable + maxSurge) determines the level of parallelism (how many
+ # nodes are being upgraded at the same time).
+ #
+ # Note: upgrades inevitably introduce some disruption since workloads need to
+ # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+ # this holds true. (Disruption stays within the limits of
+ # PodDisruptionBudget, if it is configured.)
+ #
+ # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+ # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+ # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+ # down 3 old (not yet upgraded) nodes at the same time. This ensures that
+ # there are always at least 4 nodes available.
+ "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
+ # the upgrade process. A node is considered available if its status is
+ # Ready.
+ "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
+ # of the node pool during the upgrade process.
+ },
+ },
+ },
+ "desiredPodSecurityPolicyConfig": { # Configuration for the PodSecurityPolicy feature. # The desired configuration options for the PodSecurityPolicy feature.
+ "enabled": True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+ # must be valid under a PodSecurityPolicy to be created.
+ },
+ "desiredIntraNodeVisibilityConfig": { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
+ # visibility on this cluster.
+ "enabled": True or False, # Enables intra node visibility for this cluster.
+ },
+ "desiredMasterAuthorizedNetworksConfig": { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
+ # 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.
+ "enabled": True or False, # Whether or not master authorized networks is enabled.
+ "cidrBlocks": [ # cidr_blocks define up to 10 external networks that could access
+ # Kubernetes master through HTTPS.
+ { # CidrBlock contains an optional name and one CIDR block.
+ "cidrBlock": "A String", # cidr_block must be specified in CIDR notation.
+ "displayName": "A String", # display_name is an optional field for users to identify CIDR blocks.
+ },
+ ],
+ },
+ "desiredResourceUsageExportConfig": { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
+ "enableNetworkEgressMetering": True or False, # Whether to enable network egress metering for this cluster. If enabled, a
+ # daemonset will be created in the cluster to meter network egress traffic.
+ "consumptionMeteringConfig": { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
+ "enabled": True or False, # Whether to enable consumption metering for this cluster. If enabled, a
+ # second BigQuery table will be created to hold resource consumption
+ # records.
+ },
+ "bigqueryDestination": { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
+ "datasetId": "A String", # The ID of a BigQuery Dataset.
+ },
+ },
+ "desiredMonitoringService": "A String", # The monitoring service the cluster should use to write metrics.
+ # Currently available options:
+ #
+ # * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+ # service with a Kubernetes-native resource model
+ # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+ # longer available as of GKE 1.15).
+ # * `none` - No metrics will be exported from the cluster.
+ #
+ # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+ # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+ "desiredImageType": "A String", # The desired image type for the node pool.
+ # NOTE: Set the "desired_node_pool" field as well.
+ "desiredWorkloadIdentityConfig": { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
+ # policies.
+ "workloadPool": "A String", # The workload pool to attach all Kubernetes service accounts to.
+ "identityNamespace": "A String", # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+ },
+ "desiredReleaseChannel": { # ReleaseChannel indicates which release channel a cluster is # The desired release channel configuration.
+ # subscribed to. Release channels are arranged in order of risk and
+ # frequency of updates.
+ #
+ # When a cluster is subscribed to a release channel, Google maintains
+ # both the master version and the node version. Node auto-upgrade
+ # defaults to true and cannot be disabled. Updates to version related
+ # fields (e.g. current_master_version) return an error.
+ "channel": "A String", # channel specifies which release channel the cluster is subscribed to.
+ },
+ "desiredShieldedNodes": { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
+ "enabled": True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
+ },
"desiredPrivateClusterConfig": { # Configuration options for private clusters. # The desired private cluster configuration.
+ "masterIpv4CidrBlock": "A String", # The IP range in CIDR notation to use for the hosted master network. This
+ # range will be used for assigning internal IP addresses to the master or
+ # set of masters, as well as the ILB VIP. This range must not overlap with
+ # any other ranges in use within the cluster's network.
+ "enablePrivateNodes": True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
+ # given only RFC 1918 private addresses and communicate with the master via
+ # private networking.
"privateEndpoint": "A String", # Output only. The internal IP address of this cluster's master endpoint.
"enablePrivateEndpoint": True or False, # Whether the master's internal IP address is used as the cluster endpoint.
"peeringName": "A String", # Output only. The peering name in the customer VPC used by this cluster.
@@ -4956,13 +5142,6 @@
"enabled": True or False, # Whenever master is accessible globally or not.
},
"publicEndpoint": "A String", # Output only. The external IP address of this cluster's master endpoint.
- "enablePrivateNodes": True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
- # given only RFC 1918 private addresses and communicate with the master via
- # private networking.
- "masterIpv4CidrBlock": "A String", # The IP range in CIDR notation to use for the hosted master network. This
- # range will be used for assigning internal IP addresses to the master or
- # set of masters, as well as the ILB VIP. This range must not overlap with
- # any other ranges in use within the cluster's network.
},
"desiredVerticalPodAutoscaling": { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
# required by Vertical Pod Autoscaler to automatically adjust
@@ -4975,31 +5154,6 @@
},
"desiredAddonsConfig": { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
# cluster, enabling additional functionality.
- "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- # is enabled or not on the Master, it does not track whether network policy
- # is enabled for the nodes.
- "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
- },
- "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
- # extension to manage hosted GCP services through the Kubernetes API
- "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
- },
- "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
- # enabled in order to enable Cloud Run addon. This option can only be enabled
- # at cluster creation time.
- "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
- },
- "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- # increases or decreases the number of replica pods a replication controller
- # has based on the resource usage of the existing pods.
- "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
- # When enabled, it ensures that metrics are collected into Stackdriver
- # Monitoring.
- },
"httpLoadBalancing": { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
# makes it easy to set up HTTP load balancers for services in a cluster.
# which makes it easy to set up HTTP load balancers for services in a cluster.
@@ -5027,144 +5181,60 @@
},
"istioConfig": { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
# microservices.
- "disabled": True or False, # Whether Istio is enabled for this cluster.
"auth": "A String", # The specified Istio auth mode, either none, or mutual TLS.
+ "disabled": True or False, # Whether Istio is enabled for this cluster.
},
- },
- "desiredNodeVersion": "A String", # The Kubernetes version to change the nodes to (typically an
- # upgrade).
- #
- # Users may specify either explicit versions offered by
- # Kubernetes Engine or version aliases, which have the following behavior:
- #
- # - "latest": picks the highest valid Kubernetes version
- # - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
- # - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
- # - "1.X.Y-gke.N": picks an explicit Kubernetes version
- # - "-": picks the Kubernetes master version
- "desiredIntraNodeVisibilityConfig": { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
- # visibility on this cluster.
- "enabled": True or False, # Enables intra node visibility for this cluster.
- },
- "desiredPodSecurityPolicyConfig": { # Configuration for the PodSecurityPolicy feature. # The desired configuration options for the PodSecurityPolicy feature.
- "enabled": True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
- # must be valid under a PodSecurityPolicy to be created.
- },
- "desiredClusterAutoscaling": { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
- # required by Cluster Autoscaler to automatically adjust
- # the size of the cluster and create/delete
- # node pools based on the current needs.
- "resourceLimits": [ # Contains global constraints regarding minimum and maximum
- # amount of resources in the cluster.
- { # Contains information about amount of some resource in the cluster.
- # For memory, value should be in GB.
- "maximum": "A String", # Maximum amount of the resource in the cluster.
- "resourceType": "A String", # Resource name "cpu", "memory" or gpu-specific string.
- "minimum": "A String", # Minimum amount of the resource in the cluster.
- },
- ],
- "autoscalingProfile": "A String", # Defines autoscaling behaviour.
- "enableNodeAutoprovisioning": True or False, # Enables automatic node pool creation and deletion.
- "autoprovisioningNodePoolDefaults": { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
- # created by NAP.
- # by NAP.
- "oauthScopes": [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
- # specified, service_account should be empty.
- "A String",
- ],
- "management": { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
- # node pool.
- "autoUpgrade": True or False, # Whether the nodes will be automatically upgraded.
- "autoRepair": True or False, # Whether the nodes will be automatically repaired.
- "upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
- # the Auto Upgrades will proceed.
- "description": "A String", # [Output only] This field is set when upgrades are about to commence
- # with the description of the upgrade.
- "autoUpgradeStartTime": "A String", # [Output only] This field is set when upgrades are about to commence
- # with the approximate start time for the upgrades, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
- },
- },
- "minCpuPlatform": "A String", # Minimum CPU platform to be used for NAP created node pools.
- # The instance may be scheduled on the specified or newer CPU platform.
- # Applicable values are the friendly names of CPU platforms, such as
- # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or
- # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
- # information, read [how to specify min CPU
- # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
- # To unset the min cpu platform field pass "automatic" as field value.
- "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
- # disruption caused by an upgrade.
- #
- # maxUnavailable controls the number of nodes that can be simultaneously
- # unavailable.
- #
- # maxSurge controls the number of additional nodes that can be added to the
- # node pool temporarily for the time of the upgrade to increase the number of
- # available nodes.
- #
- # (maxUnavailable + maxSurge) determines the level of parallelism (how many
- # nodes are being upgraded at the same time).
- #
- # Note: upgrades inevitably introduce some disruption since workloads need to
- # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
- # this holds true. (Disruption stays within the limits of
- # PodDisruptionBudget, if it is configured.)
- #
- # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
- # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
- # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
- # down 3 old (not yet upgraded) nodes at the same time. This ensures that
- # there are always at least 4 nodes available.
- "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size
- # of the node pool during the upgrade process.
- "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during
- # the upgrade process. A node is considered available if its status is
- # Ready.
- },
- "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. If
- # service_account is specified, scopes should be empty.
+ "networkPolicyConfig": { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ # is enabled or not on the Master, it does not track whether network policy
+ # is enabled for the nodes.
+ "disabled": True or False, # Whether NetworkPolicy is enabled for this cluster.
},
- "autoprovisioningLocations": [ # The list of Google Compute Engine
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
- # NodePool's nodes can be created by NAP.
- "A String",
- ],
+ "cloudRunConfig": { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
+ # enabled in order to enable Cloud Run addon. This option can only be enabled
+ # at cluster creation time.
+ "disabled": True or False, # Whether Cloud Run addon is enabled for this cluster.
+ },
+ "configConnectorConfig": { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
+ # extension to manage hosted GCP services through the Kubernetes API
+ "enabled": True or False, # Whether Cloud Connector is enabled for this cluster.
+ },
+ "horizontalPodAutoscaling": { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ # increases or decreases the number of replica pods a replication controller
+ # has based on the resource usage of the existing pods.
+ "disabled": True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+ # When enabled, it ensures that metrics are collected into Stackdriver
+ # Monitoring.
+ },
},
"desiredDatabaseEncryption": { # Configuration of etcd encryption. # Configuration of etcd encryption.
"state": "A String", # Denotes the state of etcd encryption.
"keyName": "A String", # Name of CloudKMS key to use for the encryption of secrets in etcd.
# Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
},
- "desiredMasterAuthorizedNetworksConfig": { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
- # 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.
- "cidrBlocks": [ # cidr_blocks define up to 10 external networks that could access
- # Kubernetes master through HTTPS.
- { # CidrBlock contains an optional name and one CIDR block.
- "displayName": "A String", # display_name is an optional field for users to identify CIDR blocks.
- "cidrBlock": "A String", # cidr_block must be specified in CIDR notation.
- },
- ],
- "enabled": True or False, # Whether or not master authorized networks is enabled.
+ "desiredDefaultSnatStatus": { # DefaultSnatStatus contains the desired state of whether default sNAT should # The desired status of whether to disable default sNAT for this cluster.
+ # be disabled on the cluster.
+ "disabled": True or False, # Disables cluster default sNAT rules.
},
"desiredTpuConfig": { # Configuration for Cloud TPU. # The desired Cloud TPU configuration.
- "enabled": True or False, # Whether Cloud TPU integration is enabled or not.
- "ipv4CidrBlock": "A String", # IPv4 CIDR block reserved for Cloud TPU in the VPC.
"useServiceNetworking": True or False, # Whether to use service networking for Cloud TPU or not.
+ "ipv4CidrBlock": "A String", # IPv4 CIDR block reserved for Cloud TPU in the VPC.
+ "enabled": True or False, # Whether Cloud TPU integration is enabled or not.
},
- "desiredResourceUsageExportConfig": { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
- "enableNetworkEgressMetering": True or False, # Whether to enable network egress metering for this cluster. If enabled, a
- # daemonset will be created in the cluster to meter network egress traffic.
- "consumptionMeteringConfig": { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
- "enabled": True or False, # Whether to enable consumption metering for this cluster. If enabled, a
- # second BigQuery table will be created to hold resource consumption
- # records.
- },
- "bigqueryDestination": { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
- "datasetId": "A String", # The ID of a BigQuery Dataset.
- },
+ "desiredNodePoolAutoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
+ # desired_node_pool_id. If there is only one pool in the
+ # cluster and desired_node_pool_id is not provided then
+ # the change applies to that single node pool.
+ # adjust the size of the node pool to the current cluster usage.
+ "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+ # has to enough quota to scale up the cluster.
+ "autoprovisioned": True or False, # Can this node pool be deleted automatically.
+ "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <=
+ # max_node_count.
+ "enabled": True or False, # Is autoscaling enabled for this node pool.
},
"desiredLocations": [ # The desired list of Google Compute Engine
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
@@ -5175,53 +5245,13 @@
# This list must always include the cluster's primary zone.
"A String",
],
- "desiredNodePoolAutoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
- # desired_node_pool_id. If there is only one pool in the
- # cluster and desired_node_pool_id is not provided then
- # the change applies to that single node pool.
- # adjust the size of the node pool to the current cluster usage.
- "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <=
- # max_node_count.
- "autoprovisioned": True or False, # Can this node pool be deleted automatically.
- "enabled": True or False, # Is autoscaling enabled for this node pool.
- "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
- # has to enough quota to scale up the cluster.
- },
- "desiredMonitoringService": "A String", # The monitoring service the cluster should use to write metrics.
- # Currently available options:
- #
- # * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
- # service with a Kubernetes-native resource model
- # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
- # longer available as of GKE 1.15).
- # * `none` - No metrics will be exported from the cluster.
- #
- # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
- # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
- "desiredImageType": "A String", # The desired image type for the node pool.
- # NOTE: Set the "desired_node_pool" field as well.
"desiredClusterTelemetry": { # Telemetry integration for the cluster. # The desired telemetry integration for the cluster.
"type": "A String", # Type of the integration.
},
- "desiredWorkloadIdentityConfig": { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
- # policies.
- "identityNamespace": "A String", # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
- "workloadPool": "A String", # The workload pool to attach all Kubernetes service accounts to.
- },
"desiredNodePoolId": "A String", # The node pool to be upgraded. This field is mandatory if
# "desired_node_version", "desired_image_family",
# "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
# is specified and there is more than one node pool on the cluster.
- "desiredReleaseChannel": { # ReleaseChannel indicates which release channel a cluster is # The desired release channel configuration.
- # subscribed to. Release channels are arranged in order of risk and
- # frequency of updates.
- #
- # When a cluster is subscribed to a release channel, Google maintains
- # both the master version and the node version. Node auto-upgrade
- # defaults to true and cannot be disabled. Updates to version related
- # fields (e.g. current_master_version) return an error.
- "channel": "A String", # channel specifies which release channel the cluster is subscribed to.
- },
"desiredMasterVersion": "A String", # The Kubernetes version to change the master to. The only valid value is the
# latest supported version.
#
@@ -5233,9 +5263,6 @@
# - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
# - "1.X.Y-gke.N": picks an explicit Kubernetes version
# - "-": picks the default Kubernetes version
- "desiredShieldedNodes": { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
- "enabled": True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
- },
"desiredLoggingService": "A String", # The logging service the cluster should use to write logs.
# Currently available options:
#
@@ -5248,8 +5275,6 @@
# If left as an empty string,`logging.googleapis.com/kubernetes` will be
# used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
},
- "name": "A String", # The name (project, location, cluster) of the cluster to update.
- # Specified in the format `projects/*/locations/*/clusters/*`.
}
x__xgafv: string, V1 error format.
@@ -5262,6 +5287,11 @@
{ # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
+ "targetLink": "A String", # Server-defined URL for the target of the operation.
+ "detail": "A String", # Detailed operation progress, if available.
+ "operationType": "A String", # The operation type.
+ "status": "A String", # The current status of the operation.
+ "name": "A String", # The server-assigned ID for the operation.
"nodepoolConditions": [ # Which conditions caused the current node pool state.
{ # StatusCondition describes why a cluster or a node pool has a certain status
# (e.g., ERROR or DEGRADED).
@@ -5269,13 +5299,13 @@
"message": "A String", # Human-friendly representation of the condition
},
],
+ "endTime": "A String", # [Output only] The time the operation completed, in
+ # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"location": "A String", # [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.
- "endTime": "A String", # [Output only] The time the operation completed, in
- # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"startTime": "A String", # [Output only] The time the operation started, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
"clusterConditions": [ # Which conditions caused the current cluster state.
@@ -5286,11 +5316,6 @@
},
],
"progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
- "stages": [ # Substages of an operation or a stage.
- # Object with schema name: OperationProgress
- ],
- "status": "A String", # Status of an operation stage.
- # Unset for single-stage operations.
"metrics": [ # Progress metric bundle, for example:
# metrics: [{name: "nodes done", int_value: 15},
# {name: "nodes total", int_value: 32}]
@@ -5304,19 +5329,19 @@
"stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.).
},
],
+ "status": "A String", # Status of an operation stage.
+ # Unset for single-stage operations.
"name": "A String", # A non-parameterized string describing an operation stage.
# Unset for single-stage operations.
+ "stages": [ # Substages of an operation or a stage.
+ # Object with schema name: OperationProgress
+ ],
},
"zone": "A String", # The name of the Google Compute Engine
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
# operation is taking place. This field is deprecated, use location instead.
"statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error.
"selfLink": "A String", # Server-defined URL for the resource.
- "targetLink": "A String", # Server-defined URL for the target of the operation.
- "detail": "A String", # Detailed operation progress, if available.
- "operationType": "A String", # The operation type.
- "status": "A String", # The current status of the operation.
- "name": "A String", # The server-assigned ID for the operation.
}</pre>
</div>