# Sidecar — inbound request limits and no imported outbound services
# Documentation copy of the prepared POC manifest; comments do not change its values.
apiVersion: networking.istio.io/v1beta1
kind: Sidecar # Configures existing proxies; does not create or inject a container.
metadata:
  name: poc-sidecar
  namespace: "poc-iut-ns" # Scope: workloads in this namespace, not every namespace.
spec:
  workloadSelector:
    labels:
      app: poc-cmc # Select these Pods within poc-iut-ns.
  inboundConnectionPool:
    http:
      http2MaxRequests: 200 # Active HTTP requests in the normal inbound cluster (H1/H2).
  egress:
  - hosts:
    - "~/*" # Intentional: import no outbound services, including this namespace's.
    # This trims proxy configuration; outbound traffic capture is controlled separately.
  ingress:
  - port:
      number: 8080 # Application-facing inbound port governed by this configuration.
      protocol: HTTP # Enables HTTP processing on this inbound port.
      name: http-8080
    defaultEndpoint: 127.0.0.1:8080 # Forward to the application in the same Pod.
