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 8, 2024 05:47
Learn how to use kubevirt with an example

01_install_kubernetes

  • (주의) hostname이 k8s-master로 변경됩니다.
curl 
https://gist.github.com/taking/024d5fdb7393b9ea1f1eb84c07cd992d/raw/85ef71854210439b131fcec097b050248f819751/k8s-v1.31-crio-auto-installation.sh | bash k8s-master master

02_install_helm

curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
#!/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
# 디렉토리인 경우 재귀 호출