对齐文件规范

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,43 @@
# docs/05-07-openclaw应用部署.md — 修改 IP / host
apiVersion: v1 # Service/Endpoints 使用的核心 API 版本
kind: Service # 资源类型Service对外部后端提供集群内服务名
metadata: # Service 元信息
name: openclaw-external # Service 名称(需与 Endpoints 同名)
namespace: default # 命名空间
spec: # Service 规格
ports: # 端口映射列表
- name: http # 端口名称
port: 80 # Service 暴露端口
targetPort: 18789 # 目标端口(与 Endpoints 端口对应)
---
apiVersion: v1 # Endpoints 使用的核心 API 版本
kind: Endpoints # 资源类型:手工定义后端地址
metadata: # Endpoints 元信息
name: openclaw-external # 必须与 Service 同名才能绑定
namespace: default # 命名空间
subsets: # 后端地址与端口集合
- addresses: # 地址列表
- ip: 192.168.2.70 # 外部后端 IP按环境修改
ports: # 端口列表
- port: 18789 # 外部后端真实端口
name: http # 端口名
---
apiVersion: networking.k8s.io/v1 # Ingress API 版本
kind: Ingress # 入口资源:域名/路径转发
metadata: # Ingress 元信息
name: openclaw # Ingress 名称
namespace: default # 命名空间
annotations: # Traefik 注解
traefik.ingress.kubernetes.io/router.entrypoints: web # 使用 web(HTTP) 入口
spec: # Ingress 规则
rules: # 规则列表
- host: openclaw.example.com # 访问域名(按环境修改)
http: # HTTP 规则
paths: # 路径列表
- path: / # 根路径
pathType: Prefix # 前缀匹配
backend: # 后端目标
service: # 后端 Service
name: openclaw-external # Service 名称
port: # Service 端口
number: 80 # 端口号

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按需修改需在范围内