본문 바로가기
728x90
반응형

Programming161

[kubernetes][redis] kubernetes에 redis 간단 설치 kubernetes에서 redis 간단 설치하기 redis.yaml 을 생성한 후 서비스 구동에 필요한 svc, configmap, pod을 정의한다. apiVersion: v1 kind: ConfigMap metadata: name: redis-config data: redis-config: | maxmemory 20mb maxmemory-policy allkeys-lru --- apiVersion: v1 kind: Service metadata: name: redis labels: app: redis spec: selector: app: redis ports: - name: redis protocol: TCP port: 6379 targetPort: 6379 --- apiVersion: v1 kind.. 2022. 5. 23.
[git] git branch 이름 변경 git 작업을 하다보면 git branch 이름 변경이 필요한 경우가 있다. 그럴경우 아래와 같은 방법으로 git branch 명을 변경 할 수 있다. Local Branch 이름 변경 방법 -m 옵션을 통해 Local Branch의 이름을 변경 할 수 있다. $ git branch -m {new_branch_name} Remote Branch 이름 변경 방법 변경된 Local Branch를 Remote에 push해서 변경한다. $ git push origin -u {new_branch_name} 이후 이전 브랜치를 delete 한다. $git push origin --delete {old_branch_name} 2022. 5. 20.
[docker-compose] docker-compose force build docker-copose up 을 이용하여 container 구동 시 일반적으론 캐시를 사용하여 container가 구동된다. 이때 강제로 build를 하고 싶으면 아래 옵션을 추가하면 build를 진행 후 구동이 된다. $ docker-compose up -d --build 2022. 5. 20.
[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.
728x90
반응형