반응형

전체 글 154

python 3.11.9 설치

Bash Script로 작성하였습니다. OS: rocky9.4#!/bin/bash# 스크립트를 root 권한으로 실행했는지 확인if [ "$EUID" -ne 0 ]; then echo "이 스크립트는 root 권한으로 실행해야 합니다." exit 1fi# 필요한 의존성 패키지 설치dnf update -ydnf groupinstall -y "Development Tools"dnf install -y openssl-devel bzip2-devel libffi-devel zlib-devel wget# Python 3.11.9 다운로드 및 설치wget https://www.python.org/ftp/python/3.11.9/Python-3.11.9.tgztar -xvzf Python-3.11.9.tgzcd ..

Language/Python 2024.09.02

Go 1.23.0 설치 및 전체 사용자 설정

OS: Rocky9.4User: root   먼저 필요한 패키지를 설치합니다:sudo dnf install wget tarGo 1.23.0 아카이브를 다운로드합니다:wget https://go.dev/dl/go1.23.0.linux-amd64.tar.gz이전 Go 설치가 있다면 제거합니다:sudo rm -rf /usr/local/go다운로드한 아카이브를 /usr/local에 압축 해제합니다:sudo tar -C /usr/local -xzf go1.23.0.linux-amd64.tar.gzPATH 환경 변수에 Go 바이너리 경로를 추가합니다. ~/.bashrc 파일을 편집하여 다음 줄을 추가합니다:echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc변경사항을 ..

Language/Go 2024.09.02

k8s containerd, kubeadm, calico 설치

2022.03.23 - [Kubernetes] - [k8s] docker, kubeadm, Calico 설치 해당 글이 더이상 현재와 맞지도않고..집에서 공부환경을 다시 구성하면서 새롭게 가이드를 작성하였습니다.시스템환경Master 1대Worker 3대ApplicaitonRocky9.4kubeadm v1.30Calico v3.28기본세팅(공통)root로 진행하도록 하겠습니다.Swap Memory 끄기swapoff -afree -h# /etc/fstab 영구 등록sed -i '/swap/s/^/#/' /etc/fstabSelinux 비활성화편의를 위해 비활성화 하겠습니다.sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config각 서버별 이름 ..

Kubernetes 2024.09.02

Ubuntu(WSL) Zsh 설치 및 테마, 편한 플러그인 설정

* WSL 설치방법 참고 https://learn.microsoft.com/ko-kr/windows/wsl/install Powershell 관리자 모드로 실행 후 wsl --install 실행 후 컴퓨터 재부팅 1. Zsh 설치 # install zsh sudo apt install zsh # Change to Basic shell chsh -s $(which zsh) 완료 후 다시 쉘 실행시 아래 안내문이 나오게 된다. This is the Z Shell configuration function for new users, zsh-newuser-install. You are seeing this message because you have no zsh startup files (the files .zs..

Linux 2024.03.29

NFS Server 설정, NFS Client 설정 스크립트

NFS 서버 구성하기 #!/bin/bash apt update apt install -y nfs-kernel-server shared_directory="/app" export_options="rw,sync,no_root_squash" allowed_subnet="192.168.252.0/24" echo "$shared_directory $allowed_subnet($export_options)" | sudo tee -a /etc/exports # 설정 적용 및 서비스 재시작 exportfs -a systemctl restart nfs-kernel-server systemctl enable nfs-kernel-server echo "NFS 서버가 성공적으로 구성되었습니다." NFS Client 설정하기 ..

Linux 2024.01.26

Rancher를 이용하여 k8s 환경구성

구성 Master Node 1대 Worker Node 1대 구성 소프트웨어 RKE2, Rancher 1. Master Node 구성하기 스왑메모리 중지합니다. swapoff -a 0으로 변경되었는지 확인합니다. free -h RKE2 설치 주의: Type이 Server 인지 확인합니다. curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="server" sh - RKE2 실행 start 명령어 시 시간 걸립니다. systemctl enable rke2-server.service systemctl start rke2-server.service systemctl status rke2-server.service kubectl 명령어가 실행될 수 있도록 기본 디렉토리로 연결..

Kubernetes 2024.01.16

k8s EKS velero S3 연동하여 설치하기

Client 환경: Ubuntu 22.02 k8s 환경: EKS 필요도구: awscli 1. Velero Client(Velero CLI) 설치하기 wget https://github.com/vmware-tanzu/velero/releases/download/v1.12.1/velero-v1.12.1-linux-amd64.tar.gz tar -xvf velero-v1.12.1-linux-amd64.tar.gz sudo mv velero-v1.12.1-linux-amd64/velero /usr/local/bin # 자동완성은 아래 링크 확인하여 본인 환경으로 세팅 https://velero.io/docs/v1.12/customize-installation/#optional-velero-cli-configur..

Kubernetes 2023.11.03

Prometheus-stack으로 Grafana까지 쉽게 설치하기

1. Helm 설치 curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh 2. Prometheus-stack (Grafana) 설치 helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update helm install prometheus-stack prometheus-community/kube-prometheus-stack 2-1. 구성요소 1. Prometheus: Prometheus는 오픈 소스 모니터링 ..

Kubernetes 2023.10.24
반응형