{"id":273,"date":"2021-11-29T00:07:22","date_gmt":"2021-11-28T23:07:22","guid":{"rendered":"http:\/\/daisy-street.fr\/?p=273"},"modified":"2021-12-02T16:46:07","modified_gmt":"2021-12-02T15:46:07","slug":"kubernetes-et-emby-server","status":"publish","type":"post","link":"https:\/\/daisy-street.fr\/index.php\/2021\/11\/29\/kubernetes-et-emby-server\/","title":{"rendered":"Kubernetes et Emby Server"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Preparation<\/h2>\n\n\n\n<p>Passer 32Go de la ZFS de Proxmox au ubuntu qui host kubernetes<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"428\" height=\"35\" data-attachment-id=\"274\" data-permalink=\"https:\/\/daisy-street.fr\/index.php\/2021\/11\/29\/kubernetes-et-emby-server\/image-16-2\/\" data-orig-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-16.png\" data-orig-size=\"428,35\" 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-16\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-16-300x25.png\" data-large-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-16.png\" src=\"http:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-16.png\" alt=\"\" class=\"wp-image-274\" srcset=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-16.png 428w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-16-300x25.png 300w\" sizes=\"auto, (max-width: 428px) 100vw, 428px\" \/><\/figure>\n\n\n\n<p>Dans TrueNas exposer \/mnt\/Magneto\/9-VideoClub en SMB<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"378\" data-attachment-id=\"277\" data-permalink=\"https:\/\/daisy-street.fr\/index.php\/2021\/11\/29\/kubernetes-et-emby-server\/image-19-2\/\" data-orig-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-19.png\" data-orig-size=\"790,378\" 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-19\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-19-300x144.png\" data-large-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-19.png\" src=\"http:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-19.png\" alt=\"\" class=\"wp-image-277\" srcset=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-19.png 790w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-19-300x144.png 300w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-19-768x367.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>Passer la carte Graphic a ubuntu<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"471\" height=\"51\" data-attachment-id=\"276\" data-permalink=\"https:\/\/daisy-street.fr\/index.php\/2021\/11\/29\/kubernetes-et-emby-server\/image-18-2\/\" data-orig-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-18.png\" data-orig-size=\"471,51\" 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-18\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-18-300x32.png\" data-large-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-18.png\" src=\"http:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-18.png\" alt=\"\" class=\"wp-image-276\" srcset=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-18.png 471w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/11\/image-18-300x32.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Installation filesystem<\/h2>\n\n\n\n<p>installation de Cifs et edition de fstab pour monter automatiquement le share truenas<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install cifs-utils<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/fstab\n\n\/\/192.168.1.46\/9-VideoClub \/Videoclub cifs uid=0,credentials=\/home\/david\/.smb,iocharset=utf8,noperm 0 0\n<\/code><\/pre>\n\n\n\n<p>Cree une partion sur le disk de 32Go provenant de Proxmox via fdisk , formater en ext4 et monter cette partion sur le filesystem \/usr\/kubedata<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/fstab\n\n\/dev\/disk\/by-id\/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1-part1 \/usr\/kubedata ext4 defaults    0 0\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">deployement<\/h2>\n\n\n\n<p>La commande docker avec le filesystem prepar\u00e9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker run -d \\\n    --name embyserver \\\n    --volume \/usr\/kubedata\/embyserver\/config:\/config \\\n    --volume \/Videoclub:\/mnt\/videoclub \\\n    --net=host \\\n    --device \/dev\/dri:\/dev\/dri \\\n    --publish 8096:8096 \\\n    --publish 8920:8920 \\\n    --env UID=1000 \\\n    --env GID=100 \\\n    --env GIDLIST=100 \\\n    emby\/embyserver:latest<\/code><\/pre>\n\n\n\n<p>traduction en kubernetes deploy :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: apps\/v1\nkind: Deployment\nmetadata:\n  name: embyserver \n  namespace: default\n  labels:\n    app: emby\nspec:\n  replicas: 1\n  selector:\n    matchLabels:\n      app: emby\n  template:\n    metadata:\n      labels:\n        run: embyserver \n        app: emby\n    spec:\n      containers:\n      - name: embyserver \n        image: emby\/embyserver:latest\n        env:\n          - name: \"UID\"\n            value: \"1000\"\n          - name: \"GID\"\n            value: \"100\" \n          - name: \"GIDLIST\"\n            value: \"100\" \n        ports:\n        - containerPort: 8096\n          name: emby-http\n        - containerPort: 8920\n          name: emby-https\n        volumeMounts:\n        - mountPath: \/config\n          name: emby-config\n        - mountPath: \/mnt\/videoclub\n          name: emby-media\n      volumes:\n      - name: emby-media\n        hostPath:\n          type: Directory\n          path: \/Videoclub\n      - name: emby-config\n        hostPath:\n          type: DirectoryOrCreate\n          path: \/usr\/kubedata\/embyserver\/config\n---\napiVersion: v1\nkind: Service\nmetadata:\n  name: emby\nspec:\n  selector:\n    app: emby\n  ports:\n    - name: \"http\"\n      port: 8096\n      targetPort: 8096\n    - name: \"https\"\n      port: 8920\n      targetPort: 8920\n  type: NodePort<\/code><\/pre>\n\n\n\n<p>puis on recupere le recupere le port d\u2019exposition<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get all --all-namespaces | grep emby<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"70\" data-attachment-id=\"292\" data-permalink=\"https:\/\/daisy-street.fr\/index.php\/2021\/11\/29\/kubernetes-et-emby-server\/image-1-3\/\" data-orig-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1.png\" data-orig-size=\"1694,116\" 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-1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1-300x21.png\" data-large-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1-1024x70.png\" src=\"http:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1-1024x70.png\" alt=\"\" class=\"wp-image-292\" srcset=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1-1024x70.png 1024w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1-300x21.png 300w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1-768x53.png 768w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1-1536x105.png 1536w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-1.png 1694w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>resultat le dashboard est accecible https:\/\/&lt;master-ip&gt;:30647<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Preparation Passer 32Go de la ZFS de Proxmox au ubuntu qui host kubernetes Dans TrueNas exposer \/mnt\/Magneto\/9-VideoClub en SMB Passer la carte Graphic a ubuntu Installation filesystem installation de Cifs et edition de fstab pour monter automatiquement le share truenas Cree une partion sur le disk de 32Go provenant de Proxmox via fdisk , formater &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/daisy-street.fr\/index.php\/2021\/11\/29\/kubernetes-et-emby-server\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Kubernetes et Emby Server&#8221;<\/span><\/a><\/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":[38,33,46,14,9,29,30],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-non-classe","tag-emby","tag-kubernetes","tag-nfs","tag-proxmox","tag-serveur","tag-truenas","tag-zfs"],"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\/273","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=273"}],"version-history":[{"count":7,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/273\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}