Skip to content

Commit

Permalink
[CRI] containerd 기반 TLS/SSL Harbor 연동
Browse files Browse the repository at this point in the history
  • Loading branch information
ac2dia committed Jan 18, 2023
1 parent fb153e7 commit 10ed883
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions k8s/cri/containerd/connect_harbor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Harbor 연동 이슈!!

## 이슈

- TLS/SSL 적용이 된 Harbor 에서 이미지를 pull 받지 못하는 이슈 발생

## 원인 분석

- Harbor login 가능 여부 확인

- 가능은 하였으나 사용하는 쿠버네티스 클러스가 docker 컨테이너로 생성한 kind 였음!!
- 그렇기 때문에 kind 컨테이너 내부로 들어가서 확인했어야 했음
- 확인 결과 Harbor login 실패

- CRI 확인!
- containerd
- CLI 확인!
- crictl 설치되어 있었음!

## containerd private registry 설정

1. /etc/hosts 파일에 도메인 추가

- ex) 192.168.130.101 harbor.ac2dia.com

2. containerd 설정 파일 확인

- /etc/containerd/config.toml 이용
- Configure Image Registry 설정!
- harbor registry 등록
- harbor 접속 정보 입력
- harbor TLS/SSL ca, cert, key 파일

## CRI 아키텍처 학습

![CRI 아키텍처](./cri_architecture.png)

## 참고문헌

[1] 02. ContainerD private Registry image pull, https://ikcoo.tistory.com/230
[2] Configure Image Registry, https://github.com/containerd/containerd/blob/main/docs/cri/registry.md
[3] Architecture of The CRI Plugin, https://github.com/containerd/containerd/blob/main/docs/cri/architecture.md
Binary file added k8s/cri/containerd/cri_architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10ed883

Please sign in to comment.