【问题标题】:Where can i find my cluster domain in EKS?在 EKS 中哪里可以找到我的集群域?
【发布时间】:2021-12-28 00:04:48
【问题描述】:

我正在尝试将 jpetstore 应用程序部署到 EKS,并且遇到了需要填写的这个变量。(https://github.com/IBM-Cloud/jpetstore-kubernetes/blob/master/jpetstore/jpetstore.yaml)

在文档中它声明我可以使用命令:

Edit jpetstore/jpetstore.yaml and jpetstore/jpetstore-mmssearch.yaml and replace all instances of:
<CLUSTER DOMAIN> with your Ingress Subdomain (ibmcloud ks cluster get --cluster CLUSTER_NAME)

(https://github.com/IBM-Cloud/jpetstore-kubernetes)

但这适用于 ibm 云,我需要它用于 EKS。

我从哪里可以得到这个&lt;CLUSTER DOMAIN&gt; 值?

【问题讨论】:

  • 该文档看起来特定于 IBM 云上的 kubernetes。通常,入口主机是用户用于访问服务的 dns 主机名,例如 www.yourwebsite.com。
  • 如何在 aws 中进行设置? @乔丹

标签: amazon-web-services kubernetes terraform amazon-eks


【解决方案1】:

您可以在入口规范中定义自己的名称,例如 host: jpetstore.example.com。你需要installAWS LB Controller;它将处理您的入口请求并根据您的入口规范创建一个 ALB。然后您可以访问:curl -H 'HOST: jpetstore.example.com' http://&lt;your new alb endpoint&gt;

【讨论】:

  • 感谢您的帮助!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-12-02
  • 2017-11-26
  • 2021-04-09
  • 2022-10-20
  • 2019-07-27
  • 2014-07-16
  • 2012-05-30
相关资源
最近更新 更多