ToolHub
中文
Light
GitHub
返回首页
/
开发编程
/
Kubernetes YAML 生成 / 检查
加载中...
复制
下载
Kubernetes YAML
apiVersion: apps/v1 kind: Deployment metadata: name: web spec: replicas: 2 selector: matchLabels: app: web template: metadata: labels: app: web spec: containers: - name: web image: nginx:1.27 ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: name: web spec: selector: app: web ports: - port: 80 targetPort: 80
检查提示
{ "warnings": [] }