Kubernetes 클러스터의 default 네임스페이스에 있는 리소스를 삭제하는 과정은 신중하게 접근해야 합니다. default 네임스페이스는 사용자가 명시적으로 네임스페이스를 지정하지 않았을 때 기본적으로 사용되는 공간이기 때문에, 의도치 않게 중요한 리소스를 삭제할 위험이 있습니다.주의:삭제 전 반드시 백업: 삭제 작업 전에는 반드시 중요한 데이터를 백업해야 합니다.영향 범위 확인: default 네임스페이스에 어떤 리소스가 있는지, 삭제 시 어떤 영향을 미치는지 충분히 검토해야 합니다. 프로덕션 환경이라면 더욱 신중해야 합니다.불필요한 리소스만: 꼭 필요한 리소스는 삭제하지 않도록 주의합니다.삭제 과정 개요 및 단계별 명령어:default 네임스페이스의 리소스 목록 확인:어떤 리소스가 있는지 확인..
https://istio.io/latest/docs/setup/getting-started/https://www.youtube.com/watch?v=1yuW2wYXPt0Getting Started 7 minute read page test Want to explore Istio’s ambient mode? Visit the Getting Started with Ambient Mode guide! This guide lets you quickly evaluate Istio. If you are already familiar with Istio or interested in installing other configuration profiles or advanced deployment models,..
Kind Cluster Native K8s 환경에 Terraform, Istio, Kiali 구성 (단계별 명령어)Kind 클러스터로 생성한 Kubernetes 환경에 Terraform을 사용하여 Istio와 Kiali를 설치하는 방법을 단계별로 설명합니다.전제 조건:Windows 11 WSL Ubuntu 환경: 이미 구성되어 있어야 합니다 (이전 답변 참조).Kind: 설치되어 있어야 합니다 (이전 답변 참조).kubectl: 설치되어 있어야 합니다 (일반적으로 Kind 설치 시 자동 설치).curl, unzip: Ubuntu 환경에 설치되어 있어야 합니다 (sudo apt install curl unzip).단계 1: Kind 클러스터 생성 (이미 있는 경우 생략 가능)Kind 클러스터가 아직 없다면..
핵심: Jenkins Pipeline은 워크플로우 오케스트레이션 (빌드, 테스트, 배포 단계 조정), Ansible Playbook은 Kubernetes 리소스 관리 및 인프라 구성 (Deployment, Service, ConfigMap 생성/변경, 노드 스케일링, 백업)을 담당합니다.시나리오 1: 지속적 배포 (Continuous Deployment) - 자동화된 애플리케이션 업데이트 개요: Git 저장소 변경 -> Jenkins Pipeline 트리거 -> Docker 이미지 빌드 및 레지스트리 푸시 -> Ansible Playbook 실행 -> Kubernetes Deployment 업데이트 (롤링 업데이트)단계:Jenkins Pipeline (Jenkinsfile): pipeline {..
기본 전제 조건:Kubernetes 클러스터 (예: minikube, kind, managed Kubernetes 서비스)Jenkins 설치 (Kubernetes 플러그인을 사용하여 Kubernetes 클러스터 내에 설치 권장)Ansible 설치 (Jenkins 서버 또는 별도의 서버에 설치)kubectl, ssh, git 등 필요한 도구 설치Jenkins와 Ansible 간의 인증 설정 (예: SSH 키)시나리오 1: Kubernetes 애플리케이션 빌드, 테스트 및 배포개요:소스 코드 변경 시 Jenkins가 트리거되어 애플리케이션을 빌드, 테스트하고, Docker 이미지를 생성하여 Kubernetes 클러스터에 배포합니다. Ansible은 Kubernetes 매니페스트 (YAML 파일)를 관리하고 ..
Native Kubernetes 환경에서 Jenkins와 Ansible을 활용한 20가지 실제 사용 시나리오 (명령어 포함) Jenkins는 Kubernetes 내부에 Pod으로 배포되었다고 가정합니다. Ansible Playbook은 Jenkins Pipeline에서 ansible-playbook 명령어를 통해 실행됩니다. 사전 설정: Jenkins Kubernetes Plugin 설치 Ansible 설치 (Jenkins Pod 또는 별도의 Ansible 서버) Kubernetes Secret 생성 (credentials, Skey 등) 시나리오 및 명령어: 1. 애플리케이션 배포 (Deployment 업데이트): pipeline { agent any stages { stage('Depl..
Terraform + Ansible + PXE + IPMI + MetalLB를 이용한 베어메탈 Kubernetes 구성 과정 이 구성은 다음과 같은 단계를 거칩니다: Terraform: IPMI를 통해 베어메탈 서버를 프로비저닝하고 네트워크 설정을 구성합니다. PXE (Preboot Execution Environment): 베어메탈 서버를 부팅하고 운영체제를 설치합니다. Ansible: 운영체제 설치 후 Kubernetes 클러스터를 구성하고 MetalLB를 설정합니다. MetalLB: Kubernetes 클러스터에 LoadBalancer 타입의 서비스를 제공합니다. 전제 조건: Terraform, Ansible, IPMItool, PXE 서버가 이미 구성되어 있어야 합니다. 베어메탈 서버는 IPMI ..
보호되어 있는 글입니다.