DevOps (9) 썸네일형 리스트형 [Github Actions]Github Actions의 주요 구성 요소 GitHub Actions 정의GitHub Actions는 소프트웨어 개발 워크플로우를 자동화할 수 있게 해주는 CI/CD(지속적 통합/지속적 배포) 플랫폼입니다. 이 도구를 사용하면 코드 저장소 내에서 직접 빌드, 테스트, 배포 파이프라인을 구축하고 관리할 수 있습니다.Github Actions ComponentsGitHub Actions는 다음과 같은 주요 구성 요소로 이루어져 있습니다:WorkflowEventJobStepActionRunner이들은 서로 연결되어 자동화된 프로세스를 구성합니다. 각 구성 요소에 대해 자세히 살펴보겠습니다.https://docs.github.com/en/actions/using-workflows/about-workflows#workflow-basicsWorkflowgi.. [ArgoCD]Install ArgoCD from Helm chart Install ArgoCD from helm chart with creating pv, pvc Add repo helm repo add argo Install argocd CLI VERSION=$(curl --silent "" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\\1/') curl -sSL -o /usr/local/bin/argocd chmod +x /usr/local/bin/argocd Change Password Get initail password helm install 이후 명령어 확인 kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | ba.. [ArgoCD]Install ArgoCD from url with Ingress Install ArgoCD from url with Ingress Install argcd # Create namespace kubectl create namespace argocd # Install argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml # Delete argocd kubectl delete -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml Set Ingress Argocd Ingress Config 참고 Ingress C.. [ArgoCD]ArgoCD Architecture API server API 서버는 웹 UI, CLI 및 CI/CD 시스템에서 사용하는 API를 노출하는 gRPC/REST 서버입니다. 다음과 같은 책임이 있습니다. 애플리케이션 관리 및 상태 보고 애플리케이션 작업 호출(예: 동기화, 롤백, 사용자 정의 작업) 리포지토리 및 클러스터 자격 증명 관리(K8s에 secret으로 저장됨) 외부 ID 공급자에 대한 인증 및 인증 위임 RBAC 시행 Git 웹훅 이벤트에 대한 리스너/포워더 Repository Server 리포지토리 서버는 애플리케이션 매니페스트를 보유하는 Git 리포지토리의 로컬 캐시를 유지 관리하는 내부 서비스입니다. 다음 입력이 제공될 때 Kubernetes 매니페스트 생성 및 반환을 담당합니다. 저장소 URL revision (commit,.. [Harbor]Tag retention policy Purpose Delete old images from harbor registry How to use Projects - Policy - TAG RETENTION - ADD RULE EDIT Schedule and Retention runs [Harbor]Install harbor with helm chart in Kubernetes Purpose Install harbor to manage container images Harbor? CNCF 재단의 graduated된 오픈소스 프로젝트 Container image나 Helm chart를 저장할 수 있는 저장소이다. 이미지 보관 주기, 이미지 스캐닝, RBAC 등 다양한 기능을 제공한다. Download helm chart Helm chart 사용 방벙 2022.05.24 - [Container/Kubernetes] - [Kubernetes]Understand how to use helm chart in Kubernetes add repo helm repo add harbor https://helm.goharbor.io helm repo list fetch & unzip chart.. [Jenkins]Jenkins Pipeline - Scripted VS Declarative Scripted VS Declarative Declarative pipeline은 Jenkins pipeline의 최신 기능 Declarative pipeline은 Scripted pipeline 보다 더욱 풍부한 기능 제공 Declarative pipeline은 pipeline 코드를 더 쉽게 작성하고 읽을 수 있도록 설계 모두 방법 groovy DSL을 기반으로 동작한다. Scripted: groovy 기반에 구축된 첫 번째 pipeline이기 때문에 더 엄격한 groovy 기반 구문을 사용 Declarative: 더 간단하고 더 많은 옵션이 있는 Groovy 구문을 제공하기 위해 도입 Scripted VS Declarative https://www.jenkins.io/doc/book/pipeline.. [Gitlab]Install / Backup / Restore Gitlab Purpose Install, backup, restore Gitlab 물리 서버에서 운영하던 gitlab을 가상 서버로 이전하기 위해 해당 내용을 사용하였다. gitlab restore시 동일한 version에서만 실행되니 이 부분을 주의하여 작업해야 한다. 1. Install gitlab Gitlab version: 13.2.0 If you want to restore gitlab on other server you have to match gitlab version yum install -y curl policycoreutils-python openssh-server perl ## add repo curl https://packages.gitlab.com/install/repositories/git.. 이전 1 2 다음