kubectl create deployment --dry-run -oyaml

1 개요[ | ]

kubectl create deployment --dry-run -oyaml
Console
Copy
$ kubectl create deployment two --image=nginx --dry-run -oyaml
apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: two
  name: two
spec:
  replicas: 1
  selector:
    matchLabels:
      app: two
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: two
    spec:
      containers:
      - image: nginx
        name: nginx
        resources: {}
status: {}

2 같이 보기[ | ]