![](/img/trans.png)
[英]Kubernetes service account to access AWS S3 for different users in the container
[英]Kubernetes service usage for NLB from different AWS account
我需要添加帶有指向 NLB 的 ExternalName 的 kubernetes 服務(在不同的 AWS 賬戶中)。 我正在使用 terraform 來實現這一點。 我不確定如何使用 NLB 信息外部名稱部分。 有人可以幫忙嗎?
resource "kubernetes_service" "test_svc" {
metadata {
name = "test"
namespace = var.environment
labels = {
app = "test"
}
}
spec {
type = "ExternalName"
**external_name =**
}
}
外部名稱的用法如下:
apiVersion: v1
kind: Service
metadata:
name: my-service
namespace: prod
spec:
type: ExternalName
externalName: my.database.example.com
嘗試將 NLB CNAME 作為外部名稱
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.