Skip to content

Instantly share code, notes, and snippets.

View taking's full-sized avatar
🐈
Focusing

taking taking

🐈
Focusing
View GitHub Profile
@taking
taking / kubevirt.md
Last active October 14, 2024 05:20
Learn how to use kubevirt with an example

01_Test_environment

kubernetes v1.31
cni : flannel v0.25.6
cri : cri-o v1.31

01_install_kubernetes

  • (주의) hostname이 k8s-master로 변경됩니다.
#!/bin/bash
# 작성자: Taking
# Ubuntu 22.04
# Kubernetes v1.31 설치 + 초기화
# Cri-o v1.31
# Flannel CNI
# 클러스터 이름 변경 (호스트명 기준)
# how-to
# > curl {gist_url}/k8s-v1.31-crio-auto-installation.sh | bash k8s-master master
#!/bin/bash
# Install oh-my-zsh from container image
curl -fsSL https://raw.githubusercontent.com/taking/taking/main/mySettings/scripts/ohmyzsh_install.sh | bash
# Function to install Python (placeholder)
install_python() {
echo "Python installation is not defined in this script."
}

Karmada Installation with Helm

  • Karmada on Kubernetes

Prerequisites

  • Kubernetes 1.20+
  • Helm 3.2.0+

Reference

{
"editor.fontFamily": "Hack, D2Coding, Consolas, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 17,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.wrappingIndent": "indent",
"editor.fontLigatures": true,
"editor.rulers": [100, 120],
"editor.cursorBlinking": "phase",
"editor.guides.indentation": true,

minio Installation with Docker Compose

  • minio on Docker

Prerequisites

  • Docker

.env

DOCKER_ROOT=/volume/HDD_02/minio
#!/bin/bash
# Author by Taking
# ubuntu 22.04
# Kubernetes v1.25 Install + Reset
# Cri-o v1.25
# Flannel CNI
# Cluster Name Change (Host명 기준)
# MetalLB Install
RED=`tput setaf 1`
#!/bin/bash
# 이동할 디렉토리 설정
source_dir="/volume/500GB_HDD/Downloads"
# 파일 확인 및 이동 함수
move_files() {
for file in "$1"/*; do
if [ -d "$file" ]; then
# 디렉토리인 경우 재귀 호출