From c922be8f68883d2897e9246698f93b485c9ae180 Mon Sep 17 00:00:00 2001 From: Xuhui zhang Date: Mon, 23 Dec 2024 13:52:22 +0800 Subject: [PATCH] fix: add more example Signed-off-by: Xuhui zhang --- config/samples/v1_cachegroup.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/samples/v1_cachegroup.yaml b/config/samples/v1_cachegroup.yaml index a6b4822..1722ae2 100644 --- a/config/samples/v1_cachegroup.yaml +++ b/config/samples/v1_cachegroup.yaml @@ -34,6 +34,10 @@ spec: nodeSelector: juicefs.io/cg-worker: "true" image: juicedata/mount:ee-5.1.1-1faf43b + tolerations: + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule hostNetwork: true resources: requests: @@ -47,13 +51,22 @@ spec: type: HostPath opts: - group-weight=100 + - cache-size=204800 + - free-space-ratio=0.01 overwrite: - nodes: - k8s-03 opts: - group-weight=50 + - cache-size=102400 + - free-space-ratio=0.01 cacheDirs: - path: /var/jfsCache-1 type: HostPath - path: /var/jfsCache-2 type: HostPath + - nodeSelector: + k8s/instance-type: c5.large + opts: + - group-weight=10 + - cache-size=1024 \ No newline at end of file