Files
Deploy-Laboratory/ansible/files/05-07/openclaw-server.yml
2026-03-27 16:58:41 +08:00

38 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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按需修改需在范围内