{"id":265,"date":"2021-11-27T23:12:32","date_gmt":"2021-11-27T22:12:32","guid":{"rendered":"http:\/\/daisy-street.fr\/?p=265"},"modified":"2021-12-14T11:07:56","modified_gmt":"2021-12-14T10:07:56","slug":"exposer-le-dashboard-k8s","status":"publish","type":"post","link":"https:\/\/daisy-street.fr\/index.php\/2021\/11\/27\/exposer-le-dashboard-k8s\/","title":{"rendered":"Exposer le Dashboard K8s"},"content":{"rendered":"\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/48286170\/how-to-access-canonical-kubernetes-dashboard-externally\">https:\/\/stackoverflow.com\/questions\/48286170\/how-to-access-canonical-kubernetes-dashboard-externally<\/a><\/p>\n\n\n\n<p>Pour rendre accesible le dashboard Kurbernetes &#8220;form outside the machine&#8221; il est possible de modifier le type d&#8217;exposition de clusterIp a NodePort.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl -n kube-system edit service kubernetes-dashboard<\/code><\/pre>\n\n\n\n<p>remplacer &#8220;type: ClusterIp&#8221; par &#8220;type: NodePort&#8221;<\/p>\n\n\n\n<p>en executant la commande suivante on recupere le port d&#8217;exposition<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl -n kube-system get service kubernetes-dashboard<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"135\" height=\"43\" data-attachment-id=\"286\" data-permalink=\"https:\/\/daisy-street.fr\/index.php\/2021\/11\/27\/exposer-le-dashboard-k8s\/image-22\/\" data-orig-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image.png\" data-orig-size=\"135,43\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image.png\" data-large-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image.png\" src=\"http:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image.png\" alt=\"\" class=\"wp-image-286\"\/><\/figure>\n\n\n\n<p>resultat le dashboard est accecible https:\/\/&lt;master-ip&gt;:31834<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/stackoverflow.com\/questions\/48286170\/how-to-access-canonical-kubernetes-dashboard-externally Pour rendre accesible le dashboard Kurbernetes &#8220;form outside the machine&#8221; il est possible de modifier le type d&#8217;exposition de clusterIp a NodePort. remplacer &#8220;type: ClusterIp&#8221; par &#8220;type: NodePort&#8221; en executant la commande suivante on recupere le port d&#8217;exposition resultat le dashboard est accecible https:\/\/&lt;master-ip&gt;:31834<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[45,33,9],"class_list":["post-265","post","type-post","status-publish","format-standard","hentry","category-non-classe","tag-dashboard","tag-kubernetes","tag-serveur"],"jetpack_publicize_connections":[],"featured_image_src":null,"author_info":{"display_name":"admin9483","author_link":"https:\/\/daisy-street.fr\/index.php\/author\/admin9483\/"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":4,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":353,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/265\/revisions\/353"}],"wp:attachment":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}