kubernetes_service_v1

A Service is an abstraction which defines a logical set of pods and a policy by which to access them - sometimes called a micro-service. This data source allows you to pull data about such service.

Example Usage

data "kubernetes_service_v1" "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_service_v1.example.status.0.load_balancer.0.ingress.0.hostname]
}

Argument Reference

The following arguments are supported:

Attributes

Nested Blocks

metadata

Arguments

Attributes

port

Attributes

spec

Attributes

Attributes

status

Attributes

load_balancer

Attributes

ingress

Attributes