» Data Source: oci_containerengine_clusters
This data source provides the list of Clusters in Oracle Cloud Infrastructure Container Engine service.
List all the cluster objects in a compartment.
» Example Usage
data "oci_containerengine_clusters" "test_clusters" {
#Required
compartment_id = "${var.compartment_id}"
#Optional
name = "${var.cluster_name}"
state = "${var.cluster_state}"
}
» Argument Reference
The following arguments are supported:
-
compartment_id
- (Required) The OCID of the compartment. -
name
- (Optional) The name to filter on. -
state
- (Optional) A cluster lifecycle state to filter on. Can have multiple parameters of this name.
» Attributes Reference
The following attributes are exported:
-
clusters
- The list of clusters.
» Cluster Reference
The following attributes are exported:
-
available_kubernetes_upgrades
- Available Kubernetes versions to which the clusters masters may be upgraded. -
compartment_id
- The OCID of the compartment in which the cluster exists. -
endpoints
- Endpoints served up by the cluster masters.-
kubernetes
- The Kubernetes API server endpoint.
-
-
id
- The OCID of the cluster. -
kubernetes_version
- The version of Kubernetes running on the cluster masters. -
lifecycle_details
- Details about the state of the cluster masters. -
metadata
- Metadata about the cluster.-
created_by_user_id
- The user who created the cluster. -
created_by_work_request_id
- The OCID of the work request which created the cluster. -
deleted_by_user_id
- The user who deleted the cluster. -
deleted_by_work_request_id
- The OCID of the work request which deleted the cluster. -
time_created
- The time the cluster was created. -
time_deleted
- The time the cluster was deleted. -
time_updated
- The time the cluster was updated. -
updated_by_user_id
- The user who updated the cluster. -
updated_by_work_request_id
- The OCID of the work request which updated the cluster.
-
-
name
- The name of the cluster. -
options
- Optional attributes for the cluster.-
add_ons
- Configurable cluster add-ons-
is_kubernetes_dashboard_enabled
- Whether or not to enable the Kubernetes Dashboard add-on. -
is_tiller_enabled
- Whether or not to enable the Tiller add-on.
-
-
kubernetes_network_config
- Network configuration for Kubernetes.-
pods_cidr
- The CIDR block for Kubernetes pods. -
services_cidr
- The CIDR block for Kubernetes services.
-
-
service_lb_subnet_ids
- The OCIDs of the subnets used for Kubernetes services load balancers.
-
-
state
- The state of the cluster masters. -
vcn_id
- The OCID of the virtual cloud network (VCN) in which the cluster exists.