X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2FuCPE%2Fk8smaster_centos.sh;fp=blueprints%2FuCPE%2Fk8smaster_centos.sh;h=0000000000000000000000000000000000000000;hb=692eda26d4bb9aea2760f0c3d48d7a91c392afd9;hp=c78bc0d9fa03aca7e926e7456242dbf79e5ee434;hpb=c19ae19ceb20a1c47d53e5d2a482f6f4fd5cfa38;p=eliot.git diff --git a/blueprints/uCPE/k8smaster_centos.sh b/blueprints/uCPE/k8smaster_centos.sh deleted file mode 100755 index c78bc0d..0000000 --- a/blueprints/uCPE/k8smaster_centos.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -ex -############################################################################## -# Copyright (c) 2019 Huawei Tech and others. # -# # -# All rights reserved. This program and the accompanying materials # -# are made available under the terms of the Apache License, Version 2.0 # -# which accompanies this distribution, and is available at # -# http://www.apache.org/licenses/LICENSE-2.0 # -############################################################################## - -# constants - -POD_NETWORK_CIDR=192.168.0.0/16 -KUBE_VERSION=1.15.0-0 -KUBERNETES_CNI=0.7.5-0 - -# start - -hostname -I > hostname.tmp -MASTER_IP="$(cut -d ' ' -f 1 hostname.tmp)" -rm hostname.tmp - -# kubernetes installation - -sudo yum install -y kubelet-${KUBE_VERSION} kubectl-${KUBE_VERSION} \ -kubernetes-cni-${KUBERNETES_CNI} - -sudo systemctl daemon-reload -sudo systemctl restart kubelet - -# Initialize kubernetes on master - -sudo kubeadm init \ - --apiserver-advertise-address="${MASTER_IP}" \ - --pod-network-cidr="${POD_NETWORK_CIDR}" - -mkdir -p "${HOME}/.kube" -sudo cp -i /etc/kubernetes/admin.conf "${HOME}/.kube/config" -sudo chown "$(id -u)":"$(id -g)" "${HOME}/.kube/config"