This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
# If an existing asset or directory is requested go to it as it is | |
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] | |
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d | |
RewriteRule ^ - [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minikube start - to start minikube | |
minikube status - to check the status | |
kubectl get nodes - to return nodes | |
minikube dashboard - to open darshboard | |
kubeadm init - set nodes up to master | |
kubectl run ghost --image=ghost - create deployment from dockerhub | |
kubectl delete deployments ghost - to delete deployment | |
kubectl proxy - to start proxy on localhost | |
kubectl create ns test - to create namespace test | |
kubetl get ns - to get namespaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=========Docker Basics=========== | |
docker login - to login into docker hub | |
docker run - to run container | |
docker rm - to remove container from sys | |
docker rmi - to remove container from disk | |
docker kill- to close | |
docker ps - list running containers | |
docker ps -a shows stopped containers | |
docker ps -l shows last runned container | |
docker logs - show log of container |