创建节点
Kubernetes 中的节点可以通过启动 Surge 来创建节点,以下是一个示例:
使用 Surge 的 Node Launcher
- 打开 Surge 的 Node Launcher(可以通过
Surge node或Surge node --stats) - 选择适合的镜像(Container镜像、Container镜像等)
- 点击“Create Node” 按钮
- 输入节点名称(可以选择一个合适的名称)
- 选择运行的端点(如
http://localhost:88、http://localhost:881等) - 点击“Create Node” 进行创建
使用 Surge 的 Python 工具
如果需要使用 Python 工具来配置节点:
surge python -m node
创建配置文件
使用 Surge 的 Node Config
将 Surge 的 Node Config 设定为 node.config,用于存储配置信息。
使用 Surge 的 Python 工具
surge python -m node_config
使用 Surge 的 Config
如果需要使用 Surge 的 Config 工具:
surge config
创建并运行节点
使用 Surge 的 Node
在 Surge 的 Node 中,您可以通过以下命令创建并运行节点:
surge node -m http://localhost:88
使用 Surge 的 Node Config
在 Surge 的 Node Config 中,您可以通过以下命令创建并运行节点:
surge node -m http://localhost:88
配置配置文件
创建配置文件
在 Surge 的 Node 中,如果您需要配置特定的配置文件,可以使用以下命令:
surge node -c http://localhost:88
使用 Surge 的 Python 工具
如果需要使用 Surge 的 Python 工具来配置配置文件:
surge python -m config
系统配置
选择运行的端点
在 Surge 中,运行节点时,请确保端点是正确的,并且有足够的资源(如 CPU、内存、磁盘等)来运行。
设置运行参数
在运行节点时,您可能需要设置一些运行参数,
容器镜像:指定运行的容器镜像名称(node:app、node:app:等)端点:指定的端点地址(如http://192.168.1.1:88)服务名称:服务的名称(如app)
使用 Surge 的 Config
如果需要使用 Surge 的 Config 工具来配置配置文件:
surge config -m http://localhost:88
查看节点状态
查看节点列表
在 Surge 的 Node 中,查看节点列表:
surge node -l
查看节点状态
在 Surge 的 Node 中,查看节点的状态:
surge node -c http://localhost:88
运行服务
使用 Surge 的 Node
在 Surge 的 Node 中,运行服务:
surge node -m http://localhost:88 app
使用 Surge 的 Config
如果需要使用 Surge 的 Config 工具来运行服务:
surge config -m http://localhost:88 app
监控服务
在 Surge 中,您可以通过以下命令查看服务的状态:
surge status http://localhost:88 app
注意事项
- 镜像安全:确保使用安全的镜像以防止恶意软件。
- 节点安全:确保节点安全,防止恶意攻击。
- 资源限制:确保节点有足够的资源(CPU、内存、磁盘等)运行。
通过以上步骤,您可以成功配置和运行 Surge iOS 的节点,如果遇到任何问题,请检查以下内容:
- 确保镜像是安全的。
- 检查运行端点是否正确。
- 确保配置文件正确。
- 确保运行参数正确。



