From 0fc92687823a9f370d41611005f05771d5da6144 Mon Sep 17 00:00:00 2001 From: justvideoconverter Date: Sun, 8 Jan 2023 18:39:08 -0800 Subject: [PATCH 1/2] Revised apiVersion from v1beta3 to v1 beta2 --- kainstall-centos.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kainstall-centos.sh b/kainstall-centos.sh index 9562a40..901ddae 100755 --- a/kainstall-centos.sh +++ b/kainstall-centos.sh @@ -1744,7 +1744,7 @@ function kubeadm::init() { PAUSE_VERSION=$(kubeadm config images list 2>/dev/null | awk -F: '/pause/ {print $2}') cat << EOF > /etc/kubernetes/kubeadmcfg.yaml --- -apiVersion: kubeadm.k8s.io/v1beta3 +apiVersion: kubeadm.k8s.io/v1beta2 kind: InitConfiguration ${kubelet_nodeRegistration} --- @@ -1801,7 +1801,7 @@ enforceNodeAllocatable: - pods --- -apiVersion: kubeadm.k8s.io/v1beta3 +apiVersion: kubeadm.k8s.io/v1beta2 kind: ClusterConfiguration kubernetesVersion: $KUBE_VERSION controlPlaneEndpoint: $KUBE_APISERVER:6443 @@ -1931,7 +1931,7 @@ function kubeadm::join() { command::exec "${host}" " cat << EOF > /etc/kubernetes/kubeadmcfg.yaml --- -apiVersion: kubeadm.k8s.io/v1beta3 +apiVersion: kubeadm.k8s.io/v1beta2 kind: JoinConfiguration discovery: bootstrapToken: @@ -1967,7 +1967,7 @@ EOF mkdir -p /etc/kubernetes/manifests cat << EOF > /etc/kubernetes/kubeadmcfg.yaml --- -apiVersion: kubeadm.k8s.io/v1beta3 +apiVersion: kubeadm.k8s.io/v1beta2 kind: JoinConfiguration discovery: bootstrapToken: From 8bcfb16dbfea4fd08cefbabd010a5c09f4881bc9 Mon Sep 17 00:00:00 2001 From: justvideoconverter Date: Sun, 8 Jan 2023 21:44:06 -0800 Subject: [PATCH 2/2] Revised from batch/v1 to batch/v1beta1 Revised from batch/v1 to batch/v1beta1 --- kainstall-centos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kainstall-centos.sh b/kainstall-centos.sh index 901ddae..b7b60a0 100755 --- a/kainstall-centos.sh +++ b/kainstall-centos.sh @@ -3280,7 +3280,7 @@ function add::ops() { [[ "${master_num:-0}" == "0" ]] && master_num=1 kube::apply "etcd-snapshot" """ --- -apiVersion: batch/v1 +apiVersion: batch/v1beta1 kind: CronJob metadata: name: etcd-snapshot