YAML在线编辑器
YAML
apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 # tells deployment to run 2 pods matching the template template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:alpine ports: - containerPort: 80
JSON
Copyright © YAML在线编辑器 2022 |
赣ICP备19001536号-5
|
YAML文档