snap install microk8s --classic
microk8s kubectl get nodes

microk8s kubectl create deployment nginx-deployment --image=nginx
microk8s kubectl get pod
kubectl get replicaset
microk8s kubectl edit deployment nginx-deployment
kubectl describe deployment nginx-deployment


alias k="microk8s kubectl"

k -n default # -n : namespaces
kubectl run pod --help

#autodoc:
k explain pod
# documenter un sous-objet:
k explain pods.spec.affinity
# toutes les docs des sous-objets
k explain pods.spec.affinity --recursive
# toutes les ressources pouvant être déclarées
k api-resources
# les versions doivent être identiques
k version
Client Version: v1.28.7
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.7
k get



----

microk8s enable ingress
daemonset.apps/nginx-ingress-microk8s-controller created
Ingress is enabled

