<?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 EEE on Medium]]></title>
        <description><![CDATA[Stories by EEE on Medium]]></description>
        <link>https://medium.com/@eeenotes?source=rss-c5fe2666f0f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*NYPRqmMaNu9OfNiX27Acdg.jpeg</url>
            <title>Stories by EEE on Medium</title>
            <link>https://medium.com/@eeenotes?source=rss-c5fe2666f0f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:36:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eeenotes/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[Containerizing CF]]></title>
            <link>https://medium.com/@eeenotes/containerizing-cf-be4ebb81cf0f?source=rss-c5fe2666f0f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/be4ebb81cf0f</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-foundry]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[EEE]]></dc:creator>
            <pubDate>Sun, 15 Mar 2020 00:42:16 GMT</pubDate>
            <atom:updated>2020-03-21T14:02:43.340Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Project Quarks and KubeCF</strong></h4><blockquote><em>Originally posted in </em><a href="https://eeenotes.com/#containerizingcf"><strong>https://eeenotes.com/#containerizingcf</strong></a></blockquote><p>The following is a compilation of some thoughts and technical knowledge I have gathered since the inception of project Quarks back in 2018. The idea behind project Quarks is merely to containerize <strong>CF</strong>(<em>Cloud Foundry</em>) in a native container application approach.</p><p>If you are familiar with CF or <strong>Kubernetes</strong>, the following might be of your interest.</p><h3><strong>Concepts</strong></h3><p><strong>Kubernetes</strong> is the tool of choice in the Cloud Industry for deploying platforms, see <a href="https://kubernetes.io/">k8s</a>.</p><p><strong>CF</strong> is a PaaS focused on the developer experience rather than in the underlying infrastructure. The main selling point is the <strong>cf push </strong>experience(s<em>ee </em><a href="https://www.youtube.com/watch?v=oUpqXxmr6oU&amp;feature=emb_logo"><em>CF</em></a>)</p><p><strong>SCF</strong> is a release engineering repository that allows you to deploy a containerized CF on Kubernetes. SCF was created by SUSE and is the predecessor of <em>Quarks</em>.</p><p><a href="https://github.com/cloudfoundry-incubator/cf-operator"><strong>Quarks</strong></a><strong> </strong>(<em>also known as </em><strong>cf-operator</strong>) is a set of Kubernetes controllers and <a href="https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/">CRDs</a> that operate based on an instance of a <a href="https://github.com/cloudfoundry-incubator/cf-operator/blob/master/docs/examples/bosh-deployment/boshdeployment-with-service.yaml">BOSHDeployment</a> CRD. Quarks transform´s a cf-deployment <a href="https://github.com/cloudfoundry/cf-deployment/blob/master/cf-deployment.yml">manifest</a> into Kubernetes resources. These Kubernetes resources represent a CF instance.</p><p><strong>Kubecf</strong> is a package, that bundles CF into a helm chart, in other words is like a package manager for deploying CF on Kubernetes.</p><h3><strong>BOSH, Kubernetes and CF</strong></h3><figure><img alt="Keeping Cloud Native Classy, from the NA KubeCon" src="https://cdn-images-1.medium.com/max/960/1*UZHd3GYDeZYzaIXYbsMZEw.jpeg" /><figcaption><a href="https://www.flickr.com/photos/143247548@N03/49084380198/in/album-72157711835777083/"><em>Image</em></a><em> adapted </em>from <a href="https://www.flickr.com/photos/143247548@N03/">Cloud Native Computing Foundation</a>(<a href="https://creativecommons.org/licenses/by-nc/2.0/">CC BY-NC 2.0</a>)</figcaption></figure><p>In the CF world, so far <a href="https://bosh.io/docs/">BOSH</a> has been the tool of choice for the deployment and lifecycle management of CF. BOSH, a powerful tool for the orchestration of CF, has enabled the <a href="https://bosh.io/docs/create-release/">standardization</a> of the CF deployment by defining a common way for packaging and exposing each component. The caveat, however, is that BOSH is heavily VM(<em>Virtual Machine</em>) biased.</p><p>With the raise of application containers, and Kubernetes being the platform of choice in the industry, there was a big question for CF, how to deploy it on Kubernetes?. While there were different attempts on how to achieve this, Project Quarks is to my knowledge the most predominant option because of several reasons:</p><ul><li>A strong background on containerizing CF<em>(e.g. </em><a href="https://github.com/SUSE/scf"><em>SCF</em></a><em>)</em></li><li>BOSH Manifest parity<em>(it originally started as a BOSH incubation project)</em></li><li>Highly mutable<em>(e.g. can integrate with CF components that are Kubernetes native)</em></li><li>Provides you with a certified CF to deploy on your production environments.</li></ul><p>One cannot speak about Project Quarks without understanding the background or main ideas that lead to it, which points back to SCF. At the same time, I personally spent significant amounts of time working with the SCF implementation, and from my experience it is worth explaining some pieces of it.</p><h3><strong>SCF</strong></h3><figure><img alt="SUSE engineers during a CF Summit" src="https://cdn-images-1.medium.com/max/1024/1*JHctiEl_uENWrWpHpMHmqw.jpeg" /><figcaption><a href="https://developer.ibm.com/blogs/history-cloud-foundry-2/">Image</a> adapted from <a href="https://www.maximilien.org/">maximilien.org</a></figcaption></figure><p><strong>SCF</strong> is a release engineering repository, consisting of YAML files and two binaries (<a href="https://github.com/cloudfoundry-incubator/fissile"><em>fissile</em></a><em> &amp; </em><a href="https://github.com/cloudfoundry-incubator/configgin"><em>configgin</em></a>), where operators(<em>engineers</em>) could describe a BOSH <a href="https://github.com/cloudfoundry/cf-deployment/blob/master/cf-deployment.yml">manifest</a>(<em>to some extent</em>) that will be transformed into helm charts and docker images.</p><p>The SCF helm charts (<em>see </em><a href="https://github.com/SUSE/scf/releases/tag/2.20.3"><em>assets</em></a>) consist of two charts: one is aimed to be deployed in the <strong>uaa</strong> namespace, and the other one is aimed to be deployed into the <strong>cf</strong> namespace(<em>I think SUSE calls it </em><strong>scf</strong><em> namespace</em>). The cf namespace, hosts all control plane components(<em>e.g. capi,diego,routing,etc</em><strong>)</strong>. The purpose of this separation is to support multiple CF clients within a single uaa instance.</p><p>It is relevant to know that, at this point, SCF provides you with a production-ready CF, which is used by different companies, offering CF on top of Kubernetes.</p><p>Now that we have a more structured idea of what SCF is, we can focus on understanding some of the caveats of its implementation, which can be seen as <strong>lessons learned</strong> in the journey of containerizing CF, caveats that Project Quarks leverage. Some of the SCF implementation caveats are:</p><h4><strong>YAMLS and Inmutable Configuration</strong></h4><p>While I like YAMLs and I had quite previous experience finding ways to override them, SCF didn´t provide an out-of-the-box way to modify them (<em>e.g. BOSH</em><a href="https://bosh.io/docs/cli-ops-files/"><em> ops-files</em></a><em> support</em>). One requires some level of ingenuity to come up with a proper mechanism to override YAMLs consistently. At the same time, pieces of the YAMLs configuration is embedded into the containers during<strong> run-time</strong> but is only configurable during <strong>build-time</strong>. This makes it almost impossible to make modifications once your containers are running, forcing you to re-build if you want to modify something.</p><h4><strong>Build Time vs Run Time</strong></h4><p>Build-time is focused on the generation of helm-charts and docker images based on YAMLs. Run-time is focused on running your containers, while triggering a set of processes during initialization, e.g. rendering bosh ERB files via configgin.</p><p>The Build-time lifetime is too long(<em>more than one hour</em>), leading to painful experiences for any misconfiguration spotted during runtimes. For an individual error one hour isn´t too much, but when you deal with YAML files of more than 4000 lines, you are prone to errors.</p><h4><strong>Lifecycle Management</strong></h4><p>SCF was all about building and deploying, but it did not act on your CF instance once this was running. In other words, any modification to a Kubernetes resource generated from the SCF helm charts will be overridden on a restart/deletion of that resource. The only way of persisting changes is helm, lacking of an automated lifecycle management for CF.</p><h4><strong>Dependencies management</strong></h4><p>While <strong>configgin</strong> and <strong>fissile</strong> are great tools (<em>part of their algorithms were ported/used in Quarks</em>), building images and helm charts implies keeping some synchrony between configgin(<em>inside the stemcell</em>) and fissile, raising the need of knowing which versions to use for each specific SCF release.</p><h3><strong>Quarks and KubeCF</strong></h3><figure><img alt="From the KubeCon China" src="https://cdn-images-1.medium.com/max/1024/1*EETsS2S3SVv7imWR6_RWjw.jpeg" /><figcaption><a href="https://www.flickr.com/photos/143247548@N03/48145638721/in/album-72157709241579017/"><em>Image</em></a><em> adapted </em>from <a href="https://www.flickr.com/photos/143247548@N03/">Cloud Native Computing Foundation</a>(<a href="https://creativecommons.org/licenses/by-nc/2.0/">CC BY-NC 2.0</a>)</figcaption></figure><p>In the last years, SUSE, IBM and SAP have been developing both Quarks and KubeCF as an evolution of the previous SCF implementation. Quarks has already shipped a <a href="https://github.com/cloudfoundry-incubator/cf-operator/releases/tag/v3.2.0">v3.2.0</a> stable release, while KubeCF has a <a href="https://github.com/cloudfoundry-incubator/kubecf/releases/tag/v1.0.0">v1.0.0</a> release. Therefore, it is important to highlight the strong dependency between them.</p><p>Quarks is a set of Kubernetes controllers and CRD´s distributed around different github repositories(<em>see </em><a href="https://github.com/cloudfoundry-incubator/cf-operator"><em>cf-operator</em></a><em> and </em><a href="https://github.com/cloudfoundry-incubator/quarks-job"><em>quarks-job</em></a>). Without going into much detail, the main takeaway from the Quarks mechanics is that the entry point to trigger the whole conversion of a CF manifest into Kubernetes resources happens throughout the definition of a <em>BOSHDeployment</em> CRD(<em>see an example in </em><a href="https://github.com/cloudfoundry-incubator/cf-operator/blob/v3.2.0/docs/examples/bosh-deployment/boshdeployment.yaml#L48-L59"><em>here</em></a>). Another important takeaway, is that the Quark´s helm <a href="https://github.com/cloudfoundry-incubator/cf-operator/releases/tag/v3.2.0">chart</a> will only install the Quark´s controllers in your cluster. Only with this chart, you will not get a running CF.</p><p>KubeCF can be used to create the above Kubernetes CRD instance alongside all other Kubernetes resources referenced in the same instance. KubeCF generates a CF base manifest and a set of ops-files inside proper Kubernetes resources that the Quarks controllers can understand(<em>e.g. configmaps and secrets</em>). In the above <a href="https://github.com/cloudfoundry-incubator/cf-operator/blob/v3.2.0/docs/examples/bosh-deployment/boshdeployment.yaml#L48-L59">example</a>, <strong><em>spec.manifest</em></strong> defines the base YAML, and <strong><em>spec.ops</em></strong> a list of ops-files to interpolate on top(<em>sounds familiar right?</em>).</p><p><strong>Note</strong>: <em>The above is a very simple explanation of the BOSHDeployment controller mechanics, there are more controllers and different CRD instances to define, but this is done automatically on-the-fly by Quarks controllers. Most importantly, you do not need to worry about this, while KubeCF abstracts this from you, it exposes all configurable parts throughout it´s </em><a href="https://github.com/cloudfoundry-incubator/kubecf/blob/master/deploy/helm/kubecf/values.yaml"><em>values.yaml</em></a><em> file. Also, KubeCF will install the Quark´s helm chart for you.</em></p><p><strong>Bonus</strong>: <em>If you dislike helm v3(e.g. because of old Tiller trauma</em>s<em>), you can apply all KubeCF templates directly with </em><strong><em>kubectl.</em></strong></p><h3><strong>Quarks Implementation Highlights</strong></h3><figure><img alt="A bag with a kubernetes logo" src="https://cdn-images-1.medium.com/max/954/1*7by9ftkvbY4ZueDUyQiVag.jpeg" /><figcaption><a href="https://www.flickr.com/photos/143247548@N03/49102541888/in/album-72157711835777083/"><em>Image</em></a><em> adapted </em>from <a href="https://www.flickr.com/photos/143247548@N03/">Cloud Native Computing Foundation</a>(<a href="https://creativecommons.org/licenses/by-nc/2.0/">CC BY-NC 2.0</a>)</figcaption></figure><p>Project Quarks delivered the first <strong>v1.0</strong> release at the end of last year. Here is a list of some of the main implementation highlights of Quarks:</p><h4><strong>Supports the same BOSH standardisation mechanism, a BOSH manifest(</strong><em>see cf-deployment</em><strong>) as the way to define CF</strong></h4><blockquote><em>Quarks started as a BOSH incubation project. Having the same YAML syntax opens a better possibility for future migrations to CF on Kubernetes.</em></blockquote><h4><strong>Support for BOSH ops-files</strong></h4><blockquote><em>This a great feature, especially because depending on your Infrastructure provider, a lot of the base configuration requires modifications, or additions of customize features.</em></blockquote><h4><strong>Building docker images</strong></h4><blockquote><em>Contrary to SCF, you just need a single </em><strong><em>fissile</em></strong><em> subcommand, to build docker images per component. See the KubeCF </em><a href="https://github.com/cloudfoundry-incubator/kubecf/blob/de2f4411e7dd5e0cdfdae913019b8b9af23e5fb9/doc/bosh-release-development.md#building-a-docker-image-with-fissile"><em>docs</em></a><em>. If the KubeCF images are not enough for you, you can setup a pipeline that builds all images per cf-deployment version, based on your customized stemcell.</em></blockquote><h4><strong>Uses </strong><em>state-of-the-art </em><strong>Kubernetes concepts</strong></h4><blockquote><em>While not everything requires Kubernetes controllers, the complexity of CF on Kubernetes and all of the knowledge gathered by platform operators throughout years of managing CF, perfectly fitted on a Controller Pattern approach. Therefore, Project Quarks is composed of several controllers and CRDs to manage the lifecycle of a CF instance on Kubernetes.</em></blockquote><h4><strong>The Quarks controllers live on independent repositories</strong></h4><blockquote><em>While this is not a finalized process, the ideas is to contribute these controllers back to Kubernetes community. An example of this is the</em><a href="https://github.com/cloudfoundry-incubator/quarks-job"><em> quarks-job</em></a><em>, which was originally inside the </em><strong><em>cf-operator</em></strong><em> repository, but later isolated into its own repository.</em></blockquote><h4><strong>Supports integration with CF components that are Kubernetes native</strong></h4><blockquote><em>This is a great feature because it allows the integration of component teams with a Kubernetes native implementation. The Project implemented the so called </em><strong><em>Quarks Links</em></strong><em> or </em><strong><em>Entanglements</em></strong><em>(</em>see entaglements <a href="https://github.com/cloudfoundry-incubator/cf-operator/blob/2b2b7cde44abcd1aa0a5eeb92da7f43ed229a1ce/docs/entanglements.md">docs</a><em>), allowing you to integrate with other components that are not BOSH release based. You can see other on-going efforts related to this topic, like the eirini release </em><a href="https://github.com/cloudfoundry-incubator/kubecf/issues/47"><em>integration</em></a><em>.</em></blockquote><h4><strong>Build-times and run-times</strong></h4><blockquote><em>Build-times are just about building your CF component images and pushing them to a registry, nothing else. All of the components configuration happens during </em><strong><em>run-time</em></strong><em>, so you do not longer need to worry about misconfigurations and repeating the whole build/run cycle.</em></blockquote><h4><strong>Kubecf is the </strong><em>de facto</em><strong> release engineering repository for installing CF via Quarks</strong></h4><blockquote><em>The installation boils down to running two separate helm chart installations(</em>quarks and kubecf charts<em>). Kubecf allows you to override the default setup, either via the </em><strong><em>values.yml </em></strong><em>for the Kubecf chart, or by placing a new set of </em><strong><em>ops-files.</em></strong></blockquote><h4><strong>One operator many CF instances</strong></h4><blockquote><em>The quarks operator was designed to operate multiple CF instances at the same time. You can deploy the quarks operators followed by multiple KubeCF charts, in different namespaces.</em></blockquote><h4><strong>Deployment times are significantly reduced</strong></h4><blockquote><em>A good consequence of running all BOSH components with </em><a href="https://bosh.io/docs/bpm/bpm/"><em>bpm</em></a><em> is that it ends up in a smaller footprint for the whole CF. With the current KubeCF charts, you can get a running CF in 30 minutes or less(</em>using the default KubeCF docker images<em>).</em></blockquote><h4><strong>Deployment modes</strong></h4><blockquote><em>One of the best features of KubeCF is that you can take the helm charts and deploy them locally in </em><strong><em>minikube</em></strong><em> or </em><strong><em>kind</em></strong><em>. This is great for any type of test because enables you to control everything from you local machine, without the need of external infrastructure.</em></blockquote><h4><strong>No nested containers</strong></h4><blockquote><em>Project Quarks allowed you to switch the application scheduler(</em>diego vs eirini<em>) via a </em><strong><em>feature flag</em></strong><em> in the helm charts. If you want to do it for Quarks, see eirini enable </em><a href="https://github.com/cloudfoundry-incubator/kubecf/blob/master/deploy/helm/kubecf/values.yaml#L217"><em>flag</em></a><em>.</em></blockquote><h3><strong>The future</strong></h3><figure><img alt="Beginning of a technical talk" src="https://cdn-images-1.medium.com/max/1024/1*bw916i0v1i_37Lb98XJuRA.jpeg" /><figcaption><a href="https://www.flickr.com/photos/143247548@N03/49098437561/in/album-72157711835777083/"><em>Image</em></a><em> adapted </em>from <a href="https://www.flickr.com/photos/143247548@N03/">Cloud Native Computing Foundation</a>(<a href="https://creativecommons.org/licenses/by-nc/2.0/">CC BY-NC 2.0</a>)</figcaption></figure><p>Moving Cloud Foundry to Kubernetes has been a highly discussed topic over the last several years(<em>elephant time</em>), but only few in the CF community have really give it a try and succeed with a maintainable/scalable approach.</p><p>Technologies like Eirini have played an important role in the large-scale implementation of a containerized CF by fitting together with technologies like Quarks(<em>at the right time</em>), providing a more container native implementation and reducing the <strong>footprint </strong>of the whole CF architecture.</p><p>How the Kubernetes landscape will evolve is uncertain; it is too wide and everyone can build their own tooling, leading to none standardization when it comes to building complex cloud native applications. Containerize Cloud Foundry is not the exception.</p><p>Additionally, the Quarks implementation is highly mutable(<em>e.g. </em><strong><em>quarks links</em></strong>), then together with KubeCF, these two tools provide a solid landscape for all CF components to integrate via a container native implementation approach.</p><h3>Deploying CF in k8s with Quarks</h3><p>While this post was not intended to illustrate the steps to run CF with the above technologies, if your desire(<em>most probably</em>) is to get your hands dirty on this containerized technologies, go to see a digestable <a href="https://starkandwayne.com/blog/running-cloud-foundry-on-kubernetes-using-kubecf/">tutorial</a> from <strong>Stark &amp; Wayne</strong>. Also, see the official <a href="https://kubecf.suse.dev/docs/">documentation</a> from KubeCF.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be4ebb81cf0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>