# k8s-files **Repository Path**: jaychang/k8s-files ## Basic Information - **Project Name**: k8s-files - **Description**: k8s 安装时用到的文件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-13 - **Last Updated**: 2026-04-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 适用于k8s 1.32 # Longhorn说明 longhorn-v1.8.1.yaml版本 longhorn-v1.8.2.yaml版本 longhorn-v1.8.2-sbsc.yaml存算分离版本(Separation of storage and computing) longhorn-v1.8.2-sbsc.yaml ## 给存储节点打「吸引标签」 假设k8s-sn1,k8s-sn2,k8s-sn3 三个节点为存储用节点 sn代表storage node ``` shell kubectl label nodes k8s-sn1 node-role.kubernetes.io/storage=true --overwrite kubectl label nodes k8s-sn2 node-role.kubernetes.io/storage=true --overwrite kubectl label nodes k8s-sn3 node-role.kubernetes.io/storage=true --overwrite ``` ## 给存储节点打「排斥污点」 ``` shell kubectl taint nodes k8s-sn1 k8s-sn2 k8s-sn3 node-role.kubernetes.io/storage=true:NoSchedule ```