diff --git a/100000 - dashboard enable 2.png b/100000 - dashboard enable 2.png new file mode 100644 index 0000000000000000000000000000000000000000..59710c7980ebffbd0a510e88d547d6ae4fa1ccbd Binary files /dev/null and b/100000 - dashboard enable 2.png differ diff --git a/100000 - dashboard enable 3.png b/100000 - dashboard enable 3.png new file mode 100644 index 0000000000000000000000000000000000000000..0d2272575b89a44e21ffbbcdacda75429fc91aa0 Binary files /dev/null and b/100000 - dashboard enable 3.png differ diff --git a/3.Kubernetes_Dashboard_deploiement.md b/3.Kubernetes_Dashboard_deploiement.md index 90cf9d55ca1e46281451f2716783c16bf54147c8..9d1faa3a512bc588eb5a96868868965f634f897a 100644 --- a/3.Kubernetes_Dashboard_deploiement.md +++ b/3.Kubernetes_Dashboard_deploiement.md @@ -50,4 +50,20 @@ Puis appliquer le fichier : ```bash kubectl apply -f rbac.yml clusterrolebinding.rbac.authorization.k8s.io/admin-user created -``` \ No newline at end of file +``` + +- Pour finir, nous allons creer un Token d'authentification pour notre utilisateur d'une duree de 10 ans : +```bash +root@kube01:~# kubectl -n kubernetes-dashboard create token admin-user --duration=87600h + +eyJhbGciOiJSUzI1NiIsImtpZCI6IldzbWliS096S1duaWdFVGdUV050YXkxMWZSLWdyZXRqaUxzRnFQNmprcncifQ.eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiXSwiZXhwIjoyMDU2NzI3MDcxLCJpYXQiOjE3NDEzNjcwNzEsImlzcyI6Imh0dHBzOi8va3ViZXJuZXRlcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsIiwia3ViZXJuZXRlcy5pbyI6eyJuYW1lc3BhY2UiOiJrdWJlcm5ldGVzLWRhc2hib2FyZCIsInNlcnZpY2VhY2NvdW50Ijp7Im5hbWUiOiJhZG1pbi11c2VyIiwidWlkIjoiYTZhMjk1MTUtZTgzNC00NTkxLTljMjktODA2NTdjYWE2NGVmIn19LCJuYmYiOjE3NDEzNjcwNzEsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDprdWJlcm5ldGVzLWRhc2hib2FyZDphZG1pbi11c2VyIn0Wmq51CWyiEdlwAvI_g3WygC5_Eh8ne8SamWrw15_v1ch7rZ6WjodQcKX4kjdg06t0Bbwi1b9sUgdBXwCYGTIcQW5_bMXzsIqY5JqKncnsZbdHl688gHpwxDTPKRJ04p6Nkyay0ytkowdSEJjf2kli6rYqDbo6yIa2ZfxyShCcpgIYABbTByc4QuqMuxB1V5F9GsVxi-WNRxc_Khn_LWXDPRIXvNMtcDzHXzTGlkdQ6OZ490nxoOz6WfrR5EsQJz3LDM_gngeOWaqt0je2k11Zb0EQLPK8SXyP3vG5F15L0_JfSF34cR2VlkW5HUODRRLlkfantXmcOCsNzaB2yOCJg +``` + +Pour tester notre Kubernetes Dashboard, nous allons creer un port-forwarding temporaire : +```bash +nohup kubectl port-forward -n kubernetes-dashboard service/kubernetes-dashboard --address 0.0.0.0 10443:443 > /dev/null 2>&1 & +``` +**Cette methode est bien entendu temporaire** + + +