Kubernetes: различия между версиями
Перейти к навигации
Перейти к поиску
Artem (обсуждение | вклад) |
Artem (обсуждение | вклад) |
||
Строка 36: | Строка 36: | ||
kubectl describe ingress mongo-express-ingress -n mongo-admin | kubectl describe ingress mongo-express-ingress -n mongo-admin | ||
</pre> | |||
System reset | |||
<pre> | |||
minikube stop | |||
minikube delete | |||
rm -rf ~/.minikube | |||
rm -rf ~/.kube | |||
docker kill $(docker ps -q) | |||
docker rm $(docker ps -a -q) | |||
docker rmi $(docker images -q) | |||
docker system prune | |||
</pre> | </pre> | ||
Версия от 05:39, 31 октября 2022
Installation
sudo apt-get update sudo apt-get install -y apt-transport-https ca-certificates curl sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list sudo apt-get update sudo apt-get install -y kubelet kubeadm kubectl sudo apt-mark hold kubelet kubeadm kubectl
Шпаргалка по командам
- Kubernetes Tutorial for Beginners FULL COURSE in 4 Hours
- Kubernetes Crash Course for Absolute Beginners [NEW]
- Шпаргалка по kubectl
minikube ip kubectl cluster-info kubectl create deployment nginx-depl --image=nginx kubectl get pod kubectl get replicaset kubectl get pod <POD-ID> -o wide kubectl get deployment nginx-depl kubectl get deployment nginx-depl -o yaml kubectl edit deployment nginx-depl kubectl logs <POD-ID> kubectl describe pod <POD-ID> kubectl exec -it <POD-ID> -- /bin/bash kubectl apply -f <CONFIG.YML> kubectl get deployment nginx-deployment -o yaml # https://kubernetes.github.io/ingress-nginx/troubleshooting/ kubectl get ingress -n mongo-admin kubectl describe ing mongo-express-ingress -n mongo-admin kubectl describe ingress mongo-express-ingress -n mongo-admin
System reset
minikube stop minikube delete rm -rf ~/.minikube rm -rf ~/.kube docker kill $(docker ps -q) docker rm $(docker ps -a -q) docker rmi $(docker images -q) docker system prune