# 基于kubernetes的BC服务发现 **Repository Path**: mcvrc/BcServiceFind ## Basic Information - **Project Name**: 基于kubernetes的BC服务发现 - **Description**: 基于k8s实现BC服务发现,自动化管理BC - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-02 - **Last Updated**: 2024-08-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于kubernetes的BC服务发现 #### 介绍 **基于k8s实现我的世界BC端后端服务发现,自动化管理BC端** ### 标题 #### 安装教程 1. pip install kubernetes 2. pip install yaml 3. pip install psutil 4. pip install pprint 5. apt install screen 或yum install screen #### 使用说明 1. 确保有Python3.9及以上环境,3.9以下的可以自行尝试 2. 下载后放入BC根目录,并确保和kubeconfig在同一目录或使用--kubeconfig 设置目录 #### 参数 ###### --configPath < **BC的配置文件路径** > **类型** : str **默认值** :./config.yml ###### --namespace < **k8s命名空间的名词** > **类型** :str 默认值:default ###### --kubeconfig < **k8s的授权配置文件路径** > **类型** : str 默认值:./config ###### --svcName < **ks8的SVC名词** > **类型** :str **必须赋值** ###### --label < **MC服务器群组的k8s label值** > **类型** : str 必须赋值 例:--label "app=lable值" ###### --maxme < **BC的JVM最大内存值** > **类型** :str 默认值:1024 ###### --minme < **BC的JVM最小内存值** > **类型** : str 默认值:1024