<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Morteza Khazamipour</title>
    <description>The latest articles on DEV Community by Morteza Khazamipour (@mkhazamipour).</description>
    <link>https://dev.to/mkhazamipour</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F192518%2Fc27a195c-fd0c-4419-b739-fe80d0658d9c.jpeg</url>
      <title>DEV Community: Morteza Khazamipour</title>
      <link>https://dev.to/mkhazamipour</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mkhazamipour"/>
    <language>en</language>
    <item>
      <title>Create your own Platform-As-A-Service(PaaS) Based on Kubernetes</title>
      <dc:creator>Morteza Khazamipour</dc:creator>
      <pubDate>Sat, 23 Apr 2022 23:28:59 +0000</pubDate>
      <link>https://dev.to/mkhazamipour/create-your-own-platform-as-a-servicepaas-based-on-kubernetes-kfc</link>
      <guid>https://dev.to/mkhazamipour/create-your-own-platform-as-a-servicepaas-based-on-kubernetes-kfc</guid>
      <description>&lt;p&gt;Hi, I'm Morteza, and here is a little about me.&lt;br&gt;
In 2018 my colleagues and I started a side project start-up called &lt;a href="//fandogh.cloud"&gt;fandogh&lt;/a&gt;. It was the first public PaaS based on Kubernetes in Iran. I had to work on the identical product again but this time based on OpenShift, Which is slightly different than Kubernetes. I worked for three more years on a PaaS product and gained lots of experience in what a Platform-as-a-Service needs. In this blog post series, I will share the challenges a PaaS might face when dealing with public users, what are the corner cases and the lots of fun I had on this journey. &lt;/p&gt;

&lt;p&gt;At first, we have to classify PaaS delivery methods.&lt;br&gt;
In my opinion, there are two types of PaaS:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Running already built container image.&lt;/li&gt;
&lt;li&gt;Building source code and creating container image, then running it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Examples for the first one are Azure Container Service or DigitalOcean Apps.&lt;br&gt;
For the second method, the very famous one, is Heroku. DigialOcean Apps also builds and runs from the source code.&lt;/p&gt;

&lt;p&gt;In Container Services(PaaS), we support both methods, and You can run your container directly or build your source code and run it in our container service cloud.&lt;/p&gt;

&lt;p&gt;Well, that's enough for the introduction. Let's start by comparing OpenShift and Kubernetes.&lt;/p&gt;

&lt;p&gt;OpenShift added some extra features to Kubernetes, But from the inside, it is Kubernetes. Let me explain by examples.&lt;/p&gt;

&lt;p&gt;Imagine you have a PaaS, and your first customer signs up for the service. First, you need to set a default quota for the newly registered user. OpenShift does this by templating it is supporting. You can set a default template for a newly registered user. It can consist of many resources, like default quota for a namespace or default NetworkPolicy for any registered namespace.&lt;/p&gt;

&lt;p&gt;The registered user must have limited access to the cluster only to his namespace and no way to privilege his access. OpenShift automatically assigns the user to a "restricted" group when a user signs up. You can edit what is "restricted" group is capable of in SCCs(SecurityContextConstraints).&lt;/p&gt;

&lt;p&gt;So, for now, OpenShift handled two main problems a PaaS could face. But we will implement the same features with the help of open-source projects, secure our platform, and build it on raw Kubernetes.&lt;/p&gt;

&lt;p&gt;End of Part 1&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>sre</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
