{"id":220,"date":"2021-11-10T23:15:40","date_gmt":"2021-11-10T22:15:40","guid":{"rendered":"http:\/\/daisy-street.fr\/?p=220"},"modified":"2021-12-01T09:30:17","modified_gmt":"2021-12-01T08:30:17","slug":"ubuntu-docker-kubernetes","status":"publish","type":"post","link":"https:\/\/daisy-street.fr\/index.php\/2021\/11\/10\/ubuntu-docker-kubernetes\/","title":{"rendered":"Ubuntu , Docker, Kubernetes"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Installer ubuntu sur proxmox<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-daisystreet-blog wp-block-embed-daisystreet-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ljZ0RUjMMd\"><a href=\"http:\/\/daisy-street.fr\/index.php\/2021\/11\/04\/creation-template-ubuntu\/\">Creation template Ubuntu<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Creation template Ubuntu&#8221; &#8212; DaisyStreet Blog\" src=\"http:\/\/daisy-street.fr\/index.php\/2021\/11\/04\/creation-template-ubuntu\/embed\/#?secret=LHS5q3AE6o#?secret=ljZ0RUjMMd\" data-secret=\"ljZ0RUjMMd\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installer Docker<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>curl https:\/\/releases.rancher.com\/install-docker\/20.10.sh | sh<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Update Ubuntu<\/h3>\n\n\n\n<p>Afin deviter des erreur pendant l&#8217;install il faut mettre a jour ubuntu avant de lancer la procedure d&#8217;install<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade\nsudo reboot<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Installer Kubernetes<\/h3>\n\n\n\n<p><a href=\"https:\/\/ubuntu.com\/tutorials\/install-a-local-kubernetes-with-microk8s#2-deploying-microk8s\">https:\/\/ubuntu.com\/tutorials\/install-a-local-kubernetes-with-microk8s#2-deploying-microk8s<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo snap install microk8s --classic\nsudo ufw allow in on cni0 &amp;&amp; sudo ufw allow out on cni0\nsudo ufw default allow routed\nmicrok8s enable dns dashboard storage\nmicrok8s kubectl get all --all-namespaces\nmicrok8s kubectl port-forward -n  kube-system service\/kubernetes-dashboard 10443:443 --address 0.0.0.0 &amp;&amp;<\/code><\/pre>\n\n\n\n<p>creation d&#8217;un alias pour lancer les commandes  &#8220;microk8s  kubectl&#8221; directement avec &#8221; kubectl&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo snap alias microk8s.kubectl kubectl<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>david@legion2:~$ microk8s kubectl get all --all-namespaces\nNAMESPACE     NAME                                             READY   STATUS    RESTARTS       AGE\nkube-system   pod\/coredns-7f9c69c78c-7ljk2                     1\/1     Running   1 (6h2m ago)   6h36m\nkube-system   pod\/calico-kube-controllers-6b654d96bd-ngxnq     1\/1     Running   1 (6h2m ago)   14h\nkube-system   pod\/calico-node-tb2cz                            1\/1     Running   1 (6h2m ago)   14h\nkube-system   pod\/metrics-server-85df567dd8-gfjvk              1\/1     Running   0              5h57m\nkube-system   pod\/kubernetes-dashboard-59699458b-66gng         1\/1     Running   0              5h53m\nkube-system   pod\/dashboard-metrics-scraper-58d4977855-lg8qw   1\/1     Running   0              5h53m\nkube-system   pod\/hostpath-provisioner-5c65fbdb4f-nvclh        1\/1     Running   0              5h53m\ndefault       pod\/embyserver-56d8c5b5bc-4xtj9                  1\/1     Running   0              13m\n\nNAMESPACE     NAME                                TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                  AGE\ndefault       service\/kubernetes                  ClusterIP   10.152.183.1     &lt;none&gt;        443\/TCP                  14h\nkube-system   service\/kube-dns                    ClusterIP   10.152.183.10    &lt;none&gt;        53\/UDP,53\/TCP,9153\/TCP   6h36m\nkube-system   service\/metrics-server              ClusterIP   10.152.183.220   &lt;none&gt;        443\/TCP                  5h57m\nkube-system   service\/kubernetes-dashboard        ClusterIP   10.152.183.11    &lt;none&gt;        443\/TCP                  5h54m\nkube-system   service\/dashboard-metrics-scraper   ClusterIP   10.152.183.66    &lt;none&gt;        8000\/TCP                 5h54m\ndefault       service\/embyserver                  NodePort    10.152.183.74    &lt;none&gt;        8096:30829\/TCP           9m48s\n\nNAMESPACE     NAME                         DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR            AGE\nkube-system   daemonset.apps\/calico-node   1         1         1       1            1           kubernetes.io\/os=linux   14h\n\nNAMESPACE     NAME                                        READY   UP-TO-DATE   AVAILABLE   AGE\nkube-system   deployment.apps\/coredns                     1\/1     1            1           6h36m\nkube-system   deployment.apps\/calico-kube-controllers     1\/1     1            1           14h\nkube-system   deployment.apps\/metrics-server              1\/1     1            1           5h57m\nkube-system   deployment.apps\/kubernetes-dashboard        1\/1     1            1           5h54m\nkube-system   deployment.apps\/dashboard-metrics-scraper   1\/1     1            1           5h54m\nkube-system   deployment.apps\/hostpath-provisioner        1\/1     1            1           5h54m\ndefault       deployment.apps\/embyserver                  1\/1     1            1           13m\n\nNAMESPACE     NAME                                                   DESIRED   CURRENT   READY   AGE\nkube-system   replicaset.apps\/calico-kube-controllers-69d7f794d9     0         0         0       14h\nkube-system   replicaset.apps\/coredns-7f9c69c78c                     1         1         1       6h36m\nkube-system   replicaset.apps\/calico-kube-controllers-6b654d96bd     1         1         1       14h\nkube-system   replicaset.apps\/metrics-server-85df567dd8              1         1         1       5h57m\nkube-system   replicaset.apps\/kubernetes-dashboard-59699458b         1         1         1       5h53m\nkube-system   replicaset.apps\/dashboard-metrics-scraper-58d4977855   1         1         1       5h53m\nkube-system   replicaset.apps\/hostpath-provisioner-5c65fbdb4f        1         1         1       5h53m\ndefault       replicaset.apps\/embyserver-56d8c5b5bc                  1         1         1       13m\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Installer ubuntu sur proxmox Installer Docker Update Ubuntu Afin deviter des erreur pendant l&#8217;install il faut mettre a jour ubuntu avant de lancer la procedure d&#8217;install Installer Kubernetes https:\/\/ubuntu.com\/tutorials\/install-a-local-kubernetes-with-microk8s#2-deploying-microk8s creation d&#8217;un alias pour lancer les commandes &#8220;microk8s kubectl&#8221; directement avec &#8221; kubectl&#8221;<\/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":[20,33,15],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-non-classe","tag-docker","tag-kubernetes","tag-ubuntu"],"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\/220","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=220"}],"version-history":[{"count":15,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":284,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions\/284"}],"wp:attachment":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}