Data Source: oci_containerengine_cluster_kube_config
This data source provides details about a specific Cluster Kube Config resource in Oracle Cloud Infrastructure Container Engine service.
Create the Kubeconfig YAML for a cluster.
Example Usage
data "oci_containerengine_cluster_kube_config" "test_cluster_kube_config" {
#Required
cluster_id = oci_containerengine_cluster.test_cluster.id
#Optional
endpoint = var.cluster_kube_config_endpoint
expiration = var.cluster_kube_config_expiration
token_version = var.cluster_kube_config_token_version
}
Argument Reference
The following arguments are supported:
cluster_id
- (Required) The OCID of the cluster.endpoint
- (Optional) The endpoint to target. A cluster may have multiple endpoints exposed but the kubeconfig can only target one at a time.expiration
- (Optional) Deprecated. This field is no longer used.token_version
- (Optional) The version of the kubeconfig token. Supported value 2.0.0
Attributes Reference
The following attributes are exported:
content
- content of the Kubeconfig YAML for the cluster.