From: smahana123 Date: Thu, 17 Nov 2022 10:05:19 +0000 (+0530) Subject: Installation script for Kubernetes. X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=3d1d4ab89ae4af55f964863341df45e6c30dfb81;p=aiml-fw%2Faimlfw-dep.git Installation script for Kubernetes. Issue-Id: AIMLFW-4 Signed-off-by: smahana123 Change-Id: I5910f1abdfa430b1c339ffb8fc369e4471264741 --- diff --git a/tools/kubernetes/install_k8s.sh b/tools/kubernetes/install_k8s.sh new file mode 100755 index 0000000..2f0dbc3 --- /dev/null +++ b/tools/kubernetes/install_k8s.sh @@ -0,0 +1,53 @@ +# ================================================================================== +# +# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ================================================================================== + +sudo apt-get install -y apt-transport-https +sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg +echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list +sudo apt-get update -y +sudo apt-get install -y docker-ce docker-ce-cli containerd.io +sudo mkdir -p /etc/docker +sudo cat > /tmp/daemon.json <