Token导航 LogoToken导航

Agent Skill · 运维

kubernetes-devops(Kubernetes devops 部署)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

kubernetes-devops 是运维类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在运维类的 954 个 Skill 里排第 27。

总安装 85,679周安装 3,606GitHub Stars 1下载 30,002核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:kubernetes-devops(Kubernetes devops 部署)
来源仓库:https://github.com/wpank/kubernetes-devops
安装命令:
openclaw skills install kubernetes-devops
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install kubernetes-devops

这个 Skill 是做什么的

运维类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

内容:Kubernetes 清单生成 - 部署、StatefulSets、CronJobs、服务、入口、 具有生产级安全性和运行状况检查的 ConfigMap、Secret 和 PVC。

何时:用户需要创建 K8s 清单、部署容器、配置服务/入口, 管理 ConfigMaps/Secrets、设置持久存储或组织多环境配置。

关键词: kubernetes, k8s, 清单, 部署, 有状态集, cronjob, 服务, 入口, configmap、secret、pvc、pod、容器、yaml、kustomize、helm、命名空间、探针、安全上下文

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install kubernetes-devops;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

kubernetes-devops 怎么安装?

在终端执行 openclaw skills install kubernetes-devops。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

kubernetes-devops 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

kubernetes-devops 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

kubernetes-devops 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

kubernetes-devops 用的人多吗?

公开数据是累计安装 85,679 次,近一周安装 3,606 次,下载 30,002 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

kubernetes-devops 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理运维类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
docker-essentials

Docker 基础 · OpenClaw

1,005,15130接触敏感数据MIT-0通过
playwright-scraper-skill

Playwright scraper 技能 · OpenClaw

923,55754接触敏感数据MIT-0有提醒
moltguard

moltguard 搜索 · OpenClaw

825,096110接触敏感数据MIT-0通过
finance-news

财经新闻 · OpenClaw

275,51210需要联网MIT-0有提醒
security-monitor

安全监视器 · OpenClaw

224,1695需要联网MIT-0有提醒
kubernetes-devops

Kubernetes devops 部署 · 本页

85,6791接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

model
fast
description
|
WHAT
Kubernetes manifest generation - Deployments, StatefulSets, CronJobs, Services, Ingresses,
WHEN
User needs to create K8s manifests, deploy containers, configure Services/Ingress,
KEYWORDS
kubernetes, k8s, manifest, deployment, statefulset, cronjob, service, ingress,
version
1.0.0

Kubernetes

Production-ready Kubernetes manifest generation covering Deployments, StatefulSets, CronJobs, Services, Ingresses, ConfigMaps, Secrets, and PVCs with security contexts, health checks, and resource management.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install kubernetes

When to Use

ScenarioExample
Create deployment manifestsNew microservice needing Deployment + Service
Define networking resourcesClusterIP, LoadBalancer, Ingress with TLS
Manage configurationConfigMaps for app config, Secrets for credentials
Stateful workloadsDatabases with StatefulSets + PVCs
Scheduled jobsCronJobs for batch processing
Multi-environment setupKustomize overlays for dev/staging/prod

Workload Selection

Workload TypeResourceWhen to Use
Stateless appDeploymentWeb servers, APIs, microservices
Stateful appStatefulSetDatabases, message queues, caches
One-off taskJobMigrations, data imports
Scheduled taskCronJobBackups, reports, cleanup
Per-node agentDaemonSetLog collectors, monitoring agents

Deployment

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-app
  namespace: production
  labels:
    app.kubernetes.io/name: my-app
    app.kubernetes.io/version: "1.0.0"
    app.kubernetes.io/component: backend
spec:
  replicas: 3
  selector:
    matchLabels:
      app.kubernetes.io/name: my-app
  template:
    metadata:
      labels:
        app.kubernetes.io/name: my-app
        app.kubernetes.io/version: "1.0.0"
    spec:
      securityContext:
        runAsNonRoot: true
        runAsUser: 1000
        fsGroup: 1000
        seccompProfile:
          type: RuntimeDefault
      containers:
        - name: my-app
          image: registry.example.com/my-app:1.0.0
          ports:
            - containerPort: 8080
              name: http
          resources:
            requests:
              cpu: 250m
              memory: 256Mi
            limits:
              cpu: 500m
              memory: 512Mi
          securityContext:
            allowPrivilegeEscalation: false
            readOnlyRootFilesystem: true
            capabilities:
              drop: [ALL]
          livenessProbe:
            httpGet:
              path: /health
              port: http
            initialDelaySeconds: 30
            periodSeconds: 10
          readinessProbe:
            httpGet:
              path: /ready
              port: http
            initialDelaySeconds: 5
            periodSeconds: 5
          env:
            - name: LOG_LEVEL
              valueFrom:
                configMapKeyRef:
                  name: my-app-config
                  key: LOG_LEVEL
            - name: DB_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: my-app-secret
                  key: DATABASE_PASSWORD

Services

ClusterIP (Internal)

apiVersion: v1
kind: Service
metadata:
  name: my-app
  namespace: production
spec:
  type: ClusterIP
  selector:
    app.kubernetes.io/name: my-app
  ports:
    - name: http
      port: 80
      targetPort: 8080
      protocol: TCP

LoadBalancer (External)

apiVersion: v1
kind: Service
metadata:
  name: my-app-lb
  namespace: production
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-type: nlb
spec:
  type: LoadBalancer
  selector:
    app.kubernetes.io/name: my-app
  ports:
    - name: http
      port: 80
      targetPort: 8080

Service Type Quick Reference

