Difference between revisions of "IT-SDK-Kubernetes-Basics"
Jump to navigation
Jump to search
Samerhijazi (talk | contribs) (Created page with "=Source= * https://kubernetes.io/docs/reference/kubectl/cheatsheet/ * http://kubernetesbyexample.com/") |
Samerhijazi (talk | contribs) |
||
| Line 2: | Line 2: | ||
* https://kubernetes.io/docs/reference/kubectl/cheatsheet/ | * https://kubernetes.io/docs/reference/kubectl/cheatsheet/ | ||
* http://kubernetesbyexample.com/ | * http://kubernetesbyexample.com/ | ||
| + | <pre class="code"> | ||
| + | kubectl run --image=nginx -o yaml --dry-run=client > pod-defination.yaml | ||
| + | kubectl create deployment --image=nginx --replicas=3 -o yaml --dry-run=client > deployment-defination.yaml | ||
| + | </pre> | ||
Revision as of 14:09, 4 January 2021
Source
kubectl run --image=nginx -o yaml --dry-run=client > pod-defination.yaml kubectl create deployment --image=nginx --replicas=3 -o yaml --dry-run=client > deployment-defination.yaml