#!/usr/bin/env bash # T15 — portLevelSettings full-replace-vs-partial-inherit test # # NOTE on FQDN: harness-notes.md states the cluster DNS domain is homelab.local # (kubeadm dnsDomain / CoreDNS zone), and that IS correct for actual DNS # resolution. However istiod's internal Envoy cluster registry names # Kubernetes Services with a hardcoded "cluster.local" suffix regardless of the # real kubeadm cluster domain (confirmed empirically — see result.txt). A # DestinationRule authored with `host: ...svc.homelab.local` therefore never # attaches to any real cluster in THIS install. This script uses the FQDN that # actually matches istiod's Envoy cluster names (svc.cluster.local) so the # DestinationRule/VirtualService take effect and the portLevelSettings # override behavior can be observed. set -euo pipefail NS="istio-vt-t15" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cleanup() { kubectl delete namespace "$NS" --wait=false --ignore-not-found } trap cleanup EXIT kubectl create namespace "$NS" kubectl label namespace "$NS" istio-injection=enabled cat < maxConn 55" echo "Expected: outbound|443|v1|... -> maxConn 4294967295 (default/absent — connectionPool wiped by portLevelSettings override)"