Skip to content

Commit

Permalink
custom kafka endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaman committed Sep 13, 2019
1 parent 7e03a7e commit e9f8b20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ resource "kubernetes_ingress" "kafka_rest_ingress" {

http {
path {
path = "/kafka(/|$)(.*)"
path = "/${var.kafka_rest_endpoint}(/|$)(.*)"

backend {
service_name = "${var.kafka_name}-rest-service"
Expand Down
4 changes: 4 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ variable "kafka_rest_enabled" {
type = bool
default = false
}
variable "kafka_rest_endpoint" {
type = string
default = "kafka"
}

0 comments on commit e9f8b20

Please sign in to comment.