ArgoCD Kubernetes 구축
·
Kubernetes
ArgoCDArgoCD는 GitOps를 활용해 인프라와 솔루션을 함께 관리하여 Kubernetes Application의 자동 배포를 위한 오픈 소스이며 Continuous Deliver(CD)의 대표적인 솔루션입니다.argo-cd 설치https://github.com/argoproj/argo-cdcurl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocdrm argocd-linux-amd64argocd versionagrocd helpArgoCD 배포Names..
Kubernetes NFS StorageClass with MySQL
·
Kubernetes
Kubernetes Persistent Volume (PV)로 NFS Stoarge를 활용해보겠습니다.Container 의 생명 주기에 따라 내부 데이터는 사라지게 됩니다. 내부에 저장된 데이터를 유지하려면 Volume mount를 통해 데이터를 저장하게 됩니다.Kubernetes cluster에 생성된 Pod들의 데이터를 유지하려면 실행된 Node의 host path에 저장하거나, NFS Server 또는 분산 Storage인 Ceph 를 활용해 저장할 수 있습니다.아래는 hostPath를 활용해 실행되는 Node에 저장하는 방법입니다. 단 nginx-app Pod가 동일한 노드에 스케줄링 되지 않는다면 같은 데이터를 바라볼 수 없게 됩니다.apiVersion: apps/v1kind: ReplicaSe..
Kubernetes Control-Plane Node에 Taint 해제
·
Kubernetes
Kubernetes는 Pod Spec의 Node Selector를 통해 특정 Node 로 Schedule 수행 가능하며 Taint와 Tolerate 를 통해 특정 노드에 스케줄링 할 수 있습니다.kubectdl label nodes worker computetype=gpuapiVersion: apps/v1kind: Deployment...spec: replicas: 1 selector: ... spec: containers: - name: inference ... nodeSelector: computetype=gpuTolerationTaint를 무시할 수 있습니다.tolerations:- key: "computetype" operator: ..
Kubespray를 활용한 Kubernetes 클러스터 구축
·
Kubernetes
Kubespray를 활용한 Kubernetes 클러스터 구축 설치하는 환경 Master VM, Worker VM 3 OS: Ubuntu 22.04 CPU: 4 core Mem: 4096MB N/W: Bridge Kubespray로 Kuberenetes 구축 가이드 https://kubernetes.io/ko/docs/setup/production-environment/tools/kubespray/ Master 노드에서 pip3 설치를 진행합니다. sudo apt install python3-pip ssh key 복사 ssh key 복사를 진행합니다. ansible을 기본으로 사용하고 있어 master에서 ssh-keygen 이후에 worker vm 3대로 copy를 진행하면 됩니다. ssh-keygen ..
Keycloak 개념 Container 실행 및 Minio 연동
·
Kubernetes
Keycloak 개념 Container 실행 및 Minio 연동 Keycloak 이란 https://www.keycloak.org/ Keycloak을 활용하여 애플리케이션 및 보안 서비스에 인증(Authentication)을 추가할 수 있습니다. 사용자를 저장하거나 사용자 인증을 처리를 도와줍니다. 사용자 관리, 인증, 세분화된 인증을 제공합니다. SSO(Single-Sign On) 기능 사용자는 개별 애플리케이션으로 인증이 아닌 Keycloak 인증으로 통합됩니다. 각 애플리케이션마다 로그인 양식, 사용자 인증, 저장을 처리할 필요가 없습니다. Keycloak 로그인을 통해 모든 애플리케이션에서 액세스가 가능하며, 또한 단일 로그아웃을 통해 모든 애플리케이션에서 로그아웃 됩니다. Identity Bro..
VMWare를 활용한 Ubuntu 22.04 server 기반 Kubernetes 클러스터 구축
·
Kubernetes
VMWare를 활용한 Ubuntu 22.04 server 기반 Kubernetes 클러스터 구축 VMWare를 활용해 Ubuntu 22.04 Server로 설치하여 Kubernetes를 구축할 예정입니다. VMware: Workstation Player 17 Host OS: Ubuntu 22.04 Desktop Jammy Jellyfish VM OS: Ubuntu 22.04 Server Jammy Jellyfish Docker: 20.10.22 Kubernetes: 1.26.0 Master: 1 Wokrer 3 VMware Workstation Player 설치 https://www.vmware.com/kr/products/workstation-player.html 위에 웹 페이지 링크로 이동하여 무료 ..
Prometheus 데이터 저장소 보관 기간 설정
·
Kubernetes
Prometheus 데이터 저장소 보관 기간 설정 Prometheus의 데이터 저장소 보관 기간을 Default 15일로 되어 있어, 스토리지 대비하여 365일로 설정하려고 합니다. TSDB 패스인 /data에 500GB 정도의 PVC가 할당되어 있었고, 매일 기준 1.3GB가 누적되어 디스크를 사용하고 있는 상황에서 일년 단위 보관으로 결정하였습니다. 중요 데이터는 백업 정책을 세울 필요가 있어보입니다. https://prometheus.io/docs/prometheus/latest/storage/ /data 디렉터리 구조를 보면 시계열 데이터를 디스크에 저장하는 형태이고, 수집된 샘플은 2시간 단위로 그룹화되며, 각 그룹은 chunk 파일, 메타 파일(meta.json), 시계열로 인덱싱한 인덱스 파..
VMWare Workstation Player 16 Ubuntu 20.04
·
Kubernetes
VMWare Workstation Player 16 Ubuntu 20.04 VMWare Workstation Player 설치를 진행합니다. 다음의 링크로 이동해서 VMware Workstation Player의 GO TO DOWNLOADS를 클릭합니다. https://customerconnect.vmware.com/en/downloads/info/slug/desktop_end_user_computing/vmware_workstation_player/16_0 VMware Workstation 16.2.3 Player for Linux 64-bit의 DOWNLOAD NOW를 클릭합니다. $ chmod 700 VMware-Player-Full-16.2.3-19376536.x86_64.bundle $ sudo..
김 정출