aws eks describe-cluster

From wikieduonline
Jump to navigation Jump to search

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/describe-cluster.html aws eks describe-cluster

Examples

aws eks describe-cluster --name your_cluster_name | grep status
"status": "UPDATING" | "status": "ACTIVE"
aws eks describe-cluster --name  $CLUSTER_NAME |  grep endpoint
aws eks describe-cluster --name your_cluster_name | grep endpointPublicAccess


{
   "cluster": {
       "name": "education-eks-fuYvBeqk",
       "arn": "arn:aws:eks:us-east-2:12345567:cluster/education-eks-fuYvBeqk",
       "createdAt": "2022-06-10T20:16:02.354000+02:00",
       "version": "1.21",
       "endpoint": "https://XXXXX7EB0A.gr7.us-east-2.eks.amazonaws.com",
       "roleArn": "arn:aws:iam::12345567:role/education-eks-fuYvBeqk20220610181533885900000003",
       "resourcesVpcConfig": {
           "subnetIds": [
               "subnet-01f1c5501eafda971",
               "subnet-021dc3fee44b6082d",
               "subnet-0cab46c16c5688d6f"
           ],
            "securityGroupIds": [
                "sg-0c9598605bfb6d96a"
            ],
            "clusterSecurityGroupId": "sg-0ba2953e46b431170",
            "vpcId": "vpc-0717226a31exxxxx",
            "endpointPublicAccess": true,
            "endpointPrivateAccess": false,
            "publicAccessCidrs": [
                "0.0.0.0/0"
            ]
        },
        "kubernetesNetworkConfig": {
            "serviceIpv4Cidr": "172.20.0.0/16",
            "ipFamily": "ipv4"
        },
        "logging": {
            "clusterLogging": [
                {
                    "types": [
                        "api",
                        "audit",
                        "authenticator",
                        "controllerManager",
                        "scheduler"
                    ],
                    "enabled": false
                }
            ]
        },
        "identity": {
            "oidc": {
                "issuer": "https://oidc.eks.us-east-2.amazonaws.com/id/6457185BA3C72F8Axxxxxxxx"
            }
        },
        "status": "UPDATING",
        "certificateAuthority": {
            "data":  "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM1ekNDQWMrZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201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4ajRRNjVjRmVKSnZoUjUwM091eDR5WWkzYnBsY Wk3UnVGUXI0TWNpVGxydmZxY2x3MUhhYVAvQzhRRk1XCitzeEdsUjNqSDYvMUtqb1JoeEkzMUZ4RS9acHB1aGV0cHF1NgotLS
XXXXXXXXXXX"
        },
        "platformVersion": "eks.7",
        "tags": {}
    }
}



.../...
        },
        "platformVersion": "eks.2",
        "tags": {}
    }
}

Official example

aws eks describe-cluster --name devel
{
    "cluster": {
        "name": "devel",
        "arn": "arn:aws:eks:us-west-2:012345678910:cluster/devel",
        "createdAt": 1527807879.988,
        "version": "1.10",
        "endpoint": "https://EXAMPLE0A04F01705DD065655C30CC3D.yl4.us-west-2.eks.amazonaws.com",
        "roleArn": "arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI",
        "resourcesVpcConfig": {
            "subnetIds": [
                "subnet-6782e71e",
                "subnet-e7e761ac"
            ],
            "securityGroupIds": [
                "sg-6979fe18"
            ],
            "vpcId": "vpc-950809ec"
        },
        "status": "ACTIVE",
        "certificateAuthority": {
            "data": "EXAMPLECRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRFNE1EVXpNVEl6TVRFek1Wb1hEVEk0TURVeU9ESXpNVEV6TVZvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTTZWCjVUaG4rdFcySm9Xa2hQMzRlVUZMNitaRXJOZGIvWVdrTmtDdWNGS2RaaXl2TjlMVmdvUmV2MjlFVFZlN1ZGbSsKUTJ3ZURyRXJiQyt0dVlibkFuN1ZLYmE3ay9hb1BHekZMdmVnb0t6b0M1N2NUdGVwZzRIazRlK2tIWHNaME10M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