본문 바로가기

반응형

분류 전체보기

C276x260 우분투에서 스냅을 비활성화하고 삭제하는 방법 우분투에서 스냅(Snap)을 비활성화하고 삭제하는 방법(Remove and Disable Snaps)참고 : Snap은 Ubuntu의 일부 패키지 관리 시스템으로 시스템 리소스를 사용할 수 있으며 필요하지 않은 경우 비활성화 또는 삭제할 수 있습니다. 그러나 Snap를 완전히 비활성화하면 몇 가지 Ubuntu 기능이 영향을 받을 수 있으므로 사용 전에 신중히 고려해야 합니다.테스트 환경$ lsb_release -dDescription: Ubuntu 22.04.2 LTSSnapd 비활성화스냅(snap) 서비스 비활성화sudo systemctl disable snapd.service$ systemctl disable snapd.serviceRemoved /etc/systemd/system/multi-u.. 더보기
C276x260 우분투에서 LVM을 사용하여 ROOT 파일시스템을 확장하는 방법 우분투에서 LVM을 사용하여 ROOT 파일시스템(vg0-lv--0)을 확장하는 방법테스트 환경운영체제 버전$ lsb_release -dDescription: Ubuntu 22.04 LTS현재 디스크 사용량$ df -h | egrep -v tmpfsFilesystem Size Used Avail Use% Mounted on/dev/mapper/vg0-lv--0 48G 9.7G 36G 22% //dev/sda2 974M 127M 780M 14% /bootRoot 파일 시스템은 LVM Logical Volume (vg0-lv--0) 위에 구성되어 있습니다.1. 현재 LVM 구성 확인1.1 Physical Volume 확인pvs PV .. 더보기
C276x260 쿠버네티스 볼륨(Volume) - hostPath 볼륨 쿠버네티스 hostPath 볼륨hostPath 볼륨hostPath 볼륨 생성hostPath1.yaml 파일 작성apiVersion: apps/v1kind: ReplicaSetmetadata: name: myapp-rs-hostpathspec: replicas: 2 selector: matchLabels: app: myapp-rs-hostpath template: metadata: labels: app: myapp-rs-hostpath spec: containers: - name: web-server image: nginx:alpine volumeMounts: - name: web.. 더보기
C276x260 쿠버네티스 볼륨(Volume) - emptyDir 볼륨 쿠버네티스 볼륨(Volume)사용 사능한 볼륨 목록emptyDir임시로 데이터를 저장하는 빈 볼륨(디렉터리)gitRepo내부적으로 emptyDir 기능을 이용하여 초기에 git 리포지토리의 내용을 채워서 제공하는 볼륨. 더 이상 사용되지 않음(Deprecated)hostPath쿠버네티스 클러스터 노드(호스트)의 파일 시스템을 제공하는 볼륨네트워크 스토리지 볼륨nfs, cinder, cephfs, iscsi, glusterfs, quobyte, rbd, flexVolume, vsphereVolume, photonPersistentDisk클라우드 스토리지 볼륨gcePersistentDisk(GCE Persistent Disk), awsElasticBlockStore(AWS EBS Volume), azureD.. 더보기
C276x260 우분투에서 NFS Server를 설치하고 NFS 볼륨을 마운트하는 방법 우분투에서 NFS(Network File Service) Server를 설치하고 NFS 볼륨을 마운트하는 방법테스트 환경운영체제 버전 정보$ lsb_release -dDescription: Ubuntu 20.04.5 LTSNFS 서버 설치NFS 서버 패키지 설치sudo apt updatesudo apt install -y nfs-kernel-serversudo systemctl --now enable nfs-server.servicesudo systemctl status nfs-server$ sudo systemctl status nfs-server● nfs-server.service - NFS server and services Loaded: loaded (/lib/systemd/syste.. 더보기
C276x260 쿠버네티스 워크로드 - 파드(pods) 워크로드 - 파드(pods)myapp-pod-nginx.yaml 파일 작성apiVersion: v1kind: Podmetadata: name: myapp-pod-nginx labels: name: myapp-pod-nginxspec: containers: - name: myapp-pod-nginx image: nginx:latest resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 80 protocol: TCP파드 생성kubectl create -f myapp-pod-nginx.yaml$ kubectl create -f myapp-pod-ngin.. 더보기
C276x260 [kubernetes] 쿠버네티스 디플로이먼트 쿠버네티스 디플로이먼트(kubernetes deployment) 디플로이먼트(Deployment) 는 파드와 레플리카셋(ReplicaSet)에 대한 선언적 업데이트를 제공한다. 디플로이먼트에서 의도하는 상태 를 설명하고, 디플로이먼트 컨트롤러(Controller)는 현재 상태에서 의도하는 상태로 비율을 조정하며 변경한다. 새 레플리카셋을 생성하는 디플로이먼트를 정의하거나 기존 디플로이먼트를 제거하고, 모든 리소스를 새 디플로이먼트에 적용할 수 있다. 디플로이먼트 생성(kubectl create deployment) kubectl create deployment myapp --image=nginx $ kubectl create deployment myapp --image=nginx deployment.ap.. 더보기
C276x260 [kubernetes] EKS(Amazon Elastic Kubernetes Service) 구성 EKS(Amazon Elastic Kubernetes Service) 구성 eks 배포를 위한 필요한 도구들 설치 1. awscli 설치 curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install aws --version $ aws --version aws-cli/2.7.34 Python/3.9.11 Linux/5.15.0-46-generic exe/x86_64.ubuntu.20 prompt/off 2. aws-iam-authenticator 설치 curl -o aws-iam-authenticator https://s3.us-west-2.amazona.. 더보기

728x90
반응형