IT Curation 자세히보기
728x90

2023/01 6

aws | ec2에 mariaDB 10.3 설치

1. user_data cat /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos7-amd64 gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck = 1 EOF yum install mariadb-server -y systemctl enable --now mariadb 2. 로그인 # mysql 3. 외부 계정생성 > create user '${아이디}'@'%' identified by '${비밀번호}'; 4. 권한 허용 > GRANT ALL PRIVILEGES ON *.* TO '${아이디}'@'%'; 5. 반영 FLU..

CLOUD/AWS 2023.01.18

aws | eks, gitaction, argoCD 작업

참고 자료 : https://catalog.us-east-1.prod.workshops.aws/workshops/9c0aa9ab-90a9-44a6-abe1-8dff360ae428/ko-KR/110-cicd/100-cicd ※ 개인 용도로 정리하여 빠진 부분이 많습니다. 위의 링크 참고 하시는게 더 좋습니다. 1. ArgoCD를 EKS에 설치 kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml 2. aws에 CLB 서비스 설치(실습 후 삭제) kubectl patch svc argocd-server -n arg..

CLOUD/AWS 2023.01.05

aws | efs 동적 스토리지 배포

1. 테라폼으로 efs먼저 배포 후 시작. 파일링크 : https://github.com/Seong-dong/team_prj_k8s/tree/main/environment/efs GitHub - Seong-dong/team_prj_k8s Contribute to Seong-dong/team_prj_k8s development by creating an account on GitHub. github.com 2. 자격증명 정책 생성(테스트 후 삭제) 정책 이름 : AmazonEKS_EFS_CSI_Driver_Policy aws iam create-policy --policy-name AmazonEKS_EFS_CSI_Driver_Policy --policy-document file://iam-policy-ex..

CLOUD/AWS 2023.01.04

aws | efs & gitaction & terraform | django image CI 작업

1. Terraform ECR 배포. repository Name : app 2. gitaction 설정 ci를 위한 저장소의 하위 경로에 .github/workflows/build.yaml 생성 아래는 예시 내용. 숨기는 변수값은 gitaction의 settings의 Secrets에서 설정. name: Django CI on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [3.8] steps: # git에서 설정한 비공개 변수 - name: checkout source code uses..

CLOUD/AWS 2023.01.04