对齐文件规范

This commit is contained in:
2026-03-27 16:58:41 +08:00
parent 231b6713c4
commit 31709425e2
235 changed files with 5433 additions and 2850 deletions

View File

@@ -0,0 +1,37 @@
# docs/05-07-openclaw局域网联机.md — 按需修改 NodePort/镜像
apiVersion: apps/v1 # Deployment API 版本
kind: Deployment # 部署控制器
metadata: # 元数据
name: openclaw-server # Deployment 名称
namespace: default # 命名空间
spec: # 期望状态
replicas: 1 # 副本数
selector: # 选择器
matchLabels: # 匹配 labels
app: openclaw-server # 标签值
template: # Pod 模板
metadata: # Pod 元信息
labels: # Pod 标签
app: openclaw-server # 标签值
spec: # Pod 规格
containers: # 容器
- name: openclaw-server # 容器名
image: ghcr.io/your/openclaw-server:latest # 镜像(按环境修改)
ports: # 容器端口
- containerPort: 27015 # 示例端口(按应用实际修改)
---
apiVersion: v1 # Service API 版本
kind: Service # Service
metadata: # 元数据
name: openclaw-server # Service 名称
namespace: default # 命名空间
spec: # 规格
type: NodePort # NodePort 暴露到节点
selector: # 选择后端 Pod
app: openclaw-server # 标签选择器
ports: # 端口列表
- name: game # 端口名
port: 27015 # Service 端口
targetPort: 27015 # Pod 端口
nodePort: 32715 # NodePort按需修改需在范围内