Difference between revisions of "IT-SDK-Kubernetes-Basics"
Jump to navigation
Jump to search
Samerhijazi (talk | contribs) |
Samerhijazi (talk | contribs) (→Source) |
||
| Line 5: | Line 5: | ||
kubectl run --image=nginx -o yaml --dry-run=client > pod-defination.yaml | 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 | kubectl create deployment --image=nginx --replicas=3 -o yaml --dry-run=client > deployment-defination.yaml | ||
| + | </pre> | ||
| + | =minikube= | ||
| + | * https://minikube.sigs.k8s.io/docs/ | ||
| + | <pre class="code"> | ||
| + | minikube start | ||
| + | minikube dashboard | ||
| + | minikube stop #Halt the cluster: | ||
| + | minikube config set memory 16384 #Set memory limit | ||
| + | minikube addons list #Browse the catalog | ||
| + | minikube start -p aged --kubernetes-version=v1.16.1 #Create a second cluster | ||
| + | minikube delete --all #Delete all of the minikube | ||
</pre> | </pre> | ||
Revision as of 00:19, 7 July 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
minikube
minikube start minikube dashboard minikube stop #Halt the cluster: minikube config set memory 16384 #Set memory limit minikube addons list #Browse the catalog minikube start -p aged --kubernetes-version=v1.16.1 #Create a second cluster minikube delete --all #Delete all of the minikube