<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Soumyajit Das on Medium]]></title>
        <description><![CDATA[Stories by Soumyajit Das on Medium]]></description>
        <link>https://medium.com/@smjtgamer?source=rss-74877f084b45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fRFkkZ6iJrhkVh2r</url>
            <title>Stories by Soumyajit Das on Medium</title>
            <link>https://medium.com/@smjtgamer?source=rss-74877f084b45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:22:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@smjtgamer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploying Portworx on IBM Cloud Kubernetes Service using Terraform]]></title>
            <link>https://medium.com/@smjtgamer/deploying-portworx-on-ibm-cloud-kubernetes-service-using-terraform-8a94bb4e4419?source=rss-74877f084b45------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a94bb4e4419</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[ibm-cloud]]></category>
            <category><![CDATA[portworx]]></category>
            <category><![CDATA[helm]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Soumyajit Das]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 10:46:29 GMT</pubDate>
            <atom:updated>2020-01-06T10:46:29.159Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Overview of Portworx</strong></p><p>Portworx is a highly available software-defined storage solution that you can use to manage local persistent storage for your containerized databases and other stateful apps, or to share data between pods across multiple zones.</p><p>Lets start with creating a cluster on IBM Cloud Kubernetes Service. Go to <a href="https://cloud.ibm.com/kubernetes">https://cloud.ibm.com/kubernetes</a></p><p>IBM Cloud Kubernetes Service provides bare metal worker node flavors that are optimized for <a href="https://cloud.ibm.com/docs/containers?topic=containers-planning_worker_nodes#sds">software-defined storage (SDS) usage</a>. These flavors also come with one or more raw, unformatted, and unmounted local disks that you can use for your Portworx storage layer. Use a multizone cluster of atleast <a href="https://cloud.ibm.com/docs/containers?topic=containers-update#machine_type">Ubuntu 18 x3c</a> with 3 or more worker nodes.</p><p>Non-SDS worker nodes can be virtual or bare metal. If you want to use virtual machines, use a worker node flavor of b3c.16x64 or better. But you must <a href="https://cloud.ibm.com/docs/containers?topic=containers-portworx#create_block_storage">add raw, unformatted, and unmounted block storage</a> before you can use these machines. If using non sds follow these additional steps for manually adding block storage and attach it to worker nodes. If using sds then you can skip these steps and continue from Setting up database for Portworx metadata</p><ol><li><a href="https://cloud.ibm.com/docs/containers?topic=containers-utilities#block_storage_attacher">Install the IBM Cloud Block Volume Attacher plug-in</a>.</li><li>If you want to add block storage with the same configuration to all your worker nodes, <a href="https://cloud.ibm.com/docs/containers?topic=containers-utilities#automatic_block">automatically add block storage</a> with the IBM Cloud Block Volume Attacher plug-in. To add block storage with a different configuration, add block storage to a subset of worker nodes only, or to have more control over the provisioning process, <a href="https://cloud.ibm.com/docs/containers?topic=containers-utilities#manual_block">manually add block storage</a>.</li><li><a href="https://cloud.ibm.com/docs/containers?topic=containers-utilities#attach_block">Attach the block storage</a> to your worker nodes.</li></ol><h3><strong>Setting up database for Portworx metadata</strong></h3><p>To set up your key-value store, you have the following two options:</p><ul><li><a href="https://cloud.ibm.com/docs/containers?topic=containers-portworx#portworx-kvdb">Automatically set up a key-value database (KVDB) during the Portworx installation</a></li><li><a href="https://cloud.ibm.com/docs/containers?topic=containers-portworx#databases-for-etcd">Set up a Databases for etcd service instance</a></li></ul><p>We will be using database for etcd for storing metadata for portworx</p><p>Set up a <a href="https://cloud.ibm.com/docs/services/databases-for-etcd?topic=databases-for-etcd-getting-started">Databases for etcd</a> service instance in your cluster and note down the username, password, certificate and etcd endpoints from the etcd service credentials.</p><p>After completing all these steps, now we can start with deploying Portworx in the cluster on the namespace kube-system</p><p><strong>Initialise your IBM kubernetes cluster with helm and kubernetes provider</strong></p><pre>data &quot;ibm_container_cluster_config&quot; &quot;clusterConfig&quot; {</pre><pre>cluster_name_id = &quot;your-cluster-name&quot;</pre><pre>}<br></pre><pre>provider &quot;helm&quot; {</pre><pre>service_account = &quot;default&quot;</pre><pre>namespace       = &quot;kube-system&quot;</pre><pre>kubernetes {</pre><pre>config_path = &quot;${data.ibm_container_cluster_config.clusterConfig.config_file_path}&quot;</pre><pre>}</pre><pre>}</pre><p><strong>Create a kubernetes Secret that will contain the portworx secrets.</strong></p><p>Convert all certificate, username and password to base64 format before pasting.</p><pre>resource &quot;kubernetes_secret&quot; &quot;example&quot; {</pre><pre>metadata {</pre><pre>name      = &quot;px-etcd-certs&quot;</pre><pre>namespace = &quot;kube-system&quot;</pre><pre>}</pre><pre>data = {</pre><pre>&quot;ca.pem&quot; = &quot;the etcd cerificate value in base64&quot;</pre><pre>username = &quot;the username in base64&quot;</pre><pre>password = &quot;the etcd password in base64&quot;</pre><pre>}</pre><pre>type = &quot;Opaque&quot;</pre><pre>}</pre><p>Alternatively you can also use IBM key protect service to store portworx secret</p><p>Now the final step for installing Portworx in your cluster we will deploy the helm chart containing portworx installation. Ensure you have proper rolebindings in your cluster for helm to work properly. <a href="https://cloud.ibm.com/docs/containers?topic=containers-portworx#install_portworx">https://cloud.ibm.com/docs/containers?topic=containers-portworx#install_portworx</a></p><pre>resource &quot;helm_release&quot; &quot;test&quot; {</pre><pre>name        = &quot;terrahelm&quot;</pre><pre>namespace   = &quot;kube-system&quot;</pre><pre>crepository = &quot;https://raw.githubusercontent.com/IBM/charts/master/repo/community/&quot;</pre><pre>chart       = &quot;portworx&quot;</pre><pre>wait        = true</pre><pre>depends_on  = [&quot;kubernetes_secret.example&quot;]</pre><pre>set {</pre><pre>name  = &quot;etcd.secret&quot;</pre><pre>value = &quot;px-etcd-certs&quot;</pre><pre>}</pre><pre>set {</pre><pre>name  = &quot;kvdb&quot;</pre><pre>value = &quot;etcd:${var.etcd_endpoint}&quot;</pre><pre>}</pre><pre>set {</pre><pre>name  = &quot;clusterName&quot;</pre><pre>value = &quot;name of the cluster&quot;</pre><pre>}</pre><pre>}</pre><p>After deploying this chart portworx will be successfully installed in this cluster. Now you can create portworx volumes and mount it to your apps, or explore other portworx features.</p><p>You can find more information about <a href="https://github.com/IBM-Cloud/terraform-provider-ibm"><strong>IBM Cloud Terraform provider</strong> </a>resources <a href="https://ibm-cloud.github.io/tf-ibm-docs/"><strong>here</strong></a>. Please give it a try and let us know your comments!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a94bb4e4419" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>