-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix create_stack for version 1.25 #347
Conversation
Ha I should have checked the PRs before attempting my own fix here. I ran into the same issue, here is my solution that does the same thing:
I think yours is a little better. However, I think the version change happened in 1.24 no? I get that impression from reading: |
That might be correct. IIUC it was introduced in 1.24 and ‘master’ was removed in 1.25.
Unsure whether that actual matters for this distro since it apparently jumped to 1.25??? Did CL ever release 1.24?
Unfortunately I’m unable to check atm
Best,
-PWM
… On Nov 12, 2022, at 2:31 PM, James Flowers ***@***.***> wrote:
Ha I should have checked the PRs before attempting my own fix here. I ran into the same issue, here is my solution that does the same thing:
diff --git a/clr-k8s-examples/create_stack.sh b/clr-k8s-examples/create_stack.sh
index e0a999a..60f12e2 100755
--- a/clr-k8s-examples/create_stack.sh
+++ b/clr-k8s-examples/create_stack.sh
@@ -117,7 +117,13 @@ function cluster_init() {
#Ensure single node k8s works
if [ "$(kubectl get nodes | wc -l)" -eq 2 ]; then
- kubectl taint nodes --all node-role.kubernetes.io/master-
+ if [[ -t 0 ]]; then
+ if [[ -n "${K8S_VER}" && $(echo "${K8S_VER}" | awk -F. '{print $2}') -lt 24 ]]; then
+ kubectl taint nodes --all node-role.kubernetes.io/master-
+ else
+ kubectl taint nodes --all node-role.kubernetes.io/control-plane-
+ fi
+ fi
mode="standalone"
fi
}
I think yours is a little better. However, I think the version change happened in 1.24 no?
I get that impression from reading:
kubernetes/kubeadm#2200
https://groups.google.com/g/kubernetes-sig-cluster-lifecycle/c/XJhn8bpvHac/m/ZP1sN_20BwAJ?pli=1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems there was a 1.24 release: https://github.com/clearlinux-pkgs/kubernetes/releases/tag/1.24.4-136. If you update to use 24 instead of 25, I'll approve.
kubernetes 1.25 changed the key for the NoSchedule taint to 'control-plane'. Fix the script to handle both pre and post version 1.25 Signed-off-by: Peter W. Morreale <[email protected]>
fa4db65
to
9e97f1c
Compare
AFAICT, 1.24 includes both taints for new clusters, 1.25 only contains the 'control-plane' taint, and everything prior to 1.24 contains the 'master' taint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
kubernetes 1.25 changed the key for the NoSchedule taint to 'control-plane'.
Fix the script to handle both pre and post version 1.25
Signed-off-by: Peter W. Morreale [email protected]