Skip to content

Commit

Permalink
kubeadm, wsl
Browse files Browse the repository at this point in the history
  • Loading branch information
deptno committed Jan 30, 2025
1 parent 6aa39a4 commit 0fee6a6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
3 changes: 3 additions & 0 deletions diary/2025-01-31.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [[../kubeadm|kubeadm]]
- [[../wsl|wsl]][[../kubernetes|kubernetes]] work node 로 추가
- gpu 활용을 위한 taint 설정
3 changes: 3 additions & 0 deletions diary/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
- [[2025-07-01]]

=== January ===
- [[2025-01-31]]
- [[2025-01-20]]
- [[2025-01-17]]
- [[2025-01-16]]
- [[2025-01-13]]
- [[2025-01-12]]
Expand Down
29 changes: 27 additions & 2 deletions kubeadm.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ kubelet 은 containerd 설정이 완전히 마쳐지면 kubeadm 통해서 실행
- [ ] TODO: 외부 접속

### 생성 후 조인
+ https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/adding-linux-nodes/
- master node 에서 토큰 발급한다
```sh
kubeadm token create --print-join-command
Expand Down Expand Up @@ -84,8 +85,32 @@ Please ensure that:

To see the stack trace of this error execute with --v=5 or higher
```


---
#### [[diary:2025-01-31]]
- [[wsl]] 환경에서 진행
- 원본 문서 참조
+ https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/adding-linux-nodes/
- control plane
- 접속해서 token 및 ca-cert-hash 생성
- 추가될 [[wsl]] worker node
- [[kubeadm]] 설치
- join 명령어에다가 control plane 에서 생성한 키와 함께 접속
- 에러 발생
- host os 인 [[windows]] 에서 방화벽 내림
- `apt-get` 으로 `containerd` 설치
- `swap` off
- `cgroup2` 설정
```sh
# 에러 메시지
[ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1
# 해결
echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
# 확인
cat /proc/sys/net/ipv4/ip_forward # 결과 1
```
- 이외 wsl 이기 때문에 포트 문제가있을 것 같아서 windows 에서 방화벽 내림
- 비 상시 node 라면 `taint` 설정

## amd64 설치
+ 2023-01-14
Expand Down

0 comments on commit 0fee6a6

Please sign in to comment.