From 98b33e325fce072bb38c033e2e6ded8242b37394 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 12 Dec 2024 12:56:04 +0900 Subject: [PATCH] Test kubectl exec issue 357 Reproduce issue 357 Signed-off-by: Akihiro Suda --- hack/test-smoke.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/test-smoke.sh b/hack/test-smoke.sh index 2a8680cb..1f79496c 100755 --- a/hack/test-smoke.sh +++ b/hack/test-smoke.sh @@ -54,6 +54,9 @@ EOF INFO "Waiting for 3 replicas to be ready" kubectl rollout status --timeout=5m statefulset + INFO "Ensure that kubectl exec works" + for f in {0..2}; do kubectl exec "dnstest-${f}" -- hostname; done + INFO "Connecting to dnstest-{0,1,2}.dnstest.default.svc.cluster.local" kubectl run -i --rm --image=alpine --restart=Never dnstest-shell -- sh -exc 'for f in $(seq 0 2); do wget -O- http://dnstest-${f}.dnstest.default.svc.cluster.local; done'