diff --git a/install_k8s.sh b/install_k8s.sh new file mode 100644 index 0000000..736eb48 --- /dev/null +++ b/install_k8s.sh @@ -0,0 +1,71 @@ +#!/bin/bash + +echo "Installing docker..." +sudo apt-get update +sudo apt-get install -y software-properties-common + +echo "add apt proxy" +sudo bash -c "cat>/etc/apt/apt.conf" << EOF +Acquire::https::proxy "http://172.18.218.123:10809/"; +Acquire::http::proxy "http://172.18.218.123:10809/"; +EOF + +sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 0EBFCD88 +sudo add-apt-repository \ + "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ + $(lsb_release -cs) \ + stable" +sudo apt-get update +sudo apt-get install -y "docker-ce=17.06*" + +echo "Installing kubeadm..." +sudo apt-get update +sudo apt-get install -y ebtables ethtool apt-transport-https curl + +export http_proxy=http://172.18.218.123:10809/ +export https_proxy=http://172.18.218.123:10809/ + +curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - +sudo bash -c "cat >/tmp/kubernetes.list"</etc/systemd/system/docker.service.d/http-proxy.conf" < install-helm.sh +bash install-helm.sh -v v2.12.1 +kubectl create serviceaccount --namespace kube-system tiller +kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller +helm init --service-account tiller diff --git a/install_xos.sh b/install_xos.sh new file mode 100644 index 0000000..d23500f --- /dev/null +++ b/install_xos.sh @@ -0,0 +1,12 @@ +mkdir -p cord +cd cord +git clone https://gerrit.opencord.org/helm-charts + +cd ~/cord/helm-charts + +helm repo add incubator https://charts.opencord.org +helm dep update xos-core +helm install -n xos-core xos-core + +helm dep update xos-profiles/base-kubernetes +helm install -n base-kubernetes xos-profiles/base-kubernetes \ No newline at end of file