Types for Google Container v1beta1 API¶
- class google.cloud.container_v1beta1.types.AcceleratorConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
AcceleratorConfig represents a Hardware Accelerator request.
- accelerator_count¶
The number of the accelerator cards exposed to an instance.
- Type
int
- gpu_partition_size¶
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.
- Type
str
- class google.cloud.container_v1beta1.types.AddonsConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality.
- http_load_balancing¶
Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
- horizontal_pod_autoscaling¶
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.
- kubernetes_dashboard¶
Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes- engine/docs/concepts/dashboards
- network_policy_config¶
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.
- istio_config¶
Configuration for Istio, an open platform to connect, manage, and secure microservices.
- cloud_run_config¶
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.
- dns_cache_config¶
Configuration for NodeLocalDNS, a dns cache running on cluster nodes
- config_connector_config¶
Configuration for the ConfigConnector add-on, a Kubernetes extension to manage hosted GCP services through the Kubernetes API
- gce_persistent_disk_csi_driver_config¶
Configuration for the Compute Engine Persistent Disk CSI driver.
- kalm_config¶
Configuration for the KALM addon, which manages the lifecycle of k8s applications.
- class google.cloud.container_v1beta1.types.AuthenticatorGroupsConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for returning group information from authenticators.
- enabled¶
Whether this cluster should return group membership lookups during authentication using a group of security groups.
- Type
bool
- security_group¶
The name of the security group-of-groups to be used. Only relevant if enabled = true.
- Type
str
- class google.cloud.container_v1beta1.types.AutoUpgradeOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed.
- auto_upgrade_start_time¶
[Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in RFC3339 text format.
- Type
str
- description¶
[Output only] This field is set when upgrades are about to commence with the description of the upgrade.
- Type
str
- class google.cloud.container_v1beta1.types.Autopilot(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Autopilot is the configuration for Autopilot settings on the cluster.
- enabled¶
Enable Autopilot
- Type
bool
- class google.cloud.container_v1beta1.types.AutoprovisioningNodePoolDefaults(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
- oauth_scopes¶
The set of Google API scopes to be made available on all of the node VMs under the “default” service account.
The following scopes are recommended, but not required, and by default are not included:
https://www.googleapis.com/auth/compute
is required for mounting persistent storage on your nodes.https://www.googleapis.com/auth/devstorage.read_only
is required for communicating with gcr.io (the Google Container Registry).
If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
- Type
Sequence[str]
- service_account¶
The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the “default” service account is used.
- Type
str
- upgrade_settings¶
Upgrade settings control disruption and speed of the upgrade.
- management¶
NodeManagement configuration for this NodePool.
- min_cpu_platform¶
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
minCpuPlatform: "Intel Haswell"
orminCpuPlatform: "Intel Sandy Bridge"
. For more information, read how to specify min CPU platform To unset the min cpu platform field pass “automatic” as field value.- Type
str
- disk_size_gb¶
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.
- Type
int
- disk_type¶
Type of the disk attached to each node (e.g. ‘pd-standard’, ‘pd-ssd’ or ‘pd-balanced’)
If unspecified, the default disk type is ‘pd- standard’
- Type
str
- shielded_instance_config¶
Shielded Instance options.
- boot_disk_kms_key¶
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
- Type
str
- image_type¶
The image type to use for NAP created node.
- Type
str
- class google.cloud.container_v1beta1.types.BinaryAuthorization(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for Binary Authorization.
- enabled¶
Enable Binary Authorization for this cluster. If enabled, all container images will be validated by Google Binauthz.
- Type
bool
- class google.cloud.container_v1beta1.types.CancelOperationRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
CancelOperationRequest cancels a single operation.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the operation resides. This field has been deprecated and replaced by the name field.
- Type
str
- operation_id¶
Required. Deprecated. The server-assigned
name
of the operation. This field has been deprecated and replaced by the name field.- Type
str
- name¶
The name (project, location, operation id) of the operation to cancel. Specified in the format
projects/*/locations/*/operations/*
.- Type
str
- class google.cloud.container_v1beta1.types.ClientCertificateConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for client certificates on the cluster.
- issue_client_certificate¶
Issue a client certificate.
- Type
bool
- class google.cloud.container_v1beta1.types.CloudRunConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options for the Cloud Run feature.
- disabled¶
Whether Cloud Run addon is enabled for this cluster.
- Type
bool
- load_balancer_type¶
Which load balancer type is installed for Cloud Run.
- class google.cloud.container_v1beta1.types.Cluster(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A Google Kubernetes Engine cluster.
- name¶
The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions:
Lowercase letters, numbers, and hyphens only.
Must start with a letter.
Must end with a number or a letter.
- Type
str
- description¶
An optional description of this cluster.
- Type
str
- initial_node_count¶
The number of nodes to create in this cluster. You must ensure that your Compute Engine resource quota is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a “node_pool” object, since this configuration (along with the “node_config”) will be used to create a “NodePool” object with an auto-generated name. Do not use this and a node_pool at the same time.
This field is deprecated, use node_pool.initial_node_count instead.
- Type
int
- node_config¶
Parameters used in creating the cluster’s nodes. For requests, this field should only be used in lieu of a “node_pool” object, since this configuration (along with the “initial_node_count”) will be used to create a “NodePool” object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see
node_pool.config
)If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
- master_auth¶
The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified,
username
will be set to “admin”, a random password will be generated, and a client certificate will be issued.
- logging_service¶
The logging service the cluster should use to write logs. Currently available options:
logging.googleapis.com/kubernetes
- The Cloud Logging service with a Kubernetes-native resource modellogging.googleapis.com
- The legacy Cloud Logging service (no longer available as of GKE 1.15).none
- no logs will be exported from the cluster.
If left as an empty string,
logging.googleapis.com/kubernetes
will be used for GKE 1.14+ orlogging.googleapis.com
for earlier versions.- Type
str
- monitoring_service¶
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+ ormonitoring.googleapis.com
for earlier versions.- Type
str
- network¶
The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the
default
network will be used. On output this shows the network ID instead of the name.- Type
str
- cluster_ipv4_cidr¶
The IP address range of the container pods in this cluster, in CIDR notation (e.g.
10.96.0.0/14
). Leave blank to have one automatically chosen or specify a/14
block in10.0.0.0/8
.- Type
str
- addons_config¶
Configurations for the various addons available to run in the cluster.
- subnetwork¶
The name of the Google Compute Engine subnetwork to which the cluster is connected. On output this shows the subnetwork ID instead of the name.
- Type
str
- node_pools¶
The node pools associated with this cluster. This field should not be set if “node_config” or “initial_node_count” are specified.
- Type
- locations¶
The list of Google Compute Engine zones in which the cluster’s nodes should be located.
This field provides a default value if NodePool.Locations are not specified during node pool creation.
Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.
- Type
Sequence[str]
- enable_kubernetes_alpha¶
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. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
- Type
bool
- resource_labels¶
The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
- label_fingerprint¶
The fingerprint of the set of labels for this cluster.
- Type
str
- legacy_abac¶
Configuration for the legacy ABAC authorization mode.
- network_policy¶
Configuration options for the NetworkPolicy feature.
- ip_allocation_policy¶
Configuration for cluster IP allocation.
- master_authorized_networks_config¶
The configuration options for master authorized networks feature.
- maintenance_policy¶
Configure the maintenance policy for this cluster.
- binary_authorization¶
Configuration for Binary Authorization.
- pod_security_policy_config¶
Configuration for the PodSecurityPolicy feature.
- autoscaling¶
Cluster-level autoscaling configuration.
- network_config¶
Configuration for cluster networking.
- private_cluster¶
If this is a private cluster setup. Private clusters are clusters that, by default have no external IP addresses on the nodes and where nodes and the master communicate over private IP addresses. This field is deprecated, use private_cluster_config.enable_private_nodes instead.
- Type
bool
- master_ipv4_cidr_block¶
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 master or set of masters, as well as the ILB VIP. This field is deprecated, use private_cluster_config.master_ipv4_cidr_block instead.
- Type
str
- default_max_pods_constraint¶
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.
- resource_usage_export_config¶
Configuration for exporting resource usages. Resource usage export is disabled when this config unspecified.
- authenticator_groups_config¶
Configuration controlling RBAC group membership information.
- private_cluster_config¶
Configuration for private cluster.
- vertical_pod_autoscaling¶
Cluster-level Vertical Pod Autoscaling configuration.
- shielded_nodes¶
Shielded Nodes configuration.
- release_channel¶
Release channel configuration.
- workload_identity_config¶
Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
- workload_certificates¶
Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- cluster_telemetry¶
Telemetry integration for the cluster.
- tpu_config¶
Configuration for Cloud TPU support;
- notification_config¶
Notification configuration of the cluster.
- confidential_nodes¶
Configuration of Confidential Nodes
- identity_service_config¶
Configuration for Identity Service component.
- self_link¶
[Output only] Server-defined URL for the resource.
- Type
str
- zone¶
[Output only] The name of the Google Compute Engine zone in which the cluster resides. This field is deprecated, use location instead.
- Type
str
- endpoint¶
[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.- Type
str
- initial_cluster_version¶
The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion.
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 default Kubernetes version
- Type
str
- current_master_version¶
[Output only] The current software version of the master endpoint.
- Type
str
- current_node_version¶
[Output only] Deprecated, use NodePool.version 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.
- Type
str
- status¶
[Output only] The current status of this cluster.
- status_message¶
[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.
- Type
str
- node_ipv4_cidr_size¶
[Output only] The size of the address space on each node for hosting containers. This is provisioned from within the
container_ipv4_cidr
range. This field will only be set when cluster is in route-based network mode.- Type
int
- services_ipv4_cidr¶
[Output only] The IP address range of the Kubernetes services in this cluster, in CIDR notation (e.g.
1.2.3.4/29
). Service addresses are typically put in the last/16
from the container CIDR.- Type
str
- instance_group_urls¶
Deprecated. Use node_pools.instance_group_urls.
- Type
Sequence[str]
- current_node_count¶
[Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
- Type
int
- expire_time¶
[Output only] The time the cluster will be automatically deleted in RFC3339 text format.
- Type
str
- location¶
[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.
- Type
str
- enable_tpu¶
Enable the ability to use Cloud TPUs in this cluster. This field is deprecated, use tpu_config.enabled instead.
- Type
bool
- tpu_ipv4_cidr_block¶
[Output only] The IP address range of the Cloud TPUs in this cluster, in CIDR notation (e.g.
1.2.3.4/29
).- Type
str
- database_encryption¶
Configuration of etcd encryption.
- conditions¶
Which conditions caused the current cluster state.
- Type
Sequence[google.cloud.container_v1beta1.types.StatusCondition]
- master¶
Configuration for master components.
- autopilot¶
Autopilot configuration for the cluster.
- id¶
Output only. Unique id for the cluster.
- Type
str
- node_pool_defaults¶
Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object. This field is a member of oneof
_node_pool_defaults
.
- logging_config¶
Logging configuration for the cluster.
- monitoring_config¶
Monitoring configuration for the cluster.
- class ResourceLabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.container_v1beta1.types.ClusterAutoscaling(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs.
- enable_node_autoprovisioning¶
Enables automatic node pool creation and deletion.
- Type
bool
- resource_limits¶
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
- Type
Sequence[google.cloud.container_v1beta1.types.ResourceLimit]
- autoscaling_profile¶
Defines autoscaling behaviour.
- autoprovisioning_node_pool_defaults¶
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
- class google.cloud.container_v1beta1.types.ClusterTelemetry(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Telemetry integration for the cluster.
- type_¶
Type of the integration.
- class google.cloud.container_v1beta1.types.ClusterUpdate(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ClusterUpdate describes an update to the cluster. Exactly one update can be applied to a cluster with each request, so at most one field can be provided.
- desired_node_version¶
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
- Type
str
- desired_monitoring_service¶
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+ ormonitoring.googleapis.com
for earlier versions.- Type
str
- desired_addons_config¶
Configurations for the various addons available to run in the cluster.
- desired_node_pool_id¶
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.
- Type
str
- desired_image_type¶
The desired image type for the node pool. NOTE: Set the “desired_node_pool” field as well.
- Type
str
- desired_node_pool_autoscaling¶
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.
- desired_locations¶
The desired list of Google Compute Engine zones in which the cluster’s nodes should be located.
This list must always include the cluster’s primary zone.
Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.
- Type
Sequence[str]
- desired_master_authorized_networks_config¶
The desired configuration options for master authorized networks feature.
- desired_pod_security_policy_config¶
The desired configuration options for the PodSecurityPolicy feature.
- desired_cluster_autoscaling¶
Cluster-level autoscaling configuration.
- desired_binary_authorization¶
The desired configuration options for the Binary Authorization feature.
- desired_logging_service¶
The logging service the cluster should use to write logs. Currently available options:
logging.googleapis.com/kubernetes
- The Cloud Logging service with a Kubernetes-native resource modellogging.googleapis.com
- The legacy Cloud Logging service (no longer available as of GKE 1.15).none
- no logs will be exported from the cluster.
If left as an empty string,
logging.googleapis.com/kubernetes
will be used for GKE 1.14+ orlogging.googleapis.com
for earlier versions.- Type
str
- desired_resource_usage_export_config¶
The desired configuration for exporting resource usage.
- desired_vertical_pod_autoscaling¶
Cluster-level Vertical Pod Autoscaling configuration.
- desired_private_cluster_config¶
The desired private cluster configuration.
- desired_intra_node_visibility_config¶
The desired config of Intra-node visibility.
- desired_default_snat_status¶
The desired status of whether to disable default sNAT for this cluster.
- desired_cluster_telemetry¶
The desired telemetry integration for the cluster.
- desired_release_channel¶
The desired release channel configuration.
- desired_tpu_config¶
The desired Cloud TPU configuration.
- desired_l4ilb_subsetting_config¶
The desired L4 Internal Load Balancer Subsetting configuration.
- desired_datapath_provider¶
The desired datapath provider for the cluster.
- desired_private_ipv6_google_access¶
The desired state of IPv6 connectivity to Google Services.
- desired_notification_config¶
The desired notification configuration.
- desired_master_version¶
The Kubernetes version to change the master to. The only valid value is the latest supported version. 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 default Kubernetes version
- Type
str
- desired_database_encryption¶
Configuration of etcd encryption.
- desired_workload_identity_config¶
Configuration for Workload Identity.
- desired_workload_certificates¶
Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- desired_shielded_nodes¶
Configuration for Shielded Nodes.
- desired_master¶
Configuration for master components.
- desired_dns_config¶
DNSConfig contains clusterDNS config for this cluster.
- desired_service_external_ips_config¶
ServiceExternalIPsConfig specifies the config for the use of Services with ExternalIPs field.
- desired_authenticator_groups_config¶
AuthenticatorGroupsConfig specifies the config for the cluster security groups settings.
- desired_logging_config¶
The desired logging configuration.
- desired_monitoring_config¶
The desired monitoring configuration.
- desired_identity_service_config¶
The desired Identity Service component configuration.
- class google.cloud.container_v1beta1.types.CompleteIPRotationRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
CompleteIPRotationRequest moves the cluster master back into single-IP mode.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
- Type
str
- name¶
The name (project, location, cluster id) of the cluster to complete IP rotation. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.ConfidentialNodes(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ConfidentialNodes is configuration for the confidential nodes feature, which makes nodes run on confidential VMs.
- enabled¶
Whether Confidential Nodes feature is enabled for all nodes in this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.ConfigConnectorConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options for the Config Connector add-on.
- enabled¶
Whether Cloud Connector is enabled for this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.CreateClusterRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
CreateClusterRequest creates a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.
- Type
str
- cluster¶
Required. A cluster resource
- parent¶
The parent (project and location) where the cluster will be created. Specified in the format
projects/*/locations/*
.- Type
str
- class google.cloud.container_v1beta1.types.CreateNodePoolRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
CreateNodePoolRequest creates a node pool for a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
- Type
str
- node_pool¶
Required. The node pool to create.
- parent¶
The parent (project, location, cluster id) where the node pool will be created. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.DNSConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
DNSConfig contains the desired set of options for configuring clusterDNS.
- cluster_dns¶
cluster_dns indicates which in-cluster DNS provider should be used.
- cluster_dns_scope¶
cluster_dns_scope indicates the scope of access to cluster DNS records.
- cluster_dns_domain¶
cluster_dns_domain is the suffix used for all cluster service records.
- Type
str
- class google.cloud.container_v1beta1.types.DailyMaintenanceWindow(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Time window specified for daily maintenance operations.
- start_time¶
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.
- Type
str
- duration¶
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
- Type
str
- class google.cloud.container_v1beta1.types.DatabaseEncryption(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration of etcd encryption.
- state¶
Denotes the state of etcd encryption.
- key_name¶
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
- Type
str
- class google.cloud.container_v1beta1.types.DatapathProvider(value)[source]¶
Bases:
proto.enums.Enum
The datapath provider selects the implementation of the Kubernetes networking // model for service resolution and network policy enforcement.
- ADVANCED_DATAPATH = 2¶
- DATAPATH_PROVIDER_UNSPECIFIED = 0¶
- LEGACY_DATAPATH = 1¶
- class google.cloud.container_v1beta1.types.DefaultSnatStatus(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster.
- disabled¶
Disables cluster default sNAT rules.
- Type
bool
- class google.cloud.container_v1beta1.types.DeleteClusterRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
DeleteClusterRequest deletes a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to delete. This field has been deprecated and replaced by the name field.
- Type
str
- name¶
The name (project, location, cluster) of the cluster to delete. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.DeleteNodePoolRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
DeleteNodePoolRequest deletes a node pool for a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
- Type
str
- node_pool_id¶
Required. Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field.
- Type
str
- name¶
The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format
projects/*/locations/*/clusters/*/nodePools/*
.- Type
str
- class google.cloud.container_v1beta1.types.DnsCacheConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for NodeLocal DNSCache
- enabled¶
Whether NodeLocal DNSCache is enabled for this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.EphemeralStorageConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
EphemeralStorageConfig contains configuration for the ephemeral storage filesystem.
- local_ssd_count¶
Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage.
- Type
int
- class google.cloud.container_v1beta1.types.GcePersistentDiskCsiDriverConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for the Compute Engine PD CSI driver.
- enabled¶
Whether the Compute Engine PD CSI driver is enabled for this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.GetClusterRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
GetClusterRequest gets the settings of a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to retrieve. This field has been deprecated and replaced by the name field.
- Type
str
- name¶
The name (project, location, cluster) of the cluster to retrieve. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.GetJSONWebKeysRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
GetJSONWebKeysRequest gets the public component of the keys used by the cluster to sign token requests. This will be the jwks_uri for the discover document returned by getOpenIDConfig. See the OpenID Connect Discovery 1.0 specification for details.
- parent¶
The cluster (project, location, cluster id) to get keys for. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.GetJSONWebKeysResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
- keys¶
The public component of the keys used by the cluster to sign token requests.
- Type
Sequence[google.cloud.container_v1beta1.types.Jwk]
- class google.cloud.container_v1beta1.types.GetNodePoolRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
GetNodePoolRequest retrieves a node pool for a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
- Type
str
- node_pool_id¶
Required. Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field.
- Type
str
- name¶
The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format
projects/*/locations/*/clusters/*/nodePools/*
.- Type
str
- class google.cloud.container_v1beta1.types.GetOpenIDConfigRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
GetOpenIDConfigRequest gets the OIDC discovery document for the cluster. See the OpenID Connect Discovery 1.0 specification for details.
- parent¶
The cluster (project, location, cluster id) to get the discovery document for. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.GetOpenIDConfigResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
GetOpenIDConfigResponse is an OIDC discovery document for the cluster. See the OpenID Connect Discovery 1.0 specification for details.
- issuer¶
OIDC Issuer.
- Type
str
- jwks_uri¶
JSON Web Key uri.
- Type
str
- response_types_supported¶
Supported response types.
- Type
Sequence[str]
- subject_types_supported¶
Supported subject types.
- Type
Sequence[str]
- id_token_signing_alg_values_supported¶
supported ID Token signing Algorithms.
- Type
Sequence[str]
- claims_supported¶
Supported claims.
- Type
Sequence[str]
- grant_types¶
Supported grant types.
- Type
Sequence[str]
- class google.cloud.container_v1beta1.types.GetOperationRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
GetOperationRequest gets a single operation.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- operation_id¶
Required. Deprecated. The server-assigned
name
of the operation. This field has been deprecated and replaced by the name field.- Type
str
- name¶
The name (project, location, operation id) of the operation to get. Specified in the format
projects/*/locations/*/operations/*
.- Type
str
- class google.cloud.container_v1beta1.types.GetServerConfigRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Gets the current Kubernetes Engine service configuration.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone to return operations for. This field has been deprecated and replaced by the name field.
- Type
str
- name¶
The name (project and location) of the server config to get, specified in the format
projects/*/locations/*
.- Type
str
- class google.cloud.container_v1beta1.types.HorizontalPodAutoscaling(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options 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.
- disabled¶
Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.
- Type
bool
- class google.cloud.container_v1beta1.types.HttpLoadBalancing(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
- disabled¶
Whether the HTTP Load Balancing controller is enabled in the cluster. When enabled, it runs a small pod in the cluster that manages the load balancers.
- Type
bool
- class google.cloud.container_v1beta1.types.ILBSubsettingConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer subsetting on this cluster.
- enabled¶
Enables l4 ILB subsetting for this cluster
- Type
bool
- class google.cloud.container_v1beta1.types.IPAllocationPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for controlling how IPs are allocated in the cluster.
- use_ip_aliases¶
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
- Type
bool
- create_subnetwork¶
Whether a new subnetwork will be created automatically for the cluster.
This field is only applicable when
use_ip_aliases
is true.- Type
bool
- subnetwork_name¶
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.- Type
str
- cluster_ipv4_cidr¶
This field is deprecated, use cluster_ipv4_cidr_block.
- Type
str
- node_ipv4_cidr¶
This field is deprecated, use node_ipv4_cidr_block.
- Type
str
- services_ipv4_cidr¶
This field is deprecated, use services_ipv4_cidr_block.
- Type
str
- cluster_secondary_range_name¶
The name of the secondary range to be used for the cluster CIDR block. The secondary range will be used for pod IP addresses. This must be an existing secondary range associated with the cluster subnetwork.
This field is only applicable with use_ip_aliases and create_subnetwork is false.
- Type
str
- services_secondary_range_name¶
The name of the secondary range to be used as for the services CIDR block. The secondary range will be used for service ClusterIPs. This must be an existing secondary range associated with the cluster subnetwork.
This field is only applicable with use_ip_aliases and create_subnetwork is false.
- Type
str
- cluster_ipv4_cidr_block¶
The IP address range for the cluster pod IPs. If this field is set, then
cluster.cluster_ipv4_cidr
must be left blank.This field is only applicable when
use_ip_aliases
is true.Set to blank to have a range chosen with the default size.
Set to /netmask (e.g.
/14
) to have a range chosen with a specific netmask.Set to a CIDR notation (e.g.
10.96.0.0/14
) from the RFC-1918 private networks (e.g.10.0.0.0/8
,172.16.0.0/12
,192.168.0.0/16
) to pick a specific range to use.- Type
str
- node_ipv4_cidr_block¶
The IP address range of the instance IPs in this cluster.
This is applicable only if
create_subnetwork
is true.Set to blank to have a range chosen with the default size.
Set to /netmask (e.g.
/14
) to have a range chosen with a specific netmask.Set to a CIDR notation (e.g.
10.96.0.0/14
) from the RFC-1918 private networks (e.g.10.0.0.0/8
,172.16.0.0/12
,192.168.0.0/16
) to pick a specific range to use.- Type
str
- services_ipv4_cidr_block¶
The IP address range of the services IPs in this cluster. If blank, a range will be automatically chosen with the default size.
This field is only applicable when
use_ip_aliases
is true.Set to blank to have a range chosen with the default size.
Set to /netmask (e.g.
/14
) to have a range chosen with a specific netmask.Set to a CIDR notation (e.g.
10.96.0.0/14
) from the RFC-1918 private networks (e.g.10.0.0.0/8
,172.16.0.0/12
,192.168.0.0/16
) to pick a specific range to use.- Type
str
- allow_route_overlap¶
If true, allow allocation of cluster CIDR ranges that overlap with certain kinds of network routes. By default we do not allow cluster CIDR ranges to intersect with any user declared routes. With allow_route_overlap == true, we allow overlapping with CIDR ranges that are larger than the cluster CIDR range.
If this field is set to true, then cluster and services CIDRs must be fully-specified (e.g.
10.96.0.0/14
, but not/14
), which means:When
use_ip_aliases
is true,cluster_ipv4_cidr_block
andservices_ipv4_cidr_block
must be fully-specified.When
use_ip_aliases
is false,cluster.cluster_ipv4_cidr
muse be fully-specified.
- Type
bool
- tpu_ipv4_cidr_block¶
The IP address range of the Cloud TPUs in this cluster. If unspecified, a range will be automatically chosen with the default size.
This field is only applicable when
use_ip_aliases
is true.If unspecified, the range will use the default size.
Set to /netmask (e.g.
/14
) to have a range chosen with a specific netmask.Set to a CIDR notation (e.g.
10.96.0.0/14
) from the RFC-1918 private networks (e.g.10.0.0.0/8
,172.16.0.0/12
,192.168.0.0/16
) to pick a specific range to use. This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.- Type
str
- use_routes¶
Whether routes will be used for pod IPs in the cluster. This is used in conjunction with use_ip_aliases. It cannot be true if use_ip_aliases is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode
- Type
bool
- class google.cloud.container_v1beta1.types.IdentityServiceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
IdentityServiceConfig is configuration for Identity Service which allows customers to use external identity providers with the K8S API
- enabled¶
Whether to enable the Identity Service component
- Type
bool
- class google.cloud.container_v1beta1.types.IntraNodeVisibilityConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
IntraNodeVisibilityConfig contains the desired config of the intra-node visibility on this cluster.
- enabled¶
Enables intra node visibility for this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.IstioConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options for Istio addon.
- disabled¶
Whether Istio is enabled for this cluster.
- Type
bool
- auth¶
The specified Istio auth mode, either none, or mutual TLS.
- class IstioAuthMode(value)[source]¶
Bases:
proto.enums.Enum
Istio auth mode, https://istio.io/docs/concepts/security/mutual-tls.html
- AUTH_MUTUAL_TLS = 1¶
- AUTH_NONE = 0¶
- class google.cloud.container_v1beta1.types.Jwk(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Jwk is a JSON Web Key as specified in RFC 7517
- kty¶
Key Type.
- Type
str
- alg¶
Algorithm.
- Type
str
- use¶
Permitted uses for the public keys.
- Type
str
- kid¶
Key ID.
- Type
str
- n¶
Used for RSA keys.
- Type
str
- e¶
Used for RSA keys.
- Type
str
- x¶
Used for ECDSA keys.
- Type
str
- y¶
Used for ECDSA keys.
- Type
str
- crv¶
Used for ECDSA keys.
- Type
str
- class google.cloud.container_v1beta1.types.KalmConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options for the KALM addon.
- enabled¶
Whether KALM is enabled for this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.KubernetesDashboard(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for the Kubernetes Dashboard.
- disabled¶
Whether the Kubernetes Dashboard is enabled for this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.LegacyAbac(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for the legacy Attribute Based Access Control authorization mode.
- enabled¶
Whether the ABAC authorizer is enabled for this cluster. When enabled, identities in the system, including service accounts, nodes, and controllers, will have statically granted permissions beyond those provided by the RBAC configuration or IAM.
- Type
bool
- class google.cloud.container_v1beta1.types.LinuxNodeConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Parameters that can be configured on Linux nodes.
- sysctls¶
The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
The following parameters are supported.
net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
- class SysctlsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.container_v1beta1.types.ListClustersRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListClustersRequest lists clusters.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides, or “-” for all zones. This field has been deprecated and replaced by the parent field.
- Type
str
- parent¶
The parent (project and location) where the clusters will be listed. Specified in the format
projects/*/locations/*
. Location “-” matches all zones and all regions.- Type
str
- class google.cloud.container_v1beta1.types.ListClustersResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListClustersResponse is the result of ListClustersRequest.
- clusters¶
A list of clusters in the project in the specified zone, or across all ones.
- Type
- missing_zones¶
If any zones are listed here, the list of clusters returned may be missing those zones.
- Type
Sequence[str]
- class google.cloud.container_v1beta1.types.ListLocationsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListLocationsRequest is used to request the locations that offer GKE.
- parent¶
Required. Contains the name of the resource requested. Specified in the format
projects/*
.- Type
str
- class google.cloud.container_v1beta1.types.ListLocationsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListLocationsResponse returns the list of all GKE locations and their recommendation state.
- locations¶
A full list of GKE locations.
- Type
- next_page_token¶
Only return ListLocationsResponse that occur after the page_token. This value should be populated from the ListLocationsResponse.next_page_token if that response token was set (which happens when listing more Locations than fit in a single ListLocationsResponse).
- Type
str
- property raw_page¶
- class google.cloud.container_v1beta1.types.ListNodePoolsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListNodePoolsRequest lists the node pool(s) for a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
- Type
str
- parent¶
The parent (project, location, cluster id) where the node pools will be listed. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.ListNodePoolsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListNodePoolsResponse is the result of ListNodePoolsRequest.
- node_pools¶
A list of node pools for a cluster.
- Type
- class google.cloud.container_v1beta1.types.ListOperationsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListOperationsRequest lists operations.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone to return operations for, or
-
for all zones. This field has been deprecated and replaced by the parent field.- Type
str
- parent¶
The parent (project and location) where the operations will be listed. Specified in the format
projects/*/locations/*
. Location “-” matches all zones and all regions.- Type
str
- class google.cloud.container_v1beta1.types.ListOperationsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListOperationsResponse is the result of ListOperationsRequest.
- operations¶
A list of operations in the project in the specified zone.
- Type
- missing_zones¶
If any zones are listed here, the list of operations returned may be missing the operations from those zones.
- Type
Sequence[str]
- class google.cloud.container_v1beta1.types.ListUsableSubnetworksRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListUsableSubnetworksRequest requests the list of usable subnetworks. available to a user for creating clusters.
- parent¶
Required. The parent project where subnetworks are usable. Specified in the format
projects/*
.- Type
str
- filter¶
Filtering currently only supports equality on the networkProjectId and must be in the form: “networkProjectId=[PROJECTID]”, where
networkProjectId
is the project which owns the listed subnetworks. This defaults to the parent project ID.- Type
str
- page_size¶
The max number of results per page that should be returned. If the number of available results is larger than
page_size
, anext_page_token
is returned which can be used to get the next page of results in subsequent requests. Acceptable values are 0 to 500, inclusive. (Default: 500)- Type
int
- page_token¶
Specifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.
- Type
str
- class google.cloud.container_v1beta1.types.ListUsableSubnetworksResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ListUsableSubnetworksResponse is the response of ListUsableSubnetworksRequest.
- subnetworks¶
A list of usable subnetworks in the specified network project.
- Type
Sequence[google.cloud.container_v1beta1.types.UsableSubnetwork]
- next_page_token¶
This token allows you to get the next page of results for list requests. If the number of results is larger than
page_size
, use thenext_page_token
as a value for the query parameterpage_token
in the next request. The value will become empty when there are no more pages.- Type
str
- property raw_page¶
- class google.cloud.container_v1beta1.types.Location(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Location returns the location name, and if the location is recommended for GKE cluster scheduling.
- type_¶
Contains the type of location this Location is for. Regional or Zonal.
- name¶
Contains the name of the resource requested. Specified in the format
projects/*/locations/*
.- Type
str
- recommended¶
Whether the location is recomended for GKE cluster scheduling.
- Type
bool
- class google.cloud.container_v1beta1.types.LoggingComponentConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
LoggingComponentConfig is cluster logging component configuration.
- enable_components¶
Select components to collect logs. An empty set would disable all logging.
- class google.cloud.container_v1beta1.types.LoggingConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
LoggingConfig is cluster logging configuration.
- component_config¶
Logging components configuration
- class google.cloud.container_v1beta1.types.MaintenancePolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
MaintenancePolicy defines the maintenance policy to be used for the cluster.
- window¶
Specifies the maintenance window in which maintenance may be performed.
- resource_version¶
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
get()
request to the cluster to get the current resource version and include it with requests to set the policy.- Type
str
- class google.cloud.container_v1beta1.types.MaintenanceWindow(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
MaintenanceWindow defines the maintenance window to be used for the cluster.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- daily_maintenance_window¶
DailyMaintenanceWindow specifies a daily maintenance operation window. This field is a member of oneof
policy
.
- recurring_window¶
RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time. This field is a member of oneof
policy
.
- maintenance_exclusions¶
Exceptions to maintenance window. Non- mergency maintenance should not occur in these windows.
- class MaintenanceExclusionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.container_v1beta1.types.Master(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Master is the configuration for components on master.
- class google.cloud.container_v1beta1.types.MasterAuth(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates.
- username¶
The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string). Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes- engine/docs/how-to/api-server-authentication
- Type
str
- password¶
The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty.
Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes- engine/docs/how-to/api-server-authentication
- Type
str
- client_certificate_config¶
Configuration for client certificate authentication on the cluster. For clusters before v1.12, if no configuration is specified, a client certificate is issued.
- cluster_ca_certificate¶
- Type
str
- client_certificate¶
[Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
- Type
str
- client_key¶
[Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.
- Type
str
- class google.cloud.container_v1beta1.types.MasterAuthorizedNetworksConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options for the master authorized networks feature. Enabled 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¶
Whether or not master authorized networks is enabled.
- Type
bool
- cidr_blocks¶
cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
- class CidrBlock(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
CidrBlock contains an optional name and one CIDR block.
- display_name¶
display_name is an optional field for users to identify CIDR blocks.
- Type
str
- cidr_block¶
cidr_block must be specified in CIDR notation.
- Type
str
- class google.cloud.container_v1beta1.types.MaxPodsConstraint(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Constraints applied to pods.
- max_pods_per_node¶
Constraint enforced on the max num of pods per node.
- Type
int
- class google.cloud.container_v1beta1.types.MonitoringComponentConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
MonitoringComponentConfig is cluster monitoring component configuration.
- enable_components¶
Select components to collect metrics. An empty set would disable all monitoring.
- class google.cloud.container_v1beta1.types.MonitoringConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
MonitoringConfig is cluster monitoring configuration.
- component_config¶
Monitoring components configuration
- class google.cloud.container_v1beta1.types.NetworkConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
NetworkConfig reports the relative names of network & subnetwork.
- network¶
Output only. The relative name of the Google Compute Engine [network]`google.container.v1beta1.NetworkConfig.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
- Type
str
- subnetwork¶
Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
- Type
str
- enable_intra_node_visibility¶
Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.
- Type
bool
- default_snat_status¶
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.
- enable_l4ilb_subsetting¶
Whether L4ILB Subsetting is enabled for this cluster.
- Type
bool
- datapath_provider¶
The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.
- private_ipv6_google_access¶
The desired state of IPv6 connectivity to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4)
- dns_config¶
DNSConfig contains clusterDNS config for this cluster.
- service_external_ips_config¶
ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.
- class google.cloud.container_v1beta1.types.NetworkPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services- networking/networkpolicies/
- provider¶
The selected network policy provider.
- enabled¶
Whether network policy is enabled on the cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.NetworkPolicyConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
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.
- disabled¶
Whether NetworkPolicy is enabled for this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.NetworkTags(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Collection of Compute Engine network tags that can be applied to a node’s underlying VM instance. (See
tags
field in`NodeConfig
</kubernetes-engine/docs/reference/rest/v1/NodeConfig>`__).- tags¶
List of network tags.
- Type
Sequence[str]
- class google.cloud.container_v1beta1.types.NodeConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Parameters that describe the nodes in a cluster.
- machine_type¶
The name of a Google Compute Engine machine type.
If unspecified, the default machine type is
e2-medium
.- Type
str
- disk_size_gb¶
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.
- Type
int
- oauth_scopes¶
The set of Google API scopes to be made available on all of the node VMs under the “default” service account.
The following scopes are recommended, but not required, and by default are not included:
https://www.googleapis.com/auth/compute
is required for mounting persistent storage on your nodes.https://www.googleapis.com/auth/devstorage.read_only
is required for communicating with gcr.io (the Google Container Registry).
If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
- Type
Sequence[str]
- service_account¶
The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the “default” service account is used.
- Type
str
- metadata¶
The metadata key/value pairs assigned to instances in the cluster.
Keys must conform to the regexp
[a-zA-Z0-9-_]+
and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys:“cluster-location”
“cluster-name”
“cluster-uid”
“configure-sh”
“containerd-configure-sh”
“enable-oslogin”
“gci-ensure-gke-docker”
“gci-metrics-enabled”
“gci-update-strategy”
“instance-template”
“kube-env”
“startup-script”
“user-data”
“disable-address-manager”
“windows-startup-script-ps1”
“common-psm1”
“k8s-node-setup-psm1”
“install-ssh-psm1”
“user-profile-psm1”
Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value’s size must be less than or equal to 32 KB.
The total size of all keys and values must be less than 512 KB.
- image_type¶
The image type to use for this node. Note that for a given image type, the latest version of it will be used.
- Type
str
- labels¶
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version – it’s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working- with-objects/labels/
- Type
Sequence[google.cloud.container_v1beta1.types.NodeConfig.LabelsEntry]
- local_ssd_count¶
The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local- ssd for more information.
- Type
int
- tags¶
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
- Type
Sequence[str]
- preemptible¶
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.
- Type
bool
- 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.
- Type
Sequence[google.cloud.container_v1beta1.types.AcceleratorConfig]
- sandbox_config¶
Sandbox configuration for this node.
- node_group¶
Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on sole tenant nodes.
- Type
str
- reservation_affinity¶
The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this node pool.
- disk_type¶
Type of the disk attached to each node (e.g. ‘pd-standard’, ‘pd-ssd’ or ‘pd-balanced’)
If unspecified, the default disk type is ‘pd- standard’
- Type
str
- min_cpu_platform¶
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
minCpuPlatform: "Intel Haswell"
orminCpuPlatform: "Intel Sandy Bridge"
. For more information, read how to specify min CPU platform- Type
str
- workload_metadata_config¶
The workload metadata configuration for this node.
- taints¶
List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint- and-toleration/
- Type
- boot_disk_kms_key¶
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
- Type
str
- shielded_instance_config¶
Shielded Instance options.
- linux_node_config¶
Parameters that can be configured on Linux nodes.
- kubelet_config¶
Node kubelet configs.
- ephemeral_storage_config¶
Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.
- gvnic¶
Enable or disable gvnic on the node pool.
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class MetadataEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.container_v1beta1.types.NodeConfigDefaults(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Subset of NodeConfig message that has defaults.
- class google.cloud.container_v1beta1.types.NodeKubeletConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Node kubelet configs.
- cpu_manager_policy¶
Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer- cluster/cpu-management-policies/ The following values are allowed.
“none”: the default, which represents the
existing scheduling behavior. - “static”: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is ‘none’ if unspecified.
- Type
str
- cpu_cfs_quota¶
Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched- bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all.
Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is ‘true’ if unspecified.
- Type
google.protobuf.wrappers_pb2.BoolValue
- cpu_cfs_quota_period¶
Set the CPU CFS quota period value ‘cpu.cfs_period_us’.
The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as “300ms”. Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”. The value must be a positive duration.
- Type
str
- class google.cloud.container_v1beta1.types.NodeLabels(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Collection of node-level Kubernetes labels.
- labels¶
Map of node label keys and node label values.
- Type
Sequence[google.cloud.container_v1beta1.types.NodeLabels.LabelsEntry]
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.container_v1beta1.types.NodeManagement(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
NodeManagement defines the set of node management services turned on for the node pool.
- auto_upgrade¶
Whether the nodes will be automatically upgraded.
- Type
bool
- auto_repair¶
Whether the nodes will be automatically repaired.
- Type
bool
- upgrade_options¶
Specifies the Auto Upgrade knobs for the node pool.
- class google.cloud.container_v1beta1.types.NodeNetworkConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Parameters for node pool-level network config.
- create_pod_range¶
Input only. Whether to create a new range for pod IPs in this node pool. Defaults are provided for
pod_range
andpod_ipv4_cidr_block
if they are not specified.If neither
create_pod_range
orpod_range
are specified, the cluster-level default (ip_allocation_policy.cluster_ipv4_cidr_block
) is used.Only applicable if
ip_allocation_policy.use_ip_aliases
is true.This field cannot be changed after the node pool has been created.
- Type
bool
- pod_range¶
The ID of the secondary range for pod IPs. If
create_pod_range
is true, this ID is used for the new range. Ifcreate_pod_range
is false, uses an existing secondary range with this ID.Only applicable if
ip_allocation_policy.use_ip_aliases
is true.This field cannot be changed after the node pool has been created.
- Type
str
- pod_ipv4_cidr_block¶
The IP address range for pod IPs in this node pool.
Only applicable if
create_pod_range
is true.Set to blank to have a range chosen with the default size.
Set to /netmask (e.g.
/14
) to have a range chosen with a specific netmask.Set to a CIDR notation (e.g.
10.96.0.0/14
) to pick a specific range to use.Only applicable if
ip_allocation_policy.use_ip_aliases
is true.This field cannot be changed after the node pool has been created.
- Type
str
- class google.cloud.container_v1beta1.types.NodePool(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
NodePool contains the name and configuration for a cluster’s node pool. Node pools are a set of nodes (i.e. VM’s), with a common configuration and specification, under the control of the cluster master. They may have a set 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. These upgrade settings control the level of parallelism and the level of 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.
- name¶
The name of the node pool.
- Type
str
- config¶
The node configuration of the pool.
- initial_node_count¶
The initial node count for the pool. You must ensure that your Compute Engine resource quota is sufficient for this number of instances. You must also have available firewall and routes quota.
- Type
int
- locations¶
The list of Google Compute Engine zones in which the NodePool’s nodes should be located.
If this value is unspecified during node pool creation, the Cluster.Locations value will be used, instead.
Warning: changing node pool locations will result in nodes being added and/or removed.
- Type
Sequence[str]
- network_config¶
Networking configuration for this NodePool. If specified, it overrides the cluster-level defaults.
- self_link¶
[Output only] Server-defined URL for the resource.
- Type
str
- version¶
The version of the Kubernetes of this node.
- Type
str
- instance_group_urls¶
[Output only] The resource URLs of the managed instance groups associated with this node pool.
- Type
Sequence[str]
- status¶
[Output only] The status of the nodes in this pool instance.
- status_message¶
[Output only] Deprecated. Use conditions instead. Additional information about the current status of this node pool instance, if available.
- Type
str
- autoscaling¶
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
- management¶
NodeManagement configuration for this NodePool.
- max_pods_constraint¶
The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
- conditions¶
Which conditions caused the current node pool state.
- Type
Sequence[google.cloud.container_v1beta1.types.StatusCondition]
- pod_ipv4_cidr_size¶
[Output only] The pod CIDR block size per node in this node pool.
- Type
int
- upgrade_settings¶
Upgrade settings control disruption and speed of the upgrade.
- class Status(value)[source]¶
Bases:
proto.enums.Enum
The current status of the node pool instance.
- ERROR = 6¶
- PROVISIONING = 1¶
- RECONCILING = 4¶
- RUNNING = 2¶
- RUNNING_WITH_ERROR = 3¶
- STATUS_UNSPECIFIED = 0¶
- STOPPING = 5¶
- class UpgradeSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
- max_surge¶
The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
- Type
int
The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
- Type
int
- class google.cloud.container_v1beta1.types.NodePoolAutoscaling(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.
- enabled¶
Is autoscaling enabled for this node pool.
- Type
bool
- min_node_count¶
Minimum number of nodes in the NodePool. Must be >= 1 and <= max_node_count.
- Type
int
- max_node_count¶
Maximum number of nodes in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.
- Type
int
- autoprovisioned¶
Can this node pool be deleted automatically.
- Type
bool
- class google.cloud.container_v1beta1.types.NodePoolDefaults(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Subset of Nodepool message that has defaults.
- node_config_defaults¶
Subset of NodeConfig message that has defaults.
- class google.cloud.container_v1beta1.types.NodeTaint(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
See here for more information, including usage and the valid values.
- key¶
Key for taint.
- Type
str
- value¶
Value for taint.
- Type
str
- effect¶
Effect for taint.
- class google.cloud.container_v1beta1.types.NodeTaints(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Collection of Kubernetes node taints.
- taints¶
List of node taints.
- Type
- class google.cloud.container_v1beta1.types.NotificationConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
NotificationConfig is the configuration of notifications.
- pubsub¶
Notification config for Pub/Sub.
- class PubSub(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Pub/Sub specific notification config.
- enabled¶
Enable notifications for Pub/Sub.
- Type
bool
- topic¶
The desired Pub/Sub topic to which notifications will be sent by GKE. Format is
projects/{project}/topics/{topic}
.- Type
str
- class google.cloud.container_v1beta1.types.Operation(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
- name¶
The server-assigned ID for the operation.
- Type
str
- zone¶
The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.
- Type
str
- operation_type¶
The operation type.
- status¶
The current status of the operation.
- detail¶
Detailed operation progress, if available.
- Type
str
- status_message¶
Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
- Type
str
- self_link¶
Server-defined URL for the resource.
- Type
str
- target_link¶
Server-defined URL for the target of the operation.
- Type
str
- location¶
[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.
- Type
str
- progress¶
Output only. [Output only] Progress information for an operation.
- cluster_conditions¶
Which conditions caused the current cluster state. Deprecated. Use field error instead.
- Type
Sequence[google.cloud.container_v1beta1.types.StatusCondition]
- nodepool_conditions¶
Which conditions caused the current node pool state. Deprecated. Use field error instead.
- Type
Sequence[google.cloud.container_v1beta1.types.StatusCondition]
- error¶
The error result of the operation in case of failure.
- Type
google.rpc.status_pb2.Status
- class Status(value)[source]¶
Bases:
proto.enums.Enum
Current status of the operation.
- ABORTING = 4¶
- DONE = 3¶
- PENDING = 1¶
- RUNNING = 2¶
- STATUS_UNSPECIFIED = 0¶
- class Type(value)[source]¶
Bases:
proto.enums.Enum
Operation type.
- AUTO_REPAIR_NODES = 10¶
- AUTO_UPGRADE_NODES = 11¶
- CREATE_CLUSTER = 1¶
- CREATE_NODE_POOL = 7¶
- DELETE_CLUSTER = 2¶
- DELETE_NODE_POOL = 8¶
- REPAIR_CLUSTER = 5¶
- SET_LABELS = 12¶
- SET_MAINTENANCE_POLICY = 16¶
- SET_MASTER_AUTH = 13¶
- SET_NETWORK_POLICY = 15¶
- SET_NODE_POOL_MANAGEMENT = 9¶
- SET_NODE_POOL_SIZE = 14¶
- TYPE_UNSPECIFIED = 0¶
- UPDATE_CLUSTER = 6¶
- UPGRADE_MASTER = 3¶
- UPGRADE_NODES = 4¶
- class google.cloud.container_v1beta1.types.OperationProgress(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Information about operation (or operation stage) progress.
- name¶
A non-parameterized string describing an operation stage. Unset for single-stage operations.
- Type
str
- status¶
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}] or metrics: [{name: “progress”, double_value: 0.56}, {name: “progress scale”, double_value: 1.0}]
- stages¶
Substages of an operation or a stage.
- Type
Sequence[google.cloud.container_v1beta1.types.OperationProgress]
- class Metric(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Progress metric is (string, int|float|string) pair.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- name¶
Required. Metric name, e.g., “nodes total”, “percent done”.
- Type
str
- class google.cloud.container_v1beta1.types.PodSecurityPolicyConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for the PodSecurityPolicy feature.
- enabled¶
Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created.
- Type
bool
- class google.cloud.container_v1beta1.types.PrivateClusterConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration options for private clusters.
- enable_private_nodes¶
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.
- Type
bool
- enable_private_endpoint¶
Whether the master’s internal IP address is used as the cluster endpoint.
- Type
bool
- master_ipv4_cidr_block¶
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.
- Type
str
- private_endpoint¶
Output only. The internal IP address of this cluster’s master endpoint.
- Type
str
- public_endpoint¶
Output only. The external IP address of this cluster’s master endpoint.
- Type
str
- peering_name¶
Output only. The peering name in the customer VPC used by this cluster.
- Type
str
- master_global_access_config¶
Controls master global access settings.
- class google.cloud.container_v1beta1.types.PrivateClusterMasterGlobalAccessConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for controlling master global access settings.
- enabled¶
Whenever master is accessible globally or not.
- Type
bool
- class google.cloud.container_v1beta1.types.PrivateIPv6GoogleAccess(value)[source]¶
Bases:
proto.enums.Enum
PrivateIPv6GoogleAccess controls whether and how the pods can communicate with Google Services through gRPC over IPv6.
- PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3¶
- PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1¶
- PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2¶
- PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0¶
- class google.cloud.container_v1beta1.types.RecurringTimeWindow(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Represents an arbitrary window of time that recurs.
- window¶
The window of the first recurrence.
- recurrence¶
An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs. They go on for the span of time between the start and end time.
For example, to have something repeat every weekday, you’d use:
FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
To repeat some window daily (equivalent to the DailyMaintenanceWindow):
FREQ=DAILY
For the first weekend of every month:
FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU
This specifies how frequently the window starts. Eg, if you wanted to have a 9-5 UTC-4 window every weekday, you’d use something like:
start time = 2019-01-01T09:00:00-0400 end time = 2019-01-01T17:00:00-0400 recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
Windows can span multiple days. Eg, to make the window encompass every weekend from midnight Saturday till the last minute of Sunday UTC:
start time = 2019-01-05T00:00:00Z end time = 2019-01-07T23:59:00Z recurrence = FREQ=WEEKLY;BYDAY=SA
Note the start and end time’s specific dates are largely arbitrary except to specify duration of the window and when it first starts. The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
- Type
str
- class google.cloud.container_v1beta1.types.ReleaseChannel(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ReleaseChannel indicates which release channel a cluster is subscribed to. Release channels are arranged in order of risk. 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.
- channel¶
channel specifies which release channel the cluster is subscribed to.
- class google.cloud.container_v1beta1.types.ReservationAffinity(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ReservationAffinity is the configuration of desired reservation which instances could take capacity from.
- consume_reservation_type¶
Corresponds to the type of reservation consumption.
- key¶
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify “googleapis.com/reservation-name” as the key and specify the name of your reservation as its value.
- Type
str
- values¶
Corresponds to the label value(s) of reservation resource(s).
- Type
Sequence[str]
- class google.cloud.container_v1beta1.types.ResourceLimit(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Contains information about amount of some resource in the cluster. For memory, value should be in GB.
- resource_type¶
Resource name “cpu”, “memory” or gpu-specific string.
- Type
str
- minimum¶
Minimum amount of the resource in the cluster.
- Type
int
- maximum¶
Maximum amount of the resource in the cluster.
- Type
int
- class google.cloud.container_v1beta1.types.ResourceUsageExportConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for exporting cluster resource usages.
- bigquery_destination¶
Configuration to use BigQuery as usage export destination.
- enable_network_egress_metering¶
Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.
- Type
bool
- consumption_metering_config¶
Configuration to enable resource consumption metering.
- class BigQueryDestination(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Parameters for using BigQuery as the destination of resource usage export.
- dataset_id¶
The ID of a BigQuery Dataset.
- Type
str
- class ConsumptionMeteringConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Parameters for controlling consumption metering.
- enabled¶
Whether to enable consumption metering for this cluster. If enabled, a second BigQuery table will be created to hold resource consumption records.
- Type
bool
- class google.cloud.container_v1beta1.types.RollbackNodePoolUpgradeRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field.
- Type
str
- node_pool_id¶
Required. Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field.
- Type
str
- name¶
The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format
projects/*/locations/*/clusters/*/nodePools/*
.- Type
str
- class google.cloud.container_v1beta1.types.SandboxConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SandboxConfig contains configurations of the sandbox to use for the node.
- sandbox_type¶
Type of the sandbox to use for the node (e.g. ‘gvisor’)
- Type
str
- type_¶
Type of the sandbox to use for the node.
- class google.cloud.container_v1beta1.types.ServerConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Kubernetes Engine service configuration.
- default_cluster_version¶
Version of Kubernetes the service deploys by default.
- Type
str
- valid_node_versions¶
List of valid node upgrade target versions, in descending order.
- Type
Sequence[str]
- default_image_type¶
Default image type.
- Type
str
- valid_image_types¶
List of valid image types.
- Type
Sequence[str]
- valid_master_versions¶
List of valid master versions, in descending order.
- Type
Sequence[str]
- channels¶
List of release channel configurations.
- windows_version_maps¶
Maps of Kubernetes version and supported Windows server versions.
- class ReleaseChannelConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
ReleaseChannelConfig exposes configuration for a release channel.
- channel¶
The release channel this configuration applies to.
- default_version¶
The default version for newly created clusters on the channel.
- Type
str
- available_versions¶
Deprecated. This field has been deprecated and replaced with the valid_versions field.
- valid_versions¶
List of valid versions for the channel.
- Type
Sequence[str]
- class WindowsVersionMapsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.container_v1beta1.types.ServiceExternalIPsConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Config to block services with externalIPs field.
- enabled¶
Whether Services with ExternalIPs field are allowed or not.
- Type
bool
- class google.cloud.container_v1beta1.types.SetAddonsConfigRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetAddonsRequest sets the addons associated with the cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- addons_config¶
Required. The desired configurations for the various addons available to run in the cluster.
- name¶
The name (project, location, cluster) of the cluster to set addons. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetLabelsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetLabelsRequest sets the Google Cloud Platform labels on a Google Container Engine cluster, which will in turn set them for Google Compute Engine resources used by that cluster
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
- Type
str
- resource_labels¶
Required. The labels to set for that cluster.
- label_fingerprint¶
Required. The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Kubernetes Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels. Make a
get()
request to the resource to get the latest fingerprint.- Type
str
- name¶
The name (project, location, cluster id) of the cluster to set labels. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class ResourceLabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.container_v1beta1.types.SetLegacyAbacRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
- Type
str
- enabled¶
Required. Whether ABAC authorization will be enabled in the cluster.
- Type
bool
- name¶
The name (project, location, cluster id) of the cluster to set legacy abac. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetLocationsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetLocationsRequest sets the locations of the cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- locations¶
Required. The desired list of Google Compute Engine zones in which the cluster’s nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.
This list must always include the cluster’s primary zone.
- Type
Sequence[str]
- name¶
The name (project, location, cluster) of the cluster to set locations. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetLoggingServiceRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetLoggingServiceRequest sets the logging service of a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- logging_service¶
Required. The logging service the cluster should use to write logs. Currently available options:
logging.googleapis.com/kubernetes
- The Cloud Logging service with a Kubernetes-native resource modellogging.googleapis.com
- The legacy Cloud Logging service (no longer available as of GKE 1.15).none
- no logs will be exported from the cluster.
If left as an empty string,
logging.googleapis.com/kubernetes
will be used for GKE 1.14+ orlogging.googleapis.com
for earlier versions.- Type
str
- name¶
The name (project, location, cluster) of the cluster to set logging. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetMaintenancePolicyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
- project_id¶
Required. The Google Developers Console project ID or project number.
- Type
str
- cluster_id¶
Required. The name of the cluster to update.
- Type
str
- maintenance_policy¶
Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.
- name¶
The name (project, location, cluster id) of the cluster to set maintenance policy. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetMasterAuthRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetMasterAuthRequest updates the admin password of a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- action¶
Required. The exact form of action to be taken on the master auth.
- update¶
Required. A description of the update.
- name¶
The name (project, location, cluster) of the cluster to set auth. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetMonitoringServiceRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetMonitoringServiceRequest sets the monitoring service of a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- monitoring_service¶
Required. 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+ ormonitoring.googleapis.com
for earlier versions.- Type
str
- name¶
The name (project, location, cluster) of the cluster to set monitoring. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetNetworkPolicyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetNetworkPolicyRequest enables/disables network policy for a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
- Type
str
- network_policy¶
Required. Configuration options for the NetworkPolicy feature.
- name¶
The name (project, location, cluster id) of the cluster to set networking policy. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetNodePoolAutoscalingRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- node_pool_id¶
Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- autoscaling¶
Required. Autoscaling configuration for the node pool.
- name¶
The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format
projects/*/locations/*/clusters/*/nodePools/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetNodePoolManagementRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetNodePoolManagementRequest sets the node management properties of a node pool.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
- Type
str
- node_pool_id¶
Required. Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
- Type
str
- management¶
Required. NodeManagement configuration for the node pool.
- name¶
The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format
projects/*/locations/*/clusters/*/nodePools/*
.- Type
str
- class google.cloud.container_v1beta1.types.SetNodePoolSizeRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetNodePoolSizeRequest sets the size of a node pool.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
- Type
str
- node_pool_id¶
Required. Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.
- Type
str
- node_count¶
Required. The desired node count for the pool.
- Type
int
- name¶
The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format
projects/*/locations/*/clusters/*/nodePools/*
.- Type
str
- class google.cloud.container_v1beta1.types.ShieldedInstanceConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
A set of Shielded Instance options.
- enable_secure_boot¶
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.
- Type
bool
- enable_integrity_monitoring¶
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.
- Type
bool
- class google.cloud.container_v1beta1.types.ShieldedNodes(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration of Shielded Nodes feature.
- enabled¶
Whether Shielded Nodes features are enabled on all nodes in this cluster.
- Type
bool
- class google.cloud.container_v1beta1.types.StartIPRotationRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
StartIPRotationRequest creates a new IP for the cluster and then performs a node upgrade on each node pool to point to the new IP.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
- Type
str
- name¶
The name (project, location, cluster id) of the cluster to start IP rotation. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- rotate_credentials¶
Whether to rotate credentials during IP rotation.
- Type
bool
- class google.cloud.container_v1beta1.types.StatusCondition(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
- code¶
Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
- message¶
Human-friendly representation of the condition
- Type
str
- canonical_code¶
Canonical code of the condition.
- Type
google.rpc.code_pb2.Code
- class google.cloud.container_v1beta1.types.TimeWindow(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Represents an arbitrary window of time.
- start_time¶
The time that the window first starts.
- Type
google.protobuf.timestamp_pb2.Timestamp
- end_time¶
The time that the window ends. The end time should take place after the start time.
- Type
google.protobuf.timestamp_pb2.Timestamp
- class google.cloud.container_v1beta1.types.TpuConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for Cloud TPU.
- enabled¶
Whether Cloud TPU integration is enabled or not.
- Type
bool
- use_service_networking¶
Whether to use service networking for Cloud TPU or not.
- Type
bool
- ipv4_cidr_block¶
IPv4 CIDR block reserved for Cloud TPU in the VPC.
- Type
str
- class google.cloud.container_v1beta1.types.UpdateClusterRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
UpdateClusterRequest updates the settings of a cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- update¶
Required. A description of the update.
- name¶
The name (project, location, cluster) of the cluster to update. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.UpdateMasterRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
UpdateMasterRequest updates the master of the cluster.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- master_version¶
Required. The Kubernetes version to change the master to. 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 default Kubernetes version
- Type
str
- name¶
The name (project, location, cluster) of the cluster to update. Specified in the format
projects/*/locations/*/clusters/*
.- Type
str
- class google.cloud.container_v1beta1.types.UpdateNodePoolRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
SetNodePoolVersionRequest updates the version of a node pool.
- project_id¶
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
- Type
str
- zone¶
Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
- Type
str
- cluster_id¶
Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- node_pool_id¶
Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
- Type
str
- node_version¶
Required. 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
- Type
str
- image_type¶
Required. The desired image type for the node pool.
- Type
str
- locations¶
The desired list of Google Compute Engine zones in which the node pool’s nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.
- Type
Sequence[str]
- workload_metadata_config¶
The desired workload metadata config for the node pool.
- name¶
The name (project, location, cluster, node pool) of the node pool to update. Specified in the format
projects/*/locations/*/clusters/*/nodePools/*
.- Type
str
- upgrade_settings¶
Upgrade settings control disruption and speed of the upgrade.
- tags¶
The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be replaced with the provided tags.
- taints¶
The desired node taints to be applied to all nodes in the node pool. If this field is not present, the taints will not be changed. Otherwise, the existing node taints will be replaced with the provided taints.
- labels¶
The desired node labels to be applied to all nodes in the node pool. If this field is not present, the labels will not be changed. Otherwise, the existing node labels will be replaced with the provided labels.
- linux_node_config¶
Parameters that can be configured on Linux nodes.
- kubelet_config¶
Node kubelet configs.
- gvnic¶
Enable or disable gvnic on the node pool.
- class google.cloud.container_v1beta1.types.UpgradeAvailableEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
UpgradeAvailableEvent is a notification sent to customers when a new available version is released.
- version¶
The release version available for upgrade.
- Type
str
- resource_type¶
The resource type of the release version.
- release_channel¶
The release channel of the version. If empty, it means a non-channel release.
- resource¶
Optional relative path to the resource. For example, the relative path of the node pool.
- Type
str
- windows_versions¶
Windows node versions info.
- class google.cloud.container_v1beta1.types.UpgradeEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
UpgradeEvent is a notification sent to customers by the cluster server when a resource is upgrading.
- resource_type¶
The resource type that is upgrading.
- operation¶
The operation associated with this upgrade.
- Type
str
- operation_start_time¶
The time when the operation was started.
- Type
google.protobuf.timestamp_pb2.Timestamp
- current_version¶
The current version before the upgrade.
- Type
str
- target_version¶
The target version for the upgrade.
- Type
str
- resource¶
Optional relative path to the resource. For example in node pool upgrades, the relative path of the node pool.
- Type
str
- class google.cloud.container_v1beta1.types.UpgradeResourceType(value)[source]¶
Bases:
proto.enums.Enum
UpgradeResourceType is the resource type that is upgrading. It is used in upgrade notifications.
- MASTER = 1¶
- NODE_POOL = 2¶
- UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0¶
- class google.cloud.container_v1beta1.types.UsableSubnetwork(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
UsableSubnetwork resource returns the subnetwork name, its associated network and the primary CIDR range.
- subnetwork¶
Subnetwork Name. Example: projects/my-project/regions/us- central1/subnetworks/my-subnet
- Type
str
- network¶
Network Name. Example: projects/my-project/global/networks/my- network
- Type
str
- ip_cidr_range¶
The range of internal addresses that are owned by this subnetwork.
- Type
str
- secondary_ip_ranges¶
Secondary IP ranges.
- status_message¶
A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
- Type
str
- class google.cloud.container_v1beta1.types.UsableSubnetworkSecondaryRange(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Secondary IP range of a usable subnetwork.
- range_name¶
The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance.
- Type
str
- ip_cidr_range¶
The range of IP addresses belonging to this subnetwork secondary range.
- Type
str
- status¶
This field is to determine the status of the secondary range programmably.
- class google.cloud.container_v1beta1.types.VerticalPodAutoscaling(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
VerticalPodAutoscaling contains global, per-cluster information required by Vertical Pod Autoscaler to automatically adjust the resources of pods controlled by it.
- enabled¶
Enables vertical pod autoscaling.
- Type
bool
- class google.cloud.container_v1beta1.types.VirtualNIC(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration of gVNIC feature.
- enabled¶
Whether gVNIC features are enabled in the node pool.
- Type
bool
- class google.cloud.container_v1beta1.types.WindowsVersions(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Windows server versions.
- windows_versions¶
List of Windows server versions.
- class WindowsVersion(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Windows server version.
- image_type¶
Windows server image type
- Type
str
- os_version¶
Windows server build number
- Type
str
- support_end_date¶
Mainstream support end date
- Type
google.type.date_pb2.Date
- class google.cloud.container_v1beta1.types.WorkloadCertificates(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- enable_certificates¶
enable_certificates controls issuance of workload mTLS certificates.
If set, the GKE Workload Identity Certificates controller and node agent will be deployed in the cluster, which can then be configured by creating a WorkloadCertificateConfig Custom Resource.
Requires Workload Identity ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool] must be non-empty).
- Type
google.protobuf.wrappers_pb2.BoolValue
- class google.cloud.container_v1beta1.types.WorkloadIdentityConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
- identity_namespace¶
IAM Identity Namespace to attach all Kubernetes Service Accounts to.
- Type
str
- workload_pool¶
The workload pool to attach all Kubernetes service accounts to.
- Type
str
- identity_provider¶
identity provider is the third party identity provider.
- Type
str
- class google.cloud.container_v1beta1.types.WorkloadMetadataConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool.
- node_metadata¶
NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
- mode¶
Mode is the configuration for how to expose metadata to workloads running on the node pool.