Kubernetes YAML 配置文件生成器

100% 浏览器本地・零服务器上传

可视化构建 Deployment、Service、Ingress 与 ConfigMap 资源配置

Core Pod & Container Spec

Resource Allocation (Requests & Limits)

Healthcheck Probes (Liveness & Readiness)

Generated Manifest (YAML)

apiVersion: apps/v1
kind: Deployment
metadata:
  name: web-app
  namespace: default
  labels:
    app: web-app
spec:
  replicas: 2
  selector:
    matchLabels:
      app: web-app
  template:
    metadata:
      labels:
        app: web-app
    spec:
      containers:
        - name: web-app
          image: nginx:alpine
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 80
              name: http
          resources:
            requests:
              cpu: "100m"
              memory: "128Mi"
            limits:
              cpu: "500m"
              memory: "512Mi"
          env:
            - name: NODE_ENV
              value: "production"
            - name: PORT
              value: "80"
          livenessProbe:
            httpGet:
              path: /healthz
              port: 80
            initialDelaySeconds: 15
            periodSeconds: 20
          readinessProbe:
            httpGet:
              path: /ready
              port: 80
            initialDelaySeconds: 5
            periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
  name: web-app-svc
  namespace: default
  labels:
    app: web-app
spec:
  type: ClusterIP
  selector:
    app: web-app
  ports:
    - name: http
      port: 80
      targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: web-app-ingress
  namespace: default
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - app.example.com
      secretName: app-tls-cert
  rules:
    - host: app.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: web-app-svc
                port:
                  number: 80

将此工具固定在浏览器侧边栏

随时按下 Alt+M 即可在当前标签页侧边唤出此工具,免去切网页的麻烦。100% 离线免费。

获取浏览器插件

如何可视化生成 Kubernetes YAML 配置

  1. 1配置 Deployment 容器镜像、副本数、暴露端口与 CPU/内存配额。
  2. 2按需开启 Service 服务暴露(ClusterIP、NodePort 或 LoadBalancer)。
  3. 3配置 Ingress 域名路由规则、前缀路径与 TLS 证书密钥。
  4. 4一键复制或下载生成的标准 YAML,通过 kubectl apply -f 直接部署。

云原生安全零泄露

全流程在本地浏览器内存中构建与校验,内网域名、敏感账号绝不上传至任何第三方服务器。

常见问题解答 (FAQ)

喜欢 Kubernetes YAML 配置文件生成器 吗?分享给你的工程师朋友,一起告别广告与隐私泄露!

MiniToolDesk 100% 离线计算、零数据上传,您的支持是保持纯净无广告的动力。

相关开发者工具