{"id":807,"date":"2022-02-04T12:54:59","date_gmt":"2022-02-04T11:54:59","guid":{"rendered":"https:\/\/www.ume.li\/blog\/?p=807"},"modified":"2022-02-04T12:55:37","modified_gmt":"2022-02-04T11:55:37","slug":"hcl-component-pack-7-multiple-namespaces-persistent-volumes","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2022\/02\/04\/hcl-component-pack-7-multiple-namespaces-persistent-volumes\/","title":{"rendered":"HCL Component Pack 7 &#8211; Multiple Namespaces &#8211; Persistent Volumes"},"content":{"rendered":"<p>Each Component Pack instance requires persistent storage. But I don&#8217;t want to deal with that manually. I installed this <a href=\"https:\/\/github.com\/kubernetes-sigs\/nfs-subdir-external-provisioner\" title=\"nfs provisioner\" rel=\"noopener\" target=\"_blank\">nfs provisioner<\/a> to handle all the persistent volumes for me, if the claim has the correct storageclass, <em>nfs-client<\/em> in my example. <\/p>\n<p>The claims for the mongo pods just worked. I had to create elasticsearch claims manually. As an example the claim for the elasticsearch backup storage:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n---\r\nkind: PersistentVolumeClaim\r\napiVersion: v1\r\nmetadata:\r\n  namespace: connect6\r\n  name: es-pvc-backup-7\r\n  labels:\r\n    component: elasticsearch7\r\nspec:\r\n  accessModes:\r\n    - ReadWriteMany\r\n  storageClassName: nfs-client\r\n  resources:\r\n    requests:\r\n      storage: 8Gi\r\n<\/pre>\n<p>Each persistent volumen es then created on my nfs server dynamically.<br \/>\n<a href=\"https:\/\/www.ume.li\/blog\/2022\/02\/04\/hcl-component-pack-7-multiple-namespaces-persistent-volumes\/selection_1055\/\" rel=\"attachment wp-att-812\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2022\/02\/Selection_1055-300x81.png\" alt=\"\" width=\"300\" height=\"81\" class=\"alignleft size-medium wp-image-812\" srcset=\"https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2022\/02\/Selection_1055-300x81.png 300w, https:\/\/www.ume.li\/blog\/wp-content\/uploads\/2022\/02\/Selection_1055.png 752w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Each Component Pack instance requires persistent storage. But I don&#8217;t want to deal with that manually. I installed this nfs<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62,54,23],"tags":[67,71,69,70,68],"class_list":["post-807","post","type-post","status-publish","format-standard","hentry","category-62","category-component-pack","category-connections","tag-component-pack","tag-infrastructure","tag-pv","tag-pvc-connections","tag-storage"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=807"}],"version-history":[{"count":7,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/807\/revisions"}],"predecessor-version":[{"id":816,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/807\/revisions\/816"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}