» 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" {
    cluster_id = "${oci_containerengine_cluster.test_cluster.id}"

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