Struct google_container1::Cluster

source ·
pub struct Cluster {
Show 38 fields pub node_ipv4_cidr_size: Option<i32>, pub maintenance_policy: Option<MaintenancePolicy>, pub network_policy: Option<NetworkPolicy>, pub master_authorized_networks_config: Option<MasterAuthorizedNetworksConfig>, pub addons_config: Option<AddonsConfig>, pub locations: Option<Vec<String>>, pub legacy_abac: Option<LegacyAbac>, pub network: Option<String>, pub logging_service: Option<String>, pub instance_group_urls: Option<Vec<String>>, pub network_config: Option<NetworkConfig>, pub ip_allocation_policy: Option<IPAllocationPolicy>, pub zone: Option<String>, pub services_ipv4_cidr: Option<String>, pub status_message: Option<String>, pub location: Option<String>, pub status: Option<String>, pub description: Option<String>, pub current_node_version: Option<String>, pub label_fingerprint: Option<String>, pub current_master_version: Option<String>, pub master_auth: Option<MasterAuth>, pub expire_time: Option<String>, pub initial_node_count: Option<i32>, pub node_pools: Option<Vec<NodePool>>, pub monitoring_service: Option<String>, pub create_time: Option<String>, pub private_cluster_config: Option<PrivateClusterConfig>, pub endpoint: Option<String>, pub current_node_count: Option<i32>, pub name: Option<String>, pub enable_kubernetes_alpha: Option<bool>, pub initial_cluster_version: Option<String>, pub node_config: Option<NodeConfig>, pub cluster_ipv4_cidr: Option<String>, pub subnetwork: Option<String>, pub resource_labels: Option<HashMap<String, String>>, pub self_link: Option<String>,
}
Expand description

A Google Kubernetes Engine cluster.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§node_ipv4_cidr_size: Option<i32>

[Output only] The size of the address space on each node for hosting containers. This is provisioned from within the container_ipv4_cidr range.

§maintenance_policy: Option<MaintenancePolicy>

Configure the maintenance policy for this cluster.

§network_policy: Option<NetworkPolicy>

Configuration options for the NetworkPolicy feature.

§master_authorized_networks_config: Option<MasterAuthorizedNetworksConfig>

The configuration options for master authorized networks feature.

§addons_config: Option<AddonsConfig>

Configurations for the various addons available to run in the cluster.

§locations: Option<Vec<String>>

The list of Google Compute Engine locations in which the cluster’s nodes should be located.

§legacy_abac: Option<LegacyAbac>

Configuration for the legacy ABAC authorization mode.

§network: Option<String>

The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the default network will be used.

§logging_service: Option<String>

The logging service the cluster should use to write logs. Currently available options:

  • logging.googleapis.com - the Google Cloud Logging service.
  • none - no logs will be exported from the cluster.
  • if left as an empty string,logging.googleapis.com will be used.
§instance_group_urls: Option<Vec<String>>

Deprecated. Use node_pools.instance_group_urls.

§network_config: Option<NetworkConfig>

Configuration for cluster networking.

§ip_allocation_policy: Option<IPAllocationPolicy>

Configuration for cluster IP allocation.

§zone: Option<String>

[Output only] The name of the Google Compute Engine zone in which the cluster resides. This field is deprecated, use location instead.

§services_ipv4_cidr: Option<String>

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

§status_message: Option<String>

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

§location: Option<String>

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

§status: Option<String>

[Output only] The current status of this cluster.

§description: Option<String>

An optional description of this cluster.

§current_node_version: Option<String>

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

§label_fingerprint: Option<String>

The fingerprint of the set of labels for this cluster.

§current_master_version: Option<String>

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

§master_auth: Option<MasterAuth>

The authentication information for accessing the master endpoint.

§expire_time: Option<String>

[Output only] The time the cluster will be automatically deleted in RFC3339 text format.

§initial_node_count: Option<i32>

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.

§node_pools: Option<Vec<NodePool>>

The node pools associated with this cluster. This field should not be set if “node_config” or “initial_node_count” are specified.

§monitoring_service: Option<String>

The monitoring service the cluster should use to write metrics. Currently available options:

  • monitoring.googleapis.com - the Google Cloud Monitoring service.
  • none - no metrics will be exported from the cluster.
  • if left as an empty string, monitoring.googleapis.com will be used.
§create_time: Option<String>

[Output only] The time the cluster was created, in RFC3339 text format.

§private_cluster_config: Option<PrivateClusterConfig>

Configuration for private cluster.

§endpoint: Option<String>

[Output only] The IP address of this cluster’s master endpoint. The endpoint can be accessed from the internet at https://username:password@endpoint/.

See the masterAuth property of this resource for username and password information.

§current_node_count: Option<i32>

[Output only] The number of nodes currently in the cluster.

§name: Option<String>

The name of this cluster. The name must be unique within this project and zone, and can be up to 40 characters with the following restrictions:

  • Lowercase letters, numbers, and hyphens only.
  • Must start with a letter.
  • Must end with a number or a letter.
§enable_kubernetes_alpha: Option<bool>

Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) 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.

§initial_cluster_version: Option<String>

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
§node_config: Option<NodeConfig>

Parameters used in creating the cluster’s nodes. See nodeConfig for the description of its properties. 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.

If unspecified, the defaults are used.

§cluster_ipv4_cidr: Option<String>

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 in 10.0.0.0/8.

§subnetwork: Option<String>

The name of the Google Compute Engine subnetwork to which the cluster is connected.

§resource_labels: Option<HashMap<String, String>>

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

§self_link: Option<String>

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

Trait Implementations§

source§

impl Clone for Cluster

source§

fn clone(&self) -> Cluster

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Cluster

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Cluster

source§

fn default() -> Cluster

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Cluster

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Cluster

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ResponseResult for Cluster

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Typeable for T
where T: Any,

source§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,