https://kubernetes.io/zh/docs/home/

    https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands

    https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run

    [liwm@rmaster01 ~]$ kubectl run nginx —image=nginx —generator=run-pod/v1 —dry-run -o yaml
    apiVersion: v1
    kind: Pod
    metadata:
    creationTimestamp: null
    labels:
    run: nginx
    name: nginx
    spec:
    containers:
    - image: nginx
    name: nginx
    resources: {}
    dnsPolicy: ClusterFirst
    restartPolicy: Always
    status: {}
    [liwm@rmaster01 ~]$