[ArgoCD] Error: Unable to create ‘..git/index.lock’: File exists

ArgoCD Application 생성시 에러 발생 ▼ Error message Unable to create application: application spec for saassss is invalid: InvalidSpecError: Unable to get app details: rpc error: code = Internal desc = Failed to checkout FETCH_HEAD: git checkout --force FETCH_HEAD failed exit status 128: fatal: Unable to create ‘..git/index.lock’: File exists. Another git process seems to be running in this repository, e.g. an editor opened by ‘git commit’. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. ...

2024년 5월 2일 · 1 분 · An Seongjin

[CI/CD] Github Actions: build, push, update another repo file

Github Actions을 사용하여 멀티플랫폼이 지원되는 이미지 빌드 방법과 Docker Hub 혹은 ECR에 Push하는 방법. 그리고 제 3의 Git Repo 파일 내용 변경 방법을 정리해보았다.

2024년 4월 19일 · 4 분 · An Seongjin

[Terraform] DB Instance 삭제된 VPC 참조 현상

Terraform으로 DB Instance 생성시 존재하지 않는 VPC를 참조하는 현상에 대하여

2024년 4월 11일 · 2 분 · An Seongjin

Github Actions & ArgoCD CI/CD (for K8S, Java App)

Github Actions를 활용해서 애플리케이션 Build & Image push. 애플리케이션과 Kubernetes manifest 파일 변경점 발생시 ArgoCD를 통하여 로컬 Minikube 환경에 자동배포 환경 구축하기

2024년 4월 5일 · 2 분 · An Seongjin

ArgoCD 활용 Minikube 환경에 배포(feat. AWS ECR)

ArgoCD를 통해 내 로컬에 Minikube 클러스터 환경이 구성되도록 만들었다. 그리고 Dockerhub Public image를 가져오던 기존방식에서 AWS ECR의 image를 pull 하는 방식으로 바꿔보았고, 이 과정에서 발생한 문제에 대해 알게된 원인과 해결방법을 기록해보았다.

2024년 3월 28일 · 2 분 · An Seongjin

About Netcat and Netstat

netcat netcat: 네트워크 연결을 테스트하고 다른 서버와 포트의 통신 상태를 확인할 수 있다. netcat은 많은 Linux 배포판에서 사용할 수 있는 네트워킹 유틸리티로, 다양한 패키지 매니저를 통해 설치할 수 있다. 주요 Linux 배포판별로 netcat을 설치하고 사용하는 방법을 다음과 같이 정리했다 1. Debian, Ubuntu (apt 사용) sudo apt update && sudo apt install netcat-openbsd nc -zv 10.244.0.74 9092 2. Fedora, CentOS (dnf 또는 yum 사용) sudo dnf install nc # 또는 CentOS에서는 yum이 보편적인 방식 sudo yum install nc nc -zv 10.244.0.74 9092 3. Arch Linux (pacman 사용) sudo pacman -Syu gnu-netcat nc -zv 10.244.0.74 9092 4. openSUSE (zypper 사용) sudo zypper install netcat-openbsd nc -zv 10.244.0.74 9092 5. Alpine Linux (apk 사용) apk update && apk add netcat-openbsd nc -zv 10.244.0.74 9092 6. Amazon Linux (yum 또는 dnf 사용) Amazon Linux 2의 경우: sudo yum install nc nc -zv 10.244.0.74 9092 Amazon Linux 2023의 경우: sudo dnf install nc nc -zv 10.244.0.74 9092 ss netstat -tuln: 시스템의 네트워크 연결, 라우팅 테이블, 인터페이스 통계, masquerade 연결, 멀티캐스트 멤버십 등을 보여준다. ...

2024년 3월 15일 · 2 분 · An Seongjin

Local K8S 환경 Kafka Application 구성(feat. Minikube)

구축 환경 Mac Apple Sillicon (arm64) 기존 docker-compose.yaml 파일을 k8s 클러스터 구성하기 위한 yaml 파일로 convert하기 위해 kompose 툴 사용 brew install kompose kompose convert -f docker-compose.yml --out converted.yaml converted.yaml minikube, 위의 converted.yaml 활용하여 로컬에 k8s 클러스터 구축 minikube 사용하여 기존 Kafka Application 구축 minikube 설치 brew install minikube minikube 클러스터 시작 minikube start (설치하고나면 ~/.kube/config 파일에 클러스터와 컨텍스트 관련 정보 자동으로 설정 완료) (option) 사용할 Namespace 설정 kubectl create ns kafka-app kubectl config set-context --current --namespace=kafka-app 로컬 image 사용하도록 설정 Registry에 올리지 않은, 로컬에만 있는 image를 사용하기 위해서는 다음과 같은 커맨드 실행이 필요하다. ...

2024년 3월 12일 · 3 분 · An Seongjin