Compare commits

...

3 Commits

Author SHA1 Message Date
Robert Dower 2b6c3ec3cf Update README.md 2025-08-07 13:34:33 -07:00
Peter W. Morreale 9e3697308e Fix create_stack for version 1.25
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 <pwmorreale@gmail.com>
2022-11-15 14:39:32 -07:00
Ganesh Maharaj Mahalingam af1171a6af Add storage back to all function (#346)
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2022-08-31 09:37:52 -07:00
2 changed files with 19 additions and 2 deletions
+8
View File
@@ -1,3 +1,11 @@
## DISCONTINUATION OF PROJECT.
This project will no longer be maintained by Intel.
Intel will not provide or guarantee development of or support for this project, including but not limited to, maintenance, bug fixes, new releases or updates. Patches to this project are no longer accepted by Intel. If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the community, please create your own fork of the project.
Contact: webadmin@linux.intel.com
## Cloud Native Setup ## Cloud Native Setup
Automation around setting up the cloud-native content (Kubernetes) on Clear Linux. Automation around setting up the cloud-native content (Kubernetes) on Clear Linux.
+11 -2
View File
@@ -115,9 +115,17 @@ function cluster_init() {
fi fi
fi fi
#Ensure single node k8s works #Ensure single node k8s works both pre and post v1.25
if [ "$(kubectl get nodes | wc -l)" -eq 2 ]; then if [ "$(kubectl get nodes | wc -l)" -eq 2 ]; then
kubectl taint nodes --all node-role.kubernetes.io/master- minor=$(kubeadm version -o short | cut -f 2 -d "." )
if [ $minor -ge "25" ]; then
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
elif [ $minor -eq "24" ]; then
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
kubectl taint nodes --all node-role.kubernetes.io/master-
else
kubectl taint nodes --all node-role.kubernetes.io/master-
fi
mode="standalone" mode="standalone"
fi fi
} }
@@ -357,6 +365,7 @@ function minimal() {
function all() { function all() {
minimal minimal
storage
monitoring monitoring
miscellaneous miscellaneous
} }