Skip to content

Latest commit

 

History

History
101 lines (81 loc) · 3.08 KB

lke_cluster_info.md

File metadata and controls

101 lines (81 loc) · 3.08 KB

lke_cluster_info

Get info about a Linode LKE cluster.

Examples

- name: Get info about an LKE cluster by label
  linode.cloud.lke_cluster_info:
    label: 'my-cluster' 
- name: Get info about an LKE cluster by ID
  linode.cloud.lke_cluster_info:
    id: 12345

Parameters

Field Type Required Description
id int Optional The ID of the LKE cluster. Optional if label is defined. (Conflicts With: label)
label str Optional The label of the LKE cluster. Optional if id is defined. (Conflicts With: id)

Return Values

  • cluster - The LKE cluster in JSON serialized form.

    • Sample Response:
      {
        "control_plane": {
          "high_availability": true
        },
        "created": "2019-09-12T21:25:30Z",
        "id": 1234,
        "k8s_version": "1.23",
        "label": "lkecluster12345",
        "region": "us-central",
        "tags": [
          "ecomm",
          "blogs"
        ],
        "updated": "2019-09-13T21:24:16Z"
      }
    • See the Linode API response documentation for a list of returned fields
  • node_pools - A list of node pools in JSON serialized form.

    • Sample Response:
      [
        {
          "autoscaler": {
            "enabled": true,
            "max": 12,
            "min": 3
          },
          "count": 6,
          "disks": [
            {
              "size": 1024,
              "type": "ext-4"
            }
          ],
          "id": 456,
          "nodes": [
            {
              "id": "123456",
              "instance_id": 123458,
              "status": "ready"
            }
          ],
          "tags": [
            "example tag",
            "another example"
          ],
          "type": "g6-standard-4"
        }
      ]
    • See the Linode API response documentation for a list of returned fields
  • kubeconfig - The Base64-encoded kubeconfig used to access this cluster. NOTE: This value may be unavailable if the cluster is not fully provisioned.

  • dashboard_url - The Cluster Dashboard access URL.