开发者工具站

按场景组织 · 默认本地处理 · 清晰隐私说明

工作负载模板
应用名、镜像、副本数、端口、Service 与资源限制。
资源配置
围绕 Deployment 和 Service 组织常见参数。

仅在 `NodePort` 模式下写入。

每行一个 `KEY=VALUE`。

会自动附加到 Deployment 与 Service。

这版聚焦最常用的 `Deployment + Service` 组合,适合快速生成基础清单后再手工补充 Ingress、ConfigMap 或 HPA。
对象预览
先确认会生成哪些资源,再决定是否复制完整 YAML。

Deployment

toolhub

namespace: default

Service

toolhub

namespace: default

YAML 结果
Deployment + Service YAML。
apiVersion: apps/v1 kind: Deployment metadata: name: toolhub namespace: default labels: &a1 app: toolhub tier: frontend spec: replicas: 2 selector: matchLabels: app: toolhub template: metadata: labels: *a1 spec: containers: - name: toolhub image: ghcr.io/acme/toolhub:latest ports: - containerPort: 3000 env: - name: NODE_ENV value: production - name: PORT value: "3000" resources: requests: cpu: 100m memory: 128Mi limits: cpu: 500m memory: 512Mi --- apiVersion: v1 kind: Service metadata: name: toolhub namespace: default labels: app: toolhub tier: frontend spec: type: ClusterIP selector: app: toolhub ports: - port: 80 targetPort: 3000