-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Hello all,
I'm trying to deploy portainer to my EKS using terraform.
Here is my code:
resource "helm_release" "portainer" {
name = "portainer"
repository = "https://portainer.github.io/k8s/"
chart = "portainer"
namespace = "portainer"
lint = false
cleanup_on_fail = true
create_namespace = true
values = [yamlencode({
service = { type = "ClusterIP" }
ingress = {
enabled = true
annotations = { "kubernetes.io/ingress.class" = "nginx" }
hosts = [{ host = "portainer.${local.tfstate["route53"]["internal"]["name"]}" }]
}
persistence = { storageClass = "gp2" }
})]
}
Here is my error output:
helm_release.portainer: Creating...
Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Ingress.spec.rules[0].http): missing required field "paths" in io.k8s.api.networking.v1beta1.HTTPIngressRuleValue
I've said "okay" and added "paths":
ingress = {
enabled = true
annotations = { "kubernetes.io/ingress.class" = "nginx" }
hosts = [{
host = "portainer.${local.tfstate["route53"]["internal"]["name"]}"
paths = ["/"]
}]
}
And now I see this error:
helm_release.portainer: Creating...
Error: template: portainer/templates/ingress.yaml:35:21: executing "portainer/templates/ingress.yaml" at <.path>: can't evaluate field path in type interface {}
What I'm doing wrong? 😐
Metadata
Metadata
Assignees
Labels
No labels