Skip to content

Instantly share code, notes, and snippets.

View TyeolRik's full-sized avatar

TyeolRik TyeolRik

View GitHub Profile
@TyeolRik
TyeolRik / CEPH_Install_For_Admin_at_closed_networks.sh
Last active July 12, 2022 03:49
CEPH Installation in Closed Network Nodes with maintaining firewalld and selinux. OS: CentOS 8 Stream, CEPH Version: Pacific (v16.2.9)
#!/bin/bash
###########################
# Information
# Host 1 (node1): 172.22.4.101 - admin
# host 2 (node2): 172.22.4.102
# host 3 (node3): 172.22.4.103
# host 4 (node4): 172.22.4.104
# host 5 (node5): 172.22.4.105
###########################
@TyeolRik
TyeolRik / CEPH_Install.sh
Last active September 27, 2023 05:48
CEPH Installation with maintaining firewalld and selinux. OS: CentOS 8 Stream, CEPH Version: Pacific (v16.2.9)
#!/bin/bash
###########################
# Information
# Host 1 (node1): 172.22.4.101 - admin
# host 2 (node2): 172.22.4.102
# host 3 (node3): 172.22.4.103
# host 4 (node4): 172.22.4.104
# host 5 (node5): 172.22.4.105
###########################
@TyeolRik
TyeolRik / remove_CEPH1_DownOSDs_and_Hosts.sh
Last active January 2, 2024 06:27
How to remove CEPH. OS: CentOS 8 Stream, CEPH Version: Pacific (v16.2.9)
#!/bin/bash
################# README #################
# Please run this scripts on admin node! #
# Please set whether all SSH keys are removed from all HOSTs
ssh_remove=false
##########################################
# https://www.flamingbytes.com/posts/uninstall-ceph/
#################################################
# Variable targetDisk should be configured. #
@TyeolRik
TyeolRik / enable_GUI_within_SSH.sh
Last active June 21, 2022 16:37
Host: CentOS 8 Stream / Client: Windows 10 Powershell (exactly Windows Terminal)
#!/bin/bash
# Host: CentOS 8 (192.168.8.119)
# Client: Windows 10 Powershell (192.168.8.120)
# ssh -Y [email protected]
# Before Begin in Client(Windows)
# 1. Install VcXsrv (https://sourceforge.net/projects/vcxsrv/)
# 2. Execute Xlaunch.exe
# Check {Multiple Windows and Display number = -1, Start no client, {Clipboard, Primary Selection, Native opengl, Additional parameter: "-ac"} -> Save Configuration}
#!/bin/bash
dnf update -y &&\
dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel
echo "Installing Docker"
yum install -y yum-utils telnet &&\
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\
yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-compose-plugin &&\
systemctl enable docker.service &&\
systemctl start docker.service
#!/bin/bash
NC='\033[0m' # No Color
YELLOW='\033[1;33m'
cephfs_ip="10.0.2.15" # ceph mon dump
clusterID="e952c52a-f18f-11ec-bb41-08002716126b" # ceph mon dump
cephfs_user_key="AQAfDrJibQtyARAAp3DxKWUP2LBCPbJUe9BUDg==" # ceph auth get-or-create client.cephfs mon 'allow r' osd 'allow rwx pool=kubernetes'
cephfs_admin_key="AQDzDbJiuBawARAA2NBP5/wgoaadOYGWIrUFFA==" # ceph auth get client.admin
sudo dnf update -y &&\
#!/bin/bash
NC='\033[0m' # No Color
YELLOW='\033[1;33m'
sudo dnf update -y &&\
sudo dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel
printf "${YELLOW}Installing Docker${NC}\n"
sudo yum install -y yum-utils telnet &&\
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\
#!/bin/bash
dnf update -y &&\
dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel
echo "Installing Docker"
yum install -y yum-utils telnet &&\
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\
yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-compose-plugin &&\
systemctl enable docker.service &&\
dnf update -y &&\
dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel
echo "Installing Docker"
yum install -y yum-utils telnet &&\
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\
yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-compose-plugin &&\
systemctl enable docker.service &&\
systemctl start docker.service
echo "Docker install complete"
@TyeolRik
TyeolRik / k8s_worker.sh
Last active June 15, 2022 08:23
template
#!/bin/bash
dnf update -y &&\
dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel
echo "Installing Docker"
yum install -y yum-utils telnet &&\
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\
yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-compose-plugin &&\
systemctl start docker