Skip to content

Instantly share code, notes, and snippets.

@mvasilenko
Created September 13, 2018 10:38
Show Gist options
  • Save mvasilenko/3885716104033da69703b65219c83753 to your computer and use it in GitHub Desktop.
Save mvasilenko/3885716104033da69703b65219c83753 to your computer and use it in GitHub Desktop.
$ kubectl run nginx --image=nginx --dry-run -o yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
run: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
run: nginx
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
run: nginx
spec:
containers:
- image: nginx
name: nginx
resources: {}
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment