【问题标题】:what is the kubectl equivalent of ibmcloud ks cluster get --cluster CLUSTER_NAME?ibmcloud ks cluster get --cluster CLUSTER_NAME 的 kubectl 等价物是什么?
【发布时间】:2021-12-27 19:51:30
【问题描述】:

我正在尝试将 jpetstore 应用程序 (https://github.com/IBM-Cloud/jpetstore-kubernetes) 部署到 EKS 中的 kubernetes 中,但我无法解释此命令,因为它用于 IBM 云:

ibmcloud ks cluster get --cluster CLUSTER_NAME

如果我使用kubectl,那么 EKS 等价物是什么?

我使用以下 terraform 设置了 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
}

命令可以检索端点吗?

【问题讨论】:

    标签: amazon-web-services kubernetes terraform ibm-cloud kubectl


    【解决方案1】:

    集群名称:

    $ 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'.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-10
      • 2021-05-17
      • 2019-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-01
      相关资源
      最近更新 更多