Skip to content

Commit

Permalink
Fix upgrade install fails after partial install
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Sep 16, 2022
1 parent d8de811 commit 565bcc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addons/ekco/template/base/reboot/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ fi
export KUBECONFIG=/etc/kubernetes/kubelet.conf

# wait for Kubernetes API
master=$(cat /etc/kubernetes/kubelet.conf | grep ' server:' | awk '{ print $2 }')
master=$(grep ' server: ' /etc/kubernetes/kubelet.conf | awk '{ print $2 }' | sed 's/"//g')
while [ "$(curl --noproxy "*" -sk $master/healthz)" != "ok" ]; do
sleep 1
done

kubectl uncordon $(hostname | tr '[:upper:]' '[:lower:]')
kubectl uncordon "$(hostname | tr '[:upper:]' '[:lower:]')"
4 changes: 2 additions & 2 deletions scripts/common/kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ function kubernetes_has_remotes() {
return 1
}

# Fetch the load balancer endpoint from the cluster.
# Fetch the load balancer endpoint from the kubelet.conf.
function existing_kubernetes_api_address() {
kubectl get cm -n kube-system kurl-config -o jsonpath='{ .data.kubernetes_api_address }'
grep ' server: ' /etc/kubernetes/kubelet.conf | awk '{ print $2 }' | sed 's/"//g'
}

# During the upgrade user might change the load balancer endpoint or want to use EKCO internal load balancer. So, we
Expand Down

0 comments on commit 565bcc4

Please sign in to comment.