Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-4.4] Bug 1851831: static pod: don't wait for 6080 in apiserver container #892

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions bindata/v4.1.0/kube-apiserver/pod.yaml
Expand Up @@ -42,14 +42,14 @@ spec:
echo "Copying system trust bundle"
cp -f /etc/kubernetes/static-pod-certs/configmaps/trusted-ca-bundle/ca-bundle.crt /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
fi
echo -n "Waiting for port :6443 and :6080 to be released."
echo -n "Waiting for port :6443 to be released."
tries=0
while [ -n "$(ss -Htan '( sport = 6443 or sport = 6080 )')" ]; do
while [ -n "$(ss -Htan '( sport = 6443 )')" ]; do
echo -n "."
sleep 1
(( tries += 1 ))
if [[ "${tries}" -gt 105 ]]; then
echo "timed out waiting for port :6443 and :6080 to be released"
echo "timed out waiting for port :6443 to be released"
exit 1
fi
done
Expand Down
6 changes: 3 additions & 3 deletions pkg/operator/v410_00_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.