diff --git a/kainstall-centos.sh b/kainstall-centos.sh index 9562a40..b7b60a0 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: @@ -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