Terraform-provider-helm: [stable/kibana] Make Ingress

Created on 7 Nov 2018  路  2Comments  路  Source: hashicorp/terraform-provider-helm

Hi!

How I make this Ingress configuration.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: kibana
  annotations:
    kubernetes.io/ingress.class: addon-http-application-routing
spec:
  rules:
  - host: Kibana.xpto.com
    http:
      paths:
      - backend:
          serviceName: kibana
          servicePort: 5601
        path: /

With Terraform Helm with set? My current file is this:

resource "helm_release" "kibana" {
  name      = "kibana"
  chart     = "stable/kibana"
  namespace = "backoffice"

  set {
    name = "rbac.create"
    value = "true"
  }

  set {
    name = "env.SERVER_HOST"
    value = "0.0.0.0"
  }

  set {
    name = "env.ELASTICSEARCH_URL"
    value = "http://elasticsearch-client.backoffice:9200"
  }

  set {
    name = "service.externalPort"
    value = "5601"
  }

  timeout="600"
}

Most helpful comment

For a kubernetes.io/ingress.class: addon-http-application-routing annotation you need to escape the dots in the "kubernetes.io/ingress.class" namespace parts like so:

  set {
    name  = "service.annotations.kubernetes\\.io/ingress\\.class"
    value = "addon-http-application-routing"
  }

All 2 comments

For a kubernetes.io/ingress.class: addon-http-application-routing annotation you need to escape the dots in the "kubernetes.io/ingress.class" namespace parts like so:

  set {
    name  = "service.annotations.kubernetes\\.io/ingress\\.class"
    value = "addon-http-application-routing"
  }

Oh shit...thx a lot.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oba11 picture oba11  路  5Comments

duxet picture duxet  路  3Comments

servo1x picture servo1x  路  3Comments

lmgnid picture lmgnid  路  3Comments

dprosper picture dprosper  路  5Comments