| page_title | duploai_app_service Data Source - duploai |
|---|---|
| subcategory | |
| description | Manages a DuploCloud AI Helpdesk app service (Kubernetes Deployment). |
Manages a DuploCloud AI Helpdesk app service (Kubernetes Deployment).
# Look up an app service by ID.
data "duploai_app_service" "example" {
workspace_id = "<workspace-id>"
id = "<object-id>"
}
output "status" {
value = data.duploai_app_service.example.status
}
output "service_name" {
value = data.duploai_app_service.example.service_name
}
output "ingress_name" {
value = data.duploai_app_service.example.ingress_name
}id(String) ID of the object to look up.workspace_id(String) ID of the workspace that owns this app service.
affinity(Attributes) Node/pod affinity and anti-affinity scheduling rules. (see below for nested schema)annotations(Map of String) Kubernetes annotations applied to the Deployment object.app_service_id(String) ID of this app service, for reference by dependent resources.automount_service_account_token(Boolean) Whether to automount the service account token into the pod.containers(Attributes List) Containers that make up the pod. (see below for nested schema)deployment_name(String) Name of the Kubernetes Deployment object (typically the same as name).description(String) Optional description.dns_config(Attributes) Custom DNS settings, merged per dns_policy. (see below for nested schema)dns_policy(String) Pod DNS policy.enable_service_links(Boolean) Inject service discovery environment variables for services in the namespace.environment_id(String) ID of the environment that owns the resource group.host_aliases(Attributes List) Additional /etc/hosts entries injected into the pod. (see below for nested schema)host_ipc(Boolean) Use the host IPC namespace.host_network(Boolean) Use the host network namespace.host_pid(Boolean) Use the host PID namespace.hostname(String) Pod hostname (defaults to the pod name).hpa(Attributes) Optional HorizontalPodAutoscaler that scales the deployment between min and max replicas based on metrics. Requires replication_type = "Hpa". The platform sets the autoscaler's name and scale target to this app service's workload automatically. Omit to create no autoscaler. (see below for nested schema)hpa_name(String) Name of the provisioned HorizontalPodAutoscaler (set when replication_type is Hpa).image_pull_secrets(Attributes List) Image pull secrets referenced by the pods, for pulling container images from private registries. (see below for nested schema)ingress(Attributes) Optional Kubernetes Ingress exposing the Service over HTTP(S). Omit to create no Ingress. (see below for nested schema)ingress_name(String) Name of the provisioned Ingress (if any).init_containers(Attributes List) Init containers that run to completion, in order, before the main containers start. (see below for nested schema)labels(Map of String) Kubernetes labels applied to the Deployment object.match_labels(Map of String) Deployment selector matchLabels. Must match pod_labels.name(String) Name of the app service resource.namespace_name(String) Kubernetes namespace the deployment is created in.node_selector(Map of String) Node labels a node must have for the pod to be scheduled onto it.pod_labels(Map of String) Labels applied to the pod template (must satisfy match_labels).pod_security_context(Attributes) Pod-level security settings applied to all containers. (see below for nested schema)priority_class_name(String) PriorityClass name used to set the pod's scheduling priority.provisioner_type(String) Provisioner type: Cli, IacNativeTf, IacDuploTf, or DirectApiCall.provisioner_version(String) Optional provisioner version.replicas(Number) Number of pod replicas.replication_type(String) How the deployment's replica count is managed: Static (fixed replicas), Hpa (managed by the hpa block), or ExternalHpa (managed by an HPA outside this resource). Must be set to Hpa when an hpa block is configured.resource_group_id(String) ID of the resource group (EKS cluster) this app service belongs to.restart_policy(String) Pod restart policy. Deployments require Always.runtime_class_name(String) RuntimeClass to use for the pod (e.g. gvisor).scheduler_name(String) Name of the scheduler that dispatches the pod.scope_ids(List of String) Scope IDs that link this app service to a cloud provider account. Leave unset to inherit from the environment/resource group; set explicitly to override.service(Attributes) Optional Kubernetes Service exposing the deployment. Omit to create no Service. (see below for nested schema)service_account_name(String) Service account the pods run as.service_name(String) Name of the provisioned Service (if any).set_hostname_as_fqdn(Boolean) Set the pod's hostname to its fully qualified domain name.share_process_namespace(Boolean) Share a single process namespace between all containers in the pod.status(String) Current provisioning status.strategy_type(String) Deployment update strategy: RollingUpdate or Recreate.subdomain(String) Pod subdomain, used with a headless Service for stable DNS.termination_grace_period_seconds(Number) Seconds the pod is given to shut down gracefully before being force-killed.tolerations(Attributes List) Tolerations that allow the pod onto tainted nodes. (see below for nested schema)topology_spread_constraints(Attributes List) Rules for spreading pods across topology domains (zones, nodes). (see below for nested schema)volumes(Attributes List) Pod volumes that containers can mount via volume_mounts. (see below for nested schema)
Read-Only:
node_affinity(Attributes) Constrain scheduling by node labels. (see below for nested schema)pod_affinity(Attributes) Co-locate with pods matching a label selector. (see below for nested schema)pod_anti_affinity(Attributes) Avoid scheduling near pods matching a label selector. (see below for nested schema)
Read-Only:
preferred(Attributes List) Soft node preferences. (see below for nested schema)required(Attributes) Hard node requirements. (see below for nested schema)
Read-Only:
preference(Attributes) Node selector term. (see below for nested schema)weight(Number) Preference weight (1-100).
Read-Only:
match_expressions(Attributes List) Node label matchers. (see below for nested schema)match_fields(Attributes List) Node field matchers. (see below for nested schema)
Read-Only:
key(String) Node label key.operator(String) Operator.values(List of String) Values.
Read-Only:
key(String) Node field key.operator(String) Operator.values(List of String) Values.
Read-Only:
node_selector_terms(Attributes List) Node selector terms (ORed). (see below for nested schema)
Read-Only:
match_expressions(Attributes List) Node label matchers. (see below for nested schema)match_fields(Attributes List) Node field matchers. (see below for nested schema)
Read-Only:
key(String) Node label key.operator(String) Operator.values(List of String) Values.
Read-Only:
key(String) Node field key.operator(String) Operator.values(List of String) Values.
Read-Only:
preferred(Attributes List) Soft co-location preferences. (see below for nested schema)required(Attributes List) Hard co-location requirements. (see below for nested schema)
Read-Only:
pod_affinity_term(Attributes) Affinity term. (see below for nested schema)weight(Number) Preference weight (1-100).
Read-Only:
label_selector(Attributes) Pod label selector. (see below for nested schema)namespaces(List of String) Namespaces to match pods in.topology_key(String) Topology domain node label.
Read-Only:
match_expressions(Attributes List) Set matchers. (see below for nested schema)match_labels(Map of String) Equality matchers.
Nested Schema for affinity.pod_affinity.preferred.pod_affinity_term.label_selector.match_expressions
Read-Only:
key(String) Label key.operator(String) Operator.values(List of String) Values.
Read-Only:
label_selector(Attributes) Pod label selector. (see below for nested schema)namespaces(List of String) Namespaces to match pods in.topology_key(String) Node label defining the topology domain.
Read-Only:
match_expressions(Attributes List) Set matchers. (see below for nested schema)match_labels(Map of String) Equality matchers.
Read-Only:
key(String) Label key.operator(String) Operator.values(List of String) Values.
Read-Only:
preferred(Attributes List) Soft anti-affinity preferences. (see below for nested schema)required(Attributes List) Hard anti-affinity requirements. (see below for nested schema)
Read-Only:
pod_affinity_term(Attributes) Anti-affinity term. (see below for nested schema)weight(Number) Preference weight (1-100).
Read-Only:
label_selector(Attributes) Pod label selector. (see below for nested schema)namespaces(List of String) Namespaces to match pods in.topology_key(String) Topology domain node label.
Read-Only:
match_expressions(Attributes List) Set matchers. (see below for nested schema)match_labels(Map of String) Equality matchers.
Nested Schema for affinity.pod_anti_affinity.preferred.pod_affinity_term.label_selector.match_expressions
Read-Only:
key(String) Label key.operator(String) Operator.values(List of String) Values.
Read-Only:
label_selector(Attributes) Pod label selector. (see below for nested schema)namespaces(List of String) Namespaces to match pods in.topology_key(String) Node label defining the topology domain.
Read-Only:
match_expressions(Attributes List) Set matchers. (see below for nested schema)match_labels(Map of String) Equality matchers.
Read-Only:
key(String) Label key.operator(String) Operator.values(List of String) Values.
Read-Only:
args(List of String) Arguments to the entrypoint.command(List of String) Entrypoint override.env(Attributes List) Environment variables. Set value for a literal, or value_from to source from a Secret/ConfigMap key or pod field. (see below for nested schema)env_from(Attributes List) Populate environment variables in bulk from entire ConfigMaps or Secrets. (see below for nested schema)image(String) Container image (e.g. nginx:1.27).image_pull_policy(String) Image pull policy: Always, IfNotPresent, or Never.lifecycle(Attributes) Container lifecycle hooks. (see below for nested schema)liveness_probe(Attributes) Probe that restarts the container when it fails. (see below for nested schema)name(String) Container name.ports(Attributes List) Ports the container exposes. (see below for nested schema)readiness_probe(Attributes) Probe that removes the pod from Service endpoints when it fails. (see below for nested schema)resources_limits(Map of String) Resource limits, e.g. { cpu = "500m", memory = "512Mi" }.resources_requests(Map of String) Resource requests, e.g. { cpu = "250m", memory = "256Mi" }.security_context(Attributes) Container-level security settings. (see below for nested schema)startup_probe(Attributes) Probe that gates liveness/readiness until the container has started. (see below for nested schema)stdin(Boolean) Allocate a buffer for stdin in the container.stdin_once(Boolean) Close the stdin channel after the first attach disconnects.termination_message_path(String) File from which the container's termination message is read.termination_message_policy(String) How the termination message is populated.tty(Boolean) Allocate a TTY for the container.volume_devices(Attributes List) Raw block devices to map into the container. (see below for nested schema)volume_mounts(Attributes List) Mount pod volumes into the container filesystem. (see below for nested schema)working_dir(String) Container working directory.
Read-Only:
name(String) Variable name.value(String) Literal variable value. Mutually exclusive with value_from.value_from(Attributes) Source the value from a Secret/ConfigMap key or pod/container field. Mutually exclusive with value. (see below for nested schema)
Read-Only:
config_map_key_ref(Attributes) Reference a key in a ConfigMap. (see below for nested schema)field_ref(Attributes) Reference a field of the pod (e.g. metadata.name, status.podIP). (see below for nested schema)resource_field_ref(Attributes) Reference a container resource (e.g. limits.cpu, requests.memory). (see below for nested schema)secret_key_ref(Attributes) Reference a key in a Secret. (see below for nested schema)
Read-Only:
key(String) Key within the ConfigMap.name(String) Name of the ConfigMap.optional(Boolean) Whether the ConfigMap or key must exist.
Read-Only:
api_version(String) API version the field path is evaluated against (default v1).field_path(String) Path of the field, e.g. metadata.namespace.
Read-Only:
container_name(String) Container to read the resource from (defaults to this container).divisor(String) Output format divisor, e.g. 1m or 1Mi.resource(String) Resource to expose, e.g. limits.cpu.
Read-Only:
key(String) Key within the Secret.name(String) Name of the Secret.optional(Boolean) Whether the Secret or key must exist.
Read-Only:
config_map_ref(Attributes) Load all keys from a ConfigMap. (see below for nested schema)prefix(String) Prefix prepended to each key's environment variable name.secret_ref(Attributes) Load all keys from a Secret. (see below for nested schema)
Read-Only:
name(String) Name of the ConfigMap.optional(Boolean) Whether the ConfigMap must exist.
Read-Only:
name(String) Name of the Secret.optional(Boolean) Whether the Secret must exist.
Read-Only:
post_start(Attributes) Hook run immediately after the container starts. (see below for nested schema)pre_stop(Attributes) Hook run immediately before the container is stopped. (see below for nested schema)
Read-Only:
exec(Attributes) Exec action. (see below for nested schema)http_get(Attributes) HTTP GET action. (see below for nested schema)tcp_socket(Attributes) TCP socket action. (see below for nested schema)
Read-Only:
command(List of String) Command to run.
Read-Only:
host(String) Host header.path(String) URL path.port(String) Port number or named port.scheme(String) HTTP or HTTPS.
Read-Only:
host(String) Host to connect to.port(String) Port number or named port.
Read-Only:
exec(Attributes) Exec action. (see below for nested schema)http_get(Attributes) HTTP GET action. (see below for nested schema)tcp_socket(Attributes) TCP socket action. (see below for nested schema)
Read-Only:
command(List of String) Command to run.
Read-Only:
host(String) Host header.path(String) URL path.port(String) Port number or named port.scheme(String) HTTP or HTTPS.
Read-Only:
host(String) Host to connect to.port(String) Port number or named port.
Read-Only:
exec(Attributes) Exec probe action. (see below for nested schema)failure_threshold(Number) Consecutive failures before acting.grpc(Attributes) gRPC probe action. (see below for nested schema)http_get(Attributes) HTTP GET probe action. (see below for nested schema)initial_delay_seconds(Number) Seconds after container start before the first probe.period_seconds(Number) How often to run the probe (seconds).success_threshold(Number) Consecutive successes to be considered healthy.tcp_socket(Attributes) TCP socket probe action. (see below for nested schema)termination_grace_period_seconds(Number) Grace period on probe-triggered termination (seconds).timeout_seconds(Number) Probe timeout (seconds).
Read-Only:
command(List of String) Command to run inside the container.
Read-Only:
port(Number) gRPC port.service(String) gRPC service name for the health check.
Read-Only:
host(String) Host header (defaults to pod IP).http_headers(Attributes List) Custom request headers. (see below for nested schema)path(String) URL path to request.port(String) Port number or named port.scheme(String) HTTP or HTTPS.
Read-Only:
name(String) Header name.value(String) Header value.
Read-Only:
host(String) Host to connect to (defaults to pod IP).port(String) Port number or named port.
Read-Only:
container_port(Number) Port number the container listens on.name(String) Named port.protocol(String) Protocol: TCP, UDP, or SCTP.
Read-Only:
exec(Attributes) Exec probe action. (see below for nested schema)failure_threshold(Number) Consecutive failures before acting.grpc(Attributes) gRPC probe action. (see below for nested schema)http_get(Attributes) HTTP GET probe action. (see below for nested schema)initial_delay_seconds(Number) Seconds after container start before the first probe.period_seconds(Number) How often to run the probe (seconds).success_threshold(Number) Consecutive successes to be considered ready.tcp_socket(Attributes) TCP socket probe action. (see below for nested schema)termination_grace_period_seconds(Number) Grace period on probe-triggered termination (seconds).timeout_seconds(Number) Probe timeout (seconds).
Read-Only:
command(List of String) Command to run inside the container.
Read-Only:
port(Number) gRPC port.service(String) gRPC service name for the health check.
Read-Only:
host(String) Host header (defaults to pod IP).http_headers(Attributes List) Custom request headers. (see below for nested schema)path(String) URL path to request.port(String) Port number or named port.scheme(String) HTTP or HTTPS.
Read-Only:
name(String) Header name.value(String) Header value.
Read-Only:
host(String) Host to connect to (defaults to pod IP).port(String) Port number or named port.
Read-Only:
allow_privilege_escalation(Boolean) Allow a process to gain more privileges than its parent.capabilities(Attributes) Linux capabilities to add or drop. (see below for nested schema)privileged(Boolean) Run in privileged mode.proc_mount(String) proc mount type (Default or Unmasked).read_only_root_filesystem(Boolean) Mount the root filesystem read-only.run_as_group(Number) GID to run the entrypoint as.run_as_non_root(Boolean) Require the container to run as a non-root user.run_as_user(Number) UID to run the entrypoint as.se_linux_options(Attributes) SELinux context to apply. (see below for nested schema)seccomp_profile(Attributes) Seccomp profile settings. (see below for nested schema)
Read-Only:
add(List of String) Capabilities to add (e.g. NET_ADMIN).drop(List of String) Capabilities to drop (e.g. ALL).
Read-Only:
level(String) SELinux level label.role(String) SELinux role label.type(String) SELinux type label.user(String) SELinux user label.
Read-Only:
localhost_profile(String) Profile file path (used when type is Localhost).type(String) Profile type.
Read-Only:
exec(Attributes) Exec probe action. (see below for nested schema)failure_threshold(Number) Consecutive failures before acting.grpc(Attributes) gRPC probe action. (see below for nested schema)http_get(Attributes) HTTP GET probe action. (see below for nested schema)initial_delay_seconds(Number) Seconds after container start before the first probe.period_seconds(Number) How often to run the probe (seconds).success_threshold(Number) Consecutive successes to be considered started.tcp_socket(Attributes) TCP socket probe action. (see below for nested schema)termination_grace_period_seconds(Number) Grace period on probe-triggered termination (seconds).timeout_seconds(Number) Probe timeout (seconds).
Read-Only:
command(List of String) Command to run inside the container.
Read-Only:
port(Number) gRPC port.service(String) gRPC service name for the health check.
Read-Only:
host(String) Host header (defaults to pod IP).http_headers(Attributes List) Custom request headers. (see below for nested schema)path(String) URL path to request.port(String) Port number or named port.scheme(String) HTTP or HTTPS.
Read-Only:
name(String) Header name.value(String) Header value.
Read-Only:
host(String) Host to connect to (defaults to pod IP).port(String) Port number or named port.
Read-Only:
device_path(String) Path inside the container to map the device to.name(String) Name of the persistentVolumeClaim volume.
Read-Only:
mount_path(String) Path inside the container to mount at.mount_propagation(String) Mount propagation mode.name(String) Name of the pod volume to mount.read_only(Boolean) Mount read-only.sub_path(String) Mount a sub-path of the volume instead of its root.sub_path_expr(String) Like sub_path but expanded with environment variables.
Read-Only:
nameservers(List of String) DNS server IPs.options(Attributes List) Resolver options. (see below for nested schema)searches(List of String) DNS search domains.
Read-Only:
name(String) Option name.value(String) Option value.
Read-Only:
hostnames(List of String) Hostnames mapped to the IP.ip(String) IP address.
Read-Only:
annotations(Map of String) Annotations applied to the HorizontalPodAutoscaler object.api_version(String) HorizontalPodAutoscaler apiVersion.kind(String) HorizontalPodAutoscaler kind.max_replicas(Number) Upper bound on the number of replicas the autoscaler can scale up to. Must be greater than or equal to min_replicas.metrics(Attributes List) Metrics the autoscaler evaluates to compute the desired replica count. Each entry sets one metric source via the block matching its type. (see below for nested schema)min_replicas(Number) Lower bound on the number of replicas the autoscaler can scale down to. Defaults to 1 if omitted.
Read-Only:
container_resource(Attributes) Resource metric of a single named container in each pod. Use with type ContainerResource. (see below for nested schema)external(Attributes) Metric from a source not associated with any Kubernetes object. Use with type External. (see below for nested schema)pods(Attributes) Custom per-pod metric averaged across all target pods. Use with type Pods. (see below for nested schema)resource(Attributes) Resource metric (e.g. cpu or memory) of the target pods. Use with type Resource. (see below for nested schema)type(String) Metric source type. Set the block matching this value: resource, pods, external, or container_resource.
Read-Only:
container(String) Name of the container in the pod to measure.name(String) Resource name, e.g. cpu or memory.target(Attributes) Target the metric is scaled against. (see below for nested schema)
Read-Only:
average_utilization(Number) Target average resource utilization across pods, as a percentage (use with type Utilization).average_value(String) Target average value of the metric across pods, as a quantity (use with type AverageValue).type(String) Target type: Utilization, Value, or AverageValue.value(String) Target raw value of the metric, as a quantity (use with type Value).
Read-Only:
metric_name(String) Name of the external metric.target(Attributes) Target the metric is scaled against. (see below for nested schema)
Read-Only:
average_utilization(Number) Target average utilization, as a percentage (use with type Utilization).average_value(String) Target average value of the metric, as a quantity (use with type AverageValue).type(String) Target type: Utilization, Value, or AverageValue.value(String) Target raw value of the metric, as a quantity (use with type Value).
Read-Only:
metric_name(String) Name of the custom pods metric.target(Attributes) Target the metric is scaled against. (see below for nested schema)
Read-Only:
average_utilization(Number) Target average utilization across pods, as a percentage (use with type Utilization).average_value(String) Target average value of the metric across pods, as a quantity (use with type AverageValue).type(String) Target type: Utilization, Value, or AverageValue.value(String) Target raw value of the metric, as a quantity (use with type Value).
Read-Only:
name(String) Resource name, e.g. cpu or memory.target(Attributes) Target the metric is scaled against. (see below for nested schema)
Read-Only:
average_utilization(Number) Target average resource utilization across pods, as a percentage (use with type Utilization).average_value(String) Target average value of the metric across pods, as a quantity, e.g. "500Mi" (use with type AverageValue).type(String) Target type: Utilization, Value, or AverageValue.value(String) Target raw value of the metric, as a quantity (use with type Value).
Read-Only:
name(String) Name of a Kubernetes Secret (type kubernetes.io/dockerconfigjson) in the same namespace used to pull images from a private registry.
Read-Only:
annotations(Map of String) Ingress annotations (e.g. controller-specific config).api_version(String) Ingress apiVersion.ingress_class_name(String) IngressClass name (e.g. nginx, alb).kind(String) Ingress kind.name(String) Name of the Ingress object.rules(Attributes List) Host/path routing rules. (see below for nested schema)
Read-Only:
host(String) Host this rule matches.paths(Attributes List) HTTP paths routed to a backend Service. (see below for nested schema)
Read-Only:
path(String) URL path.path_type(String) Path match type.service_name(String) Backend Service name.service_port_number(Number) Backend Service port number.
Read-Only:
args(List of String) Arguments to the entrypoint.command(List of String) Entrypoint override.env(Attributes List) Environment variables. (see below for nested schema)env_from(Attributes List) Bulk environment from ConfigMaps/Secrets. (see below for nested schema)image(String) Container image.image_pull_policy(String) Image pull policy.name(String) Init container name.ports(Attributes List) Ports the init container exposes. (see below for nested schema)resources_limits(Map of String) Resource limits.resources_requests(Map of String) Resource requests.volume_mounts(Attributes List) Volume mounts. (see below for nested schema)working_dir(String) Working directory.
Read-Only:
name(String) Variable name.value(String) Literal value.value_from(Attributes) Source the value from a Secret/ConfigMap key or pod field. (see below for nested schema)
Read-Only:
config_map_key_ref(Attributes) Reference a ConfigMap key. (see below for nested schema)field_ref(Attributes) Reference a pod field. (see below for nested schema)secret_key_ref(Attributes) Reference a Secret key. (see below for nested schema)
Read-Only:
key(String) Key in the ConfigMap.name(String) ConfigMap name.optional(Boolean) Whether the ConfigMap or key must exist.
Read-Only:
api_version(String) API version for the field path.field_path(String) Field path, e.g. metadata.name.
Read-Only:
key(String) Key in the Secret.name(String) Secret name.optional(Boolean) Whether the Secret or key must exist.
Read-Only:
config_map_ref(Attributes) Load all keys from a ConfigMap. (see below for nested schema)prefix(String) Prefix for each variable name.secret_ref(Attributes) Load all keys from a Secret. (see below for nested schema)
Read-Only:
name(String) ConfigMap name.optional(Boolean) Whether the ConfigMap must exist.
Read-Only:
name(String) Secret name.optional(Boolean) Whether the Secret must exist.
Read-Only:
container_port(Number) Port number.name(String) Named port.protocol(String) Protocol.
Read-Only:
mount_path(String) Mount path in the container.name(String) Pod volume name.read_only(Boolean) Mount read-only.sub_path(String) Sub-path of the volume.
Read-Only:
fs_group(Number) Supplemental group applied to mounted volumes.fs_group_change_policy(String) When to change volume ownership to fs_group.run_as_group(Number) GID for all containers.run_as_non_root(Boolean) Require containers to run as non-root.run_as_user(Number) UID for all containers.se_linux_options(Attributes) SELinux context. (see below for nested schema)seccomp_profile(Attributes) Seccomp profile for all containers. (see below for nested schema)supplemental_groups(List of String) Additional GIDs for the first container process.sysctls(Attributes List) Namespaced sysctls to set. (see below for nested schema)
Read-Only:
level(String) SELinux level.role(String) SELinux role.type(String) SELinux type.user(String) SELinux user.
Read-Only:
localhost_profile(String) Profile path (used with Localhost).type(String) Profile type.
Read-Only:
name(String) Sysctl name.value(String) Sysctl value.
Read-Only:
allocate_load_balancer_node_ports(Boolean) Whether node ports are allocated for a LoadBalancer Service. Defaults to true.annotations(Map of String) Annotations applied to the Service object (e.g. cloud load-balancer controller settings).api_version(String) Service apiVersion.cluster_ip(String) ClusterIP address. Leave unset to have the cluster assign one; set to "None" for a headless Service.cluster_ips(List of String) ClusterIP addresses (dual-stack). Server-assigned when unset.external_ips(List of String) External IPs on which nodes accept traffic for this Service.external_name(String) External DNS name to alias (required when type is ExternalName).external_traffic_policy(String) How external traffic is routed: Cluster (spread across nodes) or Local (preserve client source IP). Applies to NodePort/LoadBalancer.health_check_node_port(Number) Node port for the LoadBalancer health check (only when type is LoadBalancer and external_traffic_policy is Local). Server-assigned when unset.internal_traffic_policy(String) How internal (in-cluster) traffic is routed: Cluster or Local. Defaults to Cluster.ip_families(List of String) IP families assigned to the Service (IPv4 and/or IPv6). Server-assigned when unset.ip_family_policy(String) Dual-stack policy: SingleStack, PreferDualStack, or RequireDualStack.kind(String) Service kind.labels(Map of String) Labels applied to the Service object. The platform also stamps its own labels, so the effective set is computed.load_balancer_class(String) Load-balancer implementation class (for type LoadBalancer).load_balancer_ip(String) Requested load-balancer IP (deprecated in Kubernetes; prefer a cloud-specific annotation).load_balancer_source_ranges(List of String) CIDR ranges allowed to reach the load balancer.name(String) Name of the Service object.ports(Attributes List) Service ports. (see below for nested schema)publish_not_ready_addresses(Boolean) Publish endpoints for pods that are not yet ready (used by headless Services for stateful workloads).session_affinity(String) Session affinity: ClientIP or None. Defaults to None.session_affinity_config(Attributes) Session affinity configuration (used when session_affinity is ClientIP). (see below for nested schema)traffic_distribution(String) Traffic distribution preference (e.g. PreferClose to keep traffic in-zone).type(String) Service type. LoadBalancer provisions an external endpoint. Defaults to ClusterIP (server-assigned).
Read-Only:
app_protocol(String) Application protocol hint for this port (e.g. http, https, grpc).name(String) Named port.node_port(Number) Static node port (NodePort/LoadBalancer). Server-assigned when unset.port(Number) Port the Service exposes.protocol(String) Protocol.target_port(Number) Container port traffic is forwarded to.
Read-Only:
client_ip(Attributes) ClientIP-based session affinity settings. (see below for nested schema)
Read-Only:
timeout_seconds(Number) Sticky session timeout in seconds (1–86400). Defaults to 10800.
Read-Only:
effect(String) Taint effect to match (empty matches all).key(String) Taint key to tolerate.operator(String) Exists or Equal.toleration_seconds(Number) How long to tolerate a NoExecute taint before eviction.value(String) Taint value (used with Equal).
Read-Only:
label_selector(Attributes) Pods to count for spreading. (see below for nested schema)max_skew(Number) Maximum permitted difference in pod count between domains.min_domains(Number) Minimum number of eligible domains.topology_key(String) Node label defining the topology domain (e.g. topology.kubernetes.io/zone).when_unsatisfiable(String) Action when the constraint cannot be met.
Read-Only:
match_expressions(Attributes List) Set-based label matchers. (see below for nested schema)match_labels(Map of String) Equality label matchers.
Read-Only:
key(String) Label key.operator(String) Set operator.values(List of String) Values (for In/NotIn).
Read-Only:
config_map(Attributes) Populate the volume from a ConfigMap. (see below for nested schema)csi(Attributes) Mount a volume via a CSI driver. (see below for nested schema)empty_dir(Attributes) Ephemeral scratch volume tied to the pod lifetime. (see below for nested schema)host_path(Attributes) Mount a file or directory from the host node. (see below for nested schema)name(String) Volume name (referenced by volume_mounts).nfs(Attributes) Mount an NFS share. (see below for nested schema)persistent_volume_claim(Attributes) Mount an existing PersistentVolumeClaim. (see below for nested schema)secret(Attributes) Populate the volume from a Secret. (see below for nested schema)
Read-Only:
default_mode(Number) Default file permission mode (e.g. 420).items(Attributes List) Specific keys to project to paths. (see below for nested schema)name(String) ConfigMap name.optional(Boolean) Whether the ConfigMap must exist.
Read-Only:
key(String) ConfigMap key.mode(Number) File permission mode.path(String) Relative file path.
Read-Only:
driver(String) CSI driver name.fs_type(String) Filesystem type.read_only(Boolean) Mount read-only.volume_attributes(Map of String) Driver-specific attributes.
Read-Only:
medium(String) Storage medium: "" (node disk) or Memory.size_limit(String) Total size limit, e.g. 1Gi.
Read-Only:
path(String) Path on the host.type(String) Host path type (e.g. Directory, DirectoryOrCreate, File).
Read-Only:
path(String) Exported path on the server.read_only(Boolean) Mount read-only.server(String) NFS server hostname or IP.
Read-Only:
claim_name(String) Name of the PersistentVolumeClaim.read_only(Boolean) Mount read-only.
Read-Only:
default_mode(Number) Default file permission mode.items(Attributes List) Specific keys to project to paths. (see below for nested schema)optional(Boolean) Whether the Secret must exist.secret_name(String) Secret name.
Read-Only:
key(String) Secret key.mode(Number) File permission mode.path(String) Relative file path.