我想在我的EKS集群中使用EFS。我正在参加这个星期的研讨会。
我需要使用customize:
部署EFS CSI Driver
kubectl apply -k "github.com/kubernetes-sigs/aws-efs-csi-driver/deploy/kubernetes/overlays/stable/?ref=release-1.0"
上面的命令在terraform中对应什么?
是这样的吗?
terraform {
required_providers {
kustomization = {
source = "kbst/kustomize"
version = "0.2.0-beta.3"
}
}
required_version = ">= 0.12"
}
provider "kustomization" {}
data "kustomization" "test" {
provider = kustomization
path = "github.com/kubernetes-sigs/aws-efs-csi-driver/deploy/kubernetes/overlays/stable/?ref=release-1.0"
}
resource "kustomization_resource" "test" {
provider = kustomization
for_each = data.kustomization.test.ids
manifest = data.kustomization.test.manifests[each.value]
}
是的,您所展示的方法是实现它的正确方法。您可以在这里获得有关定制提供程序的更多信息。