Struct gapi_grpc::google::container::v1beta1::Cluster [−][src]
A Google Kubernetes Engine cluster.
Fields
name: String
The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions:
- Lowercase letters, numbers, and hyphens only.
- Must start with a letter.
- Must end with a number or a letter.
description: String
An optional description of this cluster.
initial_node_count: 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.
This field is deprecated, use node_pool.initial_node_count instead.
node_config: Option<NodeConfig>
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: Option<MasterAuth>
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: String
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+ or logging.googleapis.com
for earlier versions.
monitoring_service: String
The monitoring service the cluster should use to write metrics. Currently available options:
- “monitoring.googleapis.com/kubernetes” - The Cloud Monitoring service with a Kubernetes-native resource model
monitoring.googleapis.com
- The legacy Cloud Monitoring service (no longer available as of GKE 1.15).none
- No metrics will be exported from the cluster.
If left as an empty string,monitoring.googleapis.com/kubernetes
will be
used for GKE 1.14+ or monitoring.googleapis.com
for earlier versions.
network: String
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.
cluster_ipv4_cidr: 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
.
addons_config: Option<AddonsConfig>
Configurations for the various addons available to run in the cluster.
subnetwork: String
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.
node_pools: Vec<NodePool>
The node pools associated with this cluster. This field should not be set if “node_config” or “initial_node_count” are specified.
locations: Vec<String>
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.
enable_kubernetes_alpha: bool
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.
resource_labels: HashMap<String, String>
The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
label_fingerprint: String
The fingerprint of the set of labels for this cluster.
legacy_abac: Option<LegacyAbac>
Configuration for the legacy ABAC authorization mode.
network_policy: Option<NetworkPolicy>
Configuration options for the NetworkPolicy feature.
ip_allocation_policy: Option<IpAllocationPolicy>
Configuration for cluster IP allocation.
The configuration options for master authorized networks feature.
maintenance_policy: Option<MaintenancePolicy>
Configure the maintenance policy for this cluster.
Configuration for Binary Authorization.
pod_security_policy_config: Option<PodSecurityPolicyConfig>
Configuration for the PodSecurityPolicy feature.
autoscaling: Option<ClusterAutoscaling>
Cluster-level autoscaling configuration.
network_config: Option<NetworkConfig>
Configuration for cluster networking.
private_cluster: bool
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.
master_ipv4_cidr_block: String
The IP prefix in CIDR notation to use for the hosted master network. This prefix will be used for assigning private IP addresses to the master or set of masters, as well as the ILB VIP. This field is deprecated, use private_cluster_config.master_ipv4_cidr_block instead.
default_max_pods_constraint: Option<MaxPodsConstraint>
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: Option<ResourceUsageExportConfig>
Configuration for exporting resource usages. Resource usage export is disabled when this config unspecified.
authenticator_groups_config: Option<AuthenticatorGroupsConfig>
Configuration controlling RBAC group membership information.
private_cluster_config: Option<PrivateClusterConfig>
Configuration for private cluster.
vertical_pod_autoscaling: Option<VerticalPodAutoscaling>
Cluster-level Vertical Pod Autoscaling configuration.
shielded_nodes: Option<ShieldedNodes>
Shielded Nodes configuration.
release_channel: Option<ReleaseChannel>
Release channel configuration.
workload_identity_config: Option<WorkloadIdentityConfig>
Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
cluster_telemetry: Option<ClusterTelemetry>
Telemetry integration for the cluster.
tpu_config: Option<TpuConfig>
Configuration for Cloud TPU support;
notification_config: Option<NotificationConfig>
Notification configuration of the cluster.
confidential_nodes: Option<ConfidentialNodes>
Configuration of Confidential Nodes
self_link: String
[Output only] Server-defined URL for the resource.
zone: String
[Output only] The name of the Google Compute Engine zone in which the cluster resides. This field is deprecated, use location instead.
endpoint: 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.
initial_cluster_version: 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
current_master_version: String
[Output only] The current software version of the master endpoint.
current_node_version: 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.
create_time: String
[Output only] The time the cluster was created, in RFC3339 text format.
status: i32
[Output only] The current status of this cluster.
status_message: String
[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.
node_ipv4_cidr_size: 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. This field will only be set when cluster is in route-based network
mode.
services_ipv4_cidr: 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.
instance_group_urls: Vec<String>
Deprecated. Use node_pools.instance_group_urls.
current_node_count: i32
[Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
expire_time: String
[Output only] The time the cluster will be automatically deleted in RFC3339 text format.
location: String
enable_tpu: bool
Enable the ability to use Cloud TPUs in this cluster. This field is deprecated, use tpu_config.enabled instead.
tpu_ipv4_cidr_block: String
[Output only] The IP address range of the Cloud TPUs in this cluster, in
CIDR
notation (e.g. 1.2.3.4/29
).
database_encryption: Option<DatabaseEncryption>
Configuration of etcd encryption.
conditions: Vec<StatusCondition>
Which conditions caused the current cluster state.
master: Option<Master>
Configuration for master components.
Implementations
impl Cluster
[src]
pub fn status(&self) -> Status
[src]
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
pub fn set_status(&mut self, value: Status)
[src]
Sets status
to the provided enum value.
Trait Implementations
impl Clone for Cluster
[src]
impl Debug for Cluster
[src]
impl Default for Cluster
[src]
impl Message for Cluster
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<Cluster> for Cluster
[src]
impl StructuralPartialEq for Cluster
[src]
Auto Trait Implementations
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnwindSafe for Cluster
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,