-
Install minikube: Run command:
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.13.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
-
Create cluster
-
Run command:
minikube versionminikube start
-
-
Deployment
-
Run command:
kubectl create deployment $DEPLOY_NAME --image=$IMAGE_URL- Get list deployments:
kubectl get deployments
-
-
Create service
- expose port:
kubectl expose deployment $DEPLOY_NAME --type=$TYPE --port=$PORT- Get link access on browser
minikube service $DEPLOY_NAME
-
Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io":
run command:kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission -
Run local: change domain to:
- .local
- .localhost
- .test
- (any custom/non-standard top-level domain)
-
Remove service
- systemctl stop {service}
- yum remove {service}
- systemctl daemon-reload
- systemctl reset-failed
-
Check CRIO cgroup:
cat /etc/crio/crio.conf | grep cgroup
- Mongo dump
mongodump -u [DB_USERNAME] --db [DB_DATABASE] --authenticationDatabase=admin --gzip --archive > /path/to/file/dump_`date "+%Y-%m-%d"`.gz- Copy file remote machine to local computer
scp -P [port] [user]@[server_id]:/path/to/file /path/to/local- Mongo restore
mongorestore -u [DB_USERNAME] --authenticationDatabase=admin --gzip --archive=/path/to/file/dump_2024-10-03.gz --db [DB_DATABASE]