kubernetes_ingress

Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. This data source allows you to pull data about such ingress.

Example Usage

data "kubernetes_ingress" "example" {
  metadata {
    name = "terraform-example"
  }
}

resource "aws_route53_record" "example" {
  zone_id = data.aws_route53_zone.k8.zone_id
  name    = "example"
  type    = "CNAME"
  ttl     = "300"
  records = [data.kubernetes_ingress.example.status.0.load_balancer.0.ingress.0.hostname]
}

Argument Reference

The following arguments are supported:

Nested Blocks

metadata

Arguments

Attributes

Attribute Reference

spec

Attributes

backend

Attributes

rule

Attributes

http

path

tls

Attributes

Attributes

status

load_balancer

ingress
Attributes