mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 13:12:20 +00:00
Enable local-up-cluster.sh to start with the secured port
Generate a kubeconfig for use with controller-manager, kubelet, scheduler etc. This kubeconfig should use the secure https port of the api server with appropriate ca cert for the components to talk to api server. With this change, one can set API_PORT=0 to completely switch off insecure access for testing admission controllers etc. Fixes #33375
This commit is contained in:
@@ -32,7 +32,7 @@ kube::util::wait_for_url() {
|
||||
local i
|
||||
for i in $(seq 1 $times); do
|
||||
local out
|
||||
if out=$(curl -gfs $url 2>/dev/null); then
|
||||
if out=$(curl -gkfs $url 2>/dev/null); then
|
||||
kube::log::status "On try ${i}, ${prefix}: ${out}"
|
||||
return 0
|
||||
fi
|
||||
|
Reference in New Issue
Block a user