You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minikube dashboard
kubectl cluster-info
cat .kube/config
kubectl config get-contexts
kubectl run hello-world --image=pockost/http-helloworld --port=8080
kubectl get deployments
kubectl describe deployment hello-world
kubectl expose deployment hello-world --type=LoadBalancer
kubectl describe deployment hello-world
kubectl get services # (address 'pending' cause of minikube)
minikube service list
minikube dashboard &
minikube docker-env
eval$(minikube docker-env)# pour lancer un docker build en local mais exécuté sur le noeud minikube distant
git clone https://github.com/pockost/docker-http-helloworld
cd docker-http-helloworld/
vi server.js
docker build -t baptiste-http-helloworld:v1 .
docker images
kubectl run hello-world-baptiste --image=baptiste-http-helloworld:v1 --port=8080
kubectl get deployments
kubectl expose deployment hello-world-baptiste --type=LoadBalancer
kubectl get services
minikube service hello-world-baptiste
kubectl logs -f hello-world-baptiste-96fc6f9c8-9v66c
minikube ssh
minikube addons list
minikube addons enable efk
minikube addons enable metrics-server
minikube addons enable heapster
minikube service list
Lab#2
kubectl get pod -o wide
# possible de ne faire qu'un seul fichier pour décrire pod/deployments/services
kubectl expose pod grafana --type=LoadBalancer (containerPorts + labels)
# en pratique, on créera plutôt directement un Deployment pour exposer un port
kubectl get deployment -o json
kubectl get svc -o yaml