Skip to content

Latest commit

 

History

History
160 lines (100 loc) · 6.03 KB

File metadata and controls

160 lines (100 loc) · 6.03 KB
page_title duploai_k8s_ingress Data Source - duploai
subcategory
description Manages a DuploCloud AI Helpdesk Kubernetes Ingress — an HTTP/HTTPS routing rule set that exposes services within an environment or resource group.

duploai_k8s_ingress (Data Source)

Manages a DuploCloud AI Helpdesk Kubernetes Ingress — an HTTP/HTTPS routing rule set that exposes services within an environment or resource group.

Example Usage

data "duploai_k8s_ingress" "example" {
  workspace_id = var.workspace_id
  id           = var.ingress_id
}

Schema

Required

  • id (String) ID of the object to look up.
  • workspace_id (String) ID of the workspace that owns this Ingress.

Read-Only

  • annotations (Map of String) Kubernetes annotations applied to the Ingress (e.g. nginx.ingress.kubernetes.io/rewrite-target). ALB annotations the platform injects (security-groups, subnets, certificate-arn, ssl-policy, target-node-labels, tags) are managed server-side and not tracked here.
  • default_backend (Attributes) Default backend to forward traffic to when no rule matches. (see below for nested schema)
  • description (String) Optional description.
  • environment_id (String) ID of the environment in which the Ingress is created.
  • ingress_class_name (String) Name of the IngressClass cluster resource (e.g. nginx, alb).
  • k8s_ingress_id (String) ID of this ingress, for reference by dependent resources.
  • labels (Map of String) Kubernetes labels applied to the Ingress.
  • load_balancer (Attributes) Load balancer status assigned by the cloud ingress controller after provisioning. The address is populated asynchronously — set wait_for_load_balancer = true to have create/update wait until it is available. (see below for nested schema)
  • name (String) Name of the Kubernetes Ingress resource.
  • namespace_name (String) Kubernetes namespace the Ingress is created in.
  • resource_group_id (String) ID of the resource group (Kubernetes cluster) this Ingress belongs to.
  • rules (Attributes List) List of host rules that define how traffic is routed to backend services. (see below for nested schema)
  • status (String) Current provisioning status of the Ingress resource.
  • tls (Attributes List) TLS configuration blocks, each pairing a list of hosts with a certificate secret. (see below for nested schema)

Nested Schema for default_backend

Read-Only:

Nested Schema for default_backend.service

Read-Only:

  • name (String) Kubernetes Service name to route traffic to.
  • port (Attributes) Port on the referenced service. (see below for nested schema)

Nested Schema for default_backend.service.port

Read-Only:

  • name (String) Named port on the service.
  • number (Number) Numeric port on the service.

Nested Schema for load_balancer

Read-Only:

Nested Schema for load_balancer.ingress

Read-Only:

  • hostname (String) Hostname of the load balancer (e.g. the ALB/NLB DNS name).
  • ip (String) IP address of the load balancer, when assigned instead of a hostname.
  • ports (Attributes List) Per-port status for the load balancer address. (see below for nested schema)

Nested Schema for load_balancer.ingress.ports

Read-Only:

  • error (String) Error reported for this port, if any.
  • port (Number) Port number.
  • protocol (String) Protocol (TCP, UDP, SCTP).

Nested Schema for rules

Read-Only:

  • host (String) Hostname for this rule (e.g. api.example.com). Omit to match all hosts.
  • http (Attributes) HTTP path-based routing rules for this host. (see below for nested schema)

Nested Schema for rules.http

Read-Only:

Nested Schema for rules.http.paths

Read-Only:

  • backend (Attributes) Backend to route matched traffic to. (see below for nested schema)
  • path (String) URL path to match (e.g. /api).
  • path_type (String) Path matching semantics: Exact, Prefix, or ImplementationSpecific.

Nested Schema for rules.http.paths.backend

Read-Only:

Nested Schema for rules.http.paths.backend.service

Read-Only:

  • name (String) Kubernetes Service name.
  • port (Attributes) Port on the referenced service. (see below for nested schema)

Nested Schema for rules.http.paths.backend.service.port

Read-Only:

  • name (String) Named port on the service.
  • number (Number) Numeric port on the service.

Nested Schema for tls

Read-Only:

  • hosts (List of String) Hostnames covered by this TLS certificate.
  • secret_name (String) Name of the Kubernetes Secret containing the TLS certificate and key.