본문 바로가기
728x90
반응형

전체 글186

[Git] git stash (git 임시 저장) git stash git stash는 현재 진행중인 작업들을 commit 하지 않고 임시 저장 후 나중에 불러와서 다시 작업을 진행할 수 있도록 도와주는 명령어이다. stash 임시 저장 git stash 명령어를 사용하여 stash에 저장되고 이때 작성중인 working directory는 이전상태로 돌아간다. $ git stash $ git stash save stash 저장 목록 확인 $ git stash list stash@{0}: WIP on refactor-code: fdc47a753 refactor code stash 저장 가져오기 # 최근 stash 가져오기 $ git stash apply # 특정 stash 가져오기 $ git stash apply stash@{0} stash 제거 # 최.. 2022. 5. 17.
[Kubernetes] command terminated with exit code 137 kubernetes pod 이 exit code 137로 죽었을 경우, 이는 OOMKilled (Out Of Memory) error로 pod의 Memory가 부족하여 죽는 경우이다. 이때 Resource에 할당된 Memory limit을 늘려서 OOMKilled를 예방 할 수 있다. Resources 영역에는 request와 limt이 있으며 아래와 같다. request : container에 할당되는 최소한의 memory limit : container에 할당될 수 있는 최대한의 memory exit code 137이 발생하는 경우는 container에서 사용되는 memory가 limit을 넘었을 경우 발생할 수 있다. limit을 늘리는 방법은 아래와 같다. yaml 수정방법 spec: repli.. 2022. 5. 17.
[Composer] composer install Install composer 2022. 5. 17.
[Kubernetes][Docker] image pull ecr login kubernetes 클러스터 container에서 ecr login 인증을 얻기 위해 secret을 생성한 이후 클러스터 service account에 등록하여 ecr 인증이 되도록 해본다. 1. aws cli를 통해 ecr login aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin {accountId}.dkr.ecr.ap-southeast-1.amazonaws.com 2. ecr login을 위한 secret 생성을 위한 password 얻어오기 $ aws ecr get-login-password --region ap-southeast-1 eyJwYXl....oxNjUyNzQx.. 2022. 5. 16.
728x90
반응형