Rancher Windows 클러스터
Rancher Windows 클러스터에서는 Longhorn 컴포넌트가 Linux 노드에서만 실행될 수 있어요. 지원되는 Helm 차트를 쓰는 배포 방법과 기존 Longhorn에 노드 셀렉터·톨러레이션을 직접 설정하는 방법을 안내해요.
출처: 문서
본문
Rancher는 Linux 워커 노드와 Windows 워커 노드를 조합한 Windows 클러스터를 프로비저닝할 수 있어요. Rancher Windows 클러스터에 대한 자세한 내용은 Rancher 공식 문서를 참고하세요.
Rancher Windows 클러스터에서는 모든 Linux 워커 노드가:
- 테인트(taint)
cattle.io/os=linux:NoSchedule로 tainted돼요 - 라벨
kubernetes.io/os:linux로 labeled돼요
아래의 Deploy Longhorn With Supported Helm Chart 또는 Setup Longhorn Components For Existing Longhorn를 따라 Rancher Windows 클러스터에 Longhorn을 배포하거나 설정하는 방법을 알아보세요.
Note: Longhorn이 배포된 이후에는 Longhorn 볼륨을 사용하는 워크로드를 Linux 노드에서만 실행할 수 있어요.
Deploy Longhorn With Supported Helm Chart
Helm 값 global.cattle.windowsCluster.enabled를 업데이트하면 Rancher Windows 클러스터에 Longhorn 설치를 허용할 수 있어요.
이 값을 true로 설정하면 Longhorn이 Rancher Windows 클러스터를 인식하고, 올바른 노드 셀렉터(node selector)와 톨러레이션(toleration)으로 Longhorn 컴포넌트를 배포해서 모든 Longhorn 워크로드가 Linux 노드에서만 실행되도록 해요.
Rancher marketplace에서는 설치 전에 customize Helm options에서 이 설정을 커스터마이즈할 수 있어요:
Edit Options > Other Settings > Rancher Windows Cluster
다음에서도 가능해요:
Edit YAML
global:
cattle:
systemDefaultRegistry: ""
windowsCluster:
# Enable this to allow Longhorn to run on the Rancher deployed Windows cluster
enabled: true
Setup Longhorn Components For Existing Longhorn
지원되는 Helm 차트로 배포하지 않은 기존 Longhorn을 설정할 수 있어요.
-
Longhorn 컴포넌트는 Linux 노드에서만 실행될 수 있으므로, Longhorn이 Linux 노드를 선택하도록 노드 셀렉터
kubernetes.io/os:linux를 설정해야 해요. Longhorn의 노드 셀렉터 설정은 Node Selector 지침을 따르세요. -
Rancher Windows 클러스터의 모든 Linux 워커 노드는 테인트
cattle.io/os=linux:NoSchedule로 tainted되어 있으므로, Longhorn이 그 노드에서 실행될 수 있게 톨러레이션cattle.io/os=linux:NoSchedule을 설정해야 해요. Longhorn의 톨러레이션 설정은 Taint Toleration 지침을 따르세요.