TypeScopeUse Case
ClusterIPCluster-internalInter-service communication
NodePortExternal via node IPDev/testing, on-prem
LoadBalancerExternal via cloud LBProduction external access
ExternalNameDNS aliasMapping to external services

Ingress

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-app
  namespace: production
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/rate-limit: "100"
spec:
  ingressClassName: nginx
  tls:
    - hosts: [app.example.com]
      secretName: app-tls
  rules:
    - host: app.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: my-app
                port:
                  number: 80

ConfigMap & Secret

ConfigMap

apiVersion: v1
kind: ConfigMap
metadata:
  name: my-app-config
  namespace: production
data:
  LOG_LEVEL: info
  APP_MODE: production
  DATABASE_HOST: db.internal.svc.cluster.local
  app.properties: |
    server.port=8080
    server.host=0.0.0.0

Secret

apiVersion: v1
kind: Secret
metadata:
  name: my-app-secret
  namespace: production
type: Opaque
stringData:
  DATABASE_PASSWORD: "changeme"
  API_KEY: "secret-api-key"
Important: Never commit plaintext Secrets to Git. Use Sealed Secrets, External Secrets Operator, or Vault for production.

Persistent Storage

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: my-app-data
  namespace: production
spec:
  accessModes: [ReadWriteOnce]
  storageClassName: gp3
  resources:
    requests:
      storage: 10Gi

Mount in a container:

containers:
  - name: app
    volumeMounts:
      - name: data
        mountPath: /var/lib/app
volumes:
  - name: data
    persistentVolumeClaim:
      claimName: my-app-data
Access ModeAbbreviationUse Case
ReadWriteOnceRWOSingle-pod databases
ReadOnlyManyROXShared config/static assets
ReadWriteManyRWXMulti-pod shared storage

Security Context

Pod-Level

spec:
  securityContext:
    runAsNonRoot: true
    runAsUser: 1000
    fsGroup: 1000
    seccompProfile:
      type: RuntimeDefault

Container-Level

securityContext:
  allowPrivilegeEscalation: false
  readOnlyRootFilesystem: true
  capabilities:
    drop: [ALL]

Security Checklist

CheckStatus
runAsNonRoot: trueRequired
allowPrivilegeEscalation: falseRequired
readOnlyRootFilesystem: trueRecommended
capabilities.drop: [ALL]Required
seccompProfile: RuntimeDefaultRecommended
Specific image tags (never :latest)Required
Resource requests and limits setRequired

Standard Labels

metadata:
  labels:
    app.kubernetes.io/name: my-app
    app.kubernetes.io/instance: my-app-prod
    app.kubernetes.io/version: "1.0.0"
    app.kubernetes.io/component: backend
    app.kubernetes.io/part-of: my-system
    app.kubernetes.io/managed-by: kubectl

Manifest Organization

Option 1 — Separate Files

manifests/
├── configmap.yaml
├── secret.yaml
├── deployment.yaml
├── service.yaml
└── pvc.yaml

Option 2 — Kustomize

base/
├── kustomization.yaml
├── deployment.yaml
├── service.yaml
└── configmap.yaml
overlays/
├── dev/
│   └── kustomization.yaml
└── prod/
    ├── kustomization.yaml
    └── resource-patch.yaml

Validation

# Client-side dry run
kubectl apply -f manifest.yaml --dry-run=client

# Server-side validation
kubectl apply -f manifest.yaml --dry-run=server

# Lint with kube-score
kube-score score manifest.yaml

# Lint with kube-linter
kube-linter lint manifest.yaml

Troubleshooting Quick Reference

ProblemDiagnosisFix
Pod stuck Pendingkubectl describe pod — check eventsFix resource requests, node capacity, PVC binding
ImagePullBackOffWrong image name/tag or missing pull secretVerify image exists, add imagePullSecrets
CrashLoopBackOffApp crashes on startCheck logs: kubectl logs <pod> --previous
Service not reachableSelector mismatchVerify kubectl get endpoints <svc> is non-empty
ConfigMap not loadingName mismatch or wrong namespaceCheck names match and namespace is correct
Readiness probe failingWrong path or portVerify health endpoint works inside container
OOMKilledMemory limit too lowIncrease resources.limits.memory

NEVER Do

Anti-PatternWhyDo Instead
Use :latest image tagNon-reproducible deploymentsPin exact version: image:1.2.3
Skip resource limitsPods can starve the nodeAlways set requests and limits
Run as rootContainer escape = full host accessSet runAsNonRoot: true + USER
Commit plaintext SecretsCredentials in Git history foreverUse Sealed Secrets / External Secrets / Vault
Skip health checksK8s can't detect unhealthy podsAlways configure liveness + readiness probes
Omit labelsCannot filter, select, or organizeUse standard app.kubernetes.io/* labels
Single replica for productionZero availability during updatesUse replicas: 3 minimum for HA
Hardcode config in containersRequires rebuild for config changesUse ConfigMaps and Secrets

Assets & References

Assets (Templates)

TemplateDescription
assets/deployment-template.yamlProduction Deployment with security + probes
assets/service-template.yamlClusterIP, LoadBalancer, NodePort examples
assets/configmap-template.yamlConfigMap with data types
assets/statefulset-template.yamlStatefulSet with headless Service + PVC
assets/cronjob-template.yamlCronJob with concurrency + history
assets/ingress-template.yamlIngress with TLS, rate limiting, CORS

References

ReferenceDescription
references/deployment-spec.mdDetailed Deployment specification
references/service-spec.mdService types and networking details

平台分布

OpenClaw

78.17%
按下载量换算23,453

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills