Giter Site home page Giter Site logo

shekar3116 / k8-install-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmcomp07/k8-install-script

0.0 0.0 0.0 133 KB

scripts for the installation of Kubernetes Master Node, Worker Node, Kubernetes Kind and Minikube on CentOS operating system. These scripts simplify the process of setting up a Kubernetes cluster and make it easy for developers to get started with Kubernetes.

Shell 100.00%

k8-install-script's Introduction

Kubernetes Installation Scripts

scripts for the installation of Kubernetes Master Node, Worker Node, Kubernetes Kind and Minikube on CentOS/ Ubuntu operating system. These scripts simplify the process of setting up a Kubernetes cluster and make it easy for developers to get started with Kubernetes.

How to use these scripts for Installation ?

  1. Download or just Copy-paste scripts from repository and use

  2. Use another script written below: just Copy- paste to CentOS / Ubuntu & follow Instructions. It'll list all available scripts, select the script you want to install and that's it.

    sit tight and wait for Successful Installation.

#This script collects all scripts on Github repository and provide option to Install on CentOS/ Ubuntu

sudo su
cat <<EOF > k10.sh

#!/bin/bash

# Define the Github repository
repo="https://github.com/dmcomp07/k8-install-script"


# check the OS
if [ -f /etc/redhat-release ]; then
    # code for CentOS
    echo "Running on CentOS"

# Check if git is installed, if not install it
if ! [ -x "\$(command -v git)" ]; then
  yum install git -y
fi

#install dependencies
yum install -y epel-release	
	
elif [ -f /etc/lsb-release ]; then
    # code for Ubuntu
    echo "Running on Ubuntu"

# Check if git is installed, if not install it
if ! [ -x "\$(command -v git)" ]; then
  apt-get install git -y
fi
	
else
    # code for other OS
    echo "Not a supported OS"
    exit
fi	

# Clone the Github repository
git clone \$repo

# Go to the repository directory
cd k8-install-script


# List all the script files in the repository
echo "Please choose which script you want to install:"
ls -1 | grep -E '*.sh'
read -p "Enter the script name: " script_name
chmod +x \$script_name
./\$script_name

EOF
chmod +x k10.sh
./k10.sh

k8-install-script's People

Contributors

dmcomp07 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.