我正在尝试部署jpetstore应用程序(https://github.com/IBM-Cloud/jpetstore-kubernetes)进入EKS中的kubernetes,我在解释这个命令时遇到了困难,因为它用于IBM云:
ibmcloud ks cluster get --cluster CLUSTER_NAME
如果我使用kubectl
,EKS等效值是多少?
我使用下面的地形设置EKS:
provider "kubernetes" {
host = data.aws_eks_cluster.cluster.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority.0.data)
token = data.aws_eks_cluster_auth.cluster.token
}
命令可能正在检索端点吗?
集群名称:
$ kubectl config get-clusters
NAME
kubernetes
集群端点信息:
$ kubectl cluster-info
Kubernetes master is running at https://172.17.0.109:6443
dash-kubernetes-dashboard is running at https://172.17.0.109:6443/api/v1/namespaces/kube-system/services/https:dash-kubernetes-dashboard:https/proxy
KubeDNS is running at https://172.17.0.109:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.