DevOps & Cloud Engineering(234)
-
Cross region replication in Amazon ECR
- 개요 Cross region(multi region) 운영시 ECR image replication으로 여러 region에서 같은 image 사용 가능 - 설정 방법 ECR (Source Region에서 설정) >> Private Registry >> Replication >> Add rule >> Cross-region에서 대상 Region 선택 - reference https://aws.amazon.com/blogs/containers/cross-region-replication-in-amazon-ecr-has-landed https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-settings-configure.html
2023.06.21 -
ecs fargate Deployment failure detection
- 개요 fail count가 특정 횟수 이상 시 deployment state로 돌아가는데, 초기 구축은 이전 상태가 없으므로 삭제된다. - 특징1 ECS 초기 구성을 console로 할 경우 아래 설정이 Default인데, 초기 구축 특성상 deployment fail일 날 경우 특정 횟수 이상이 되면 service가 삭제된다. 따라서 아래 설정을 빼고 테스트를 권장한다. - 특징2 이 설정은 circuit breaker 뿐만 아니라 예상 치 못한 배포 실패시 무한 재시작되는 현상을 막을 수 있어서 잘 사용하면 좋을 것 같다. - 설정 Deployment failure detection >> Use the Amazon ECS deployment circuit breaker >> Rollback on ..
2023.06.21 -
install MySQL client on amazon linux 2023
# package update sudo dnf update -y # search mariadb client sudo dnf search mariadb # install mariadb client sudo dnf install mariadb105
2023.06.21 -
ip address location 확인하는 방법
방법 curl -s ipinfo.io/ | jq '.ip,.city,.country,.org' 예시 curl -s ipinfo.io/1.1.1.1 | jq '.ip,.city,.country,.org' "1.1.1.1" "Los Angeles" "US" "AS13335 Cloudflare, Inc."
2023.06.09 -
Security Policy (ELB, Cloudfront)
- 개요 기본적인 보안 가이드를 준수하려면 필수 - Cloudfront - Security policy (2023년 10월 기준) TLSv1.2_2021 - ELB - Security policy (2023년 10월 기준) ALB : ELBSecurityPolicy-TLS13-1-2-2021-06 NLB : ELBSecurityPolicy-TLS13-1-2-2021-06* - reference https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html?icmpid=docs_cf_help_panel#DownloadDistValuesOriginSSLProtocols https://d..
2023.05.15 -
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
- 현상 ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] - 해결 sysctl -a | grep vm.max_map_count vm.max_map_count = 262144
2023.05.11 -
Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory
- 환경 WSL Ubuntu 22.04.2 LTS - 해결 ldconfig -p | grep cuda export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH echo "export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH" >> .bashrc
2023.05.10 -
ecs tag propagation
- 개요 AWS resouce tag관리를 위해 Task Definition이나 Service의 Tag를 Task도 상속 - 방법 (AWS Web Console) ECS Service "enableECSManagedTags": "True" "propagateTags": "Task Definition" "Tags xxxx" - 방법 (CLI) aws ecs describe-services --services --cluster --region --query 'services[*].propagateTags' --output text aws ecs describe-services --services --cluster --region --query 'services[*].enableECSManagedTags' -..
2023.04.04 -
WSL에서 docker 자동 시작
- systemctl이 아닌 service 로 시작 vim /root/.bashrc service docker start
2023.03.24 -
rm할 때 물어보기
- 개요 파일 삭제를 할 경우 주의 환기 및 실수 방지 차원에서 Ask를 하는게 안전하다. - 방법 alias rm='rm -i' - 비고 위 alias를 .bashrc에 등록하여 사용
2023.03.09