본문 바로가기
728x90
반응형

분류 전체보기185

[Kubernetes] Kubernetes in action - Pod Pod은 Component들을 구성하는 가장 최소 단위로 하나의 Pod 안에 여러 Container들을 구성할 수 있다. 하나의 Pod안에 구성된 Container들은 같은 노드에 구성되며 두개의 노드에 분산되어 배포될 수 없다. 하나의 컨테이너에 여러 Process를 넣는거보다 멀티 컨테이너를 운용하자. 하나의 컨테이너에 여러 Process로 구성할 경우 Process간에는 IPC를 통해 통신하거나 로컬환경에 파일을 저장하여 통신할 수 있다. 이럴 경우 각 Process들은 같은 컨테이너에 구성되어야 하며 각각 격리된 머신에 구성되게 된다. 컨테이너의 기본적인 디자인은 하나의 프로세스는 하나의 컨테이너에 구동된다는 컨셉을 가지고 있다. 이 경우에 장점은 크래시가 발생할 경우 각각의 프로세스를 자동적으로.. 2021. 12. 1.
[Kubernetes] kubectl cp (Kubernetes container files copy - pod 파일 복사) kubernetes 를 사용하면서 Volume을 통해서 local directories & files를 공유할 수 있지만 docker cp 처럼 local files 을 pod으로 직접 복사하거나 가져올 수 있습니다. kubectl cp 명령어를 사용해서 파일을 복사하거나 가져 올 수 있으며 아래처럼 사용하면 됩니다. Pod 에서 Local 환경으로 파일 복사 $ kubectl cp Pod이름:경로/파일 로컬경로/파일 Local 환경에서 Pod으로 파일 복사 $ kubectl cp 로컬경로/파일 Pod이름:경로/파일 예제 (nginx 생성 후 nginx.conf 복사하기) Pod 생성을 위한 nginx deploy 배포 apiVersion: apps/v1 kind: Deployment metadata: .. 2021. 11. 30.
[git] git push 되돌리기 - reset git commit을 잘못하여 되돌려야 할때가 있다. 이럴 경우 git reset 명령어를 사용해서 commit을 되돌릴 수 있다. commit 되돌리기 먼저 git log 를 통해 commit 내용을 살펴보자. $ git log commit fe954047297922fdc380b974ebe83a401504ed6c (HEAD -> main, origin/main) Author: test Date: Thu Nov 25 19:17:39 2021 +0900 third commit commit 388ac6c6d77cad44065b51f1f5e2cd461660ebc8 Author: test Date: Thu Nov 25 19:16:24 2021 +0900 second commit commit 070310e37ee.. 2021. 11. 25.
[Git] git push error - 토큰 인증 (Please use a personal access token instead) git repository 를 생성하고 local 에서 reomte 로 push를 하려고 할때 아래와 같이 authentication 에러가 발생할 때가 있다. remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authentication failed for 'https://github.com/kgmhk/tes.. 2021. 11. 25.
728x90
반응형