<?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 Axual on Medium]]></title>
        <description><![CDATA[Stories by Axual on Medium]]></description>
        <link>https://medium.com/@Axual.com?source=rss-64a0ec88f168------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*NfZUHyUcr_IuMBZcMFDKfw.png</url>
            <title>Stories by Axual on Medium</title>
            <link>https://medium.com/@Axual.com?source=rss-64a0ec88f168------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:42:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Axual.com/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[8 Confluent Alternatives for European Enterprises]]></title>
            <link>https://itnext.io/8-confluent-alternatives-for-european-enterprises-bfa55667b759?source=rss-64a0ec88f168------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfa55667b759</guid>
            <category><![CDATA[data-sovereignty]]></category>
            <category><![CDATA[enterprise-technology]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[data-streaming]]></category>
            <dc:creator><![CDATA[Axual]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 15:49:59 GMT</pubDate>
            <atom:updated>2026-11-18T17:56:48.411Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, our team compare 8 Confluent alternatives and explore how they approach digital sovereignty, open-source compatibility, self-service, governance, and deployment flexibility. Discover which platforms can help European enterprises reduce vendor lock-in and maintain control over their data streaming infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*oH0MtylVYTbIVmwM.png" /></figure><p>As more European organisations evaluate their technology dependencies, Confluent alternatives deserve a closer look, particularly platforms that support open-source Apache Kafka, flexible deployment, self-service and enterprise governance.</p><p>Digital sovereignty has become a major topic across Europe. Governments, public agencies and enterprises are reassessing their dependence on US technology providers, while the European Commission is exploring ways to strengthen Europe’s digital autonomy.</p><p>Much of the conversation focuses on cloud infrastructure, open-source technologies and the importance of having a clear exit strategy. Organisations want greater control over their data, infrastructure and operations without being locked into a single vendor.</p><p>But these considerations should not stop at cloud infrastructure. They also apply to data streaming.</p><p>For organisations running Apache Kafka, choosing a streaming platform is not just about performance, scalability or cost. It is also about who controls the infrastructure, where it can run and how easily the organisation can migrate if its requirements change.</p><p>Vendor lock-in at the data streaming layer can create the same challenges as cloud dependency: proprietary features, complex migrations, limited deployment flexibility and reliance on a single provider.</p><p>Below, we compare 8 Confluent alternatives and related Kafka platforms, examining how they approach sovereignty, open-source compatibility, governance and deployment flexibility.</p><p>1. Aiven for Apache Kafka with Klaw (Finland)</p><p>Aiven provides managed Apache Kafka services across multiple cloud environments. It can be combined with Klaw, an open-source governance and self-service tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*6PeHqEcqBU02n3rQ.png" /></figure><p><strong>Sovereignty and deployment:</strong> Aiven is headquartered in Finland and supports deployment in European cloud regions. Organisations should evaluate the underlying cloud provider and operating arrangements against their sovereignty requirements.</p><p><strong>Self-service and governance:</strong> Klaw provides workflows for managing Kafka topics, schemas and access requests, including approval processes for application teams.</p><p><strong>Open-source compatibility:</strong> Aiven uses Apache Kafka, while Klaw provides an open-source governance layer. This combination can appeal to organisations seeking managed operations with an open-source streaming foundation.</p><h3>2. Redpanda and Redpanda Console</h3><p>Redpanda is a Kafka API-compatible streaming platform built as an alternative to traditional Kafka broker infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*xrWiLOAl_GSione1.png" /></figure><p><strong>Sovereignty and deployment:</strong> Redpanda supports self-managed deployments, including on-premises and private cloud environments, allowing organisations to choose where their streaming infrastructure operates.</p><p><strong>Self-service and governance:</strong> Redpanda Console provides tools for managing topics, access controls and schemas, alongside visibility into streaming operations.</p><p><strong>Open-source compatibility:</strong> Redpanda supports Kafka APIs but uses its own streaming engine rather than Apache Kafka. Its licensing and architecture should therefore be considered separately from fully open-source Kafka distributions.</p><h3>3. Conduktor Platform</h3><p>Conduktor provides a management and governance layer for Kafka environments rather than replacing the underlying Kafka brokers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*wKwAJYtf0QmGRILo.png" /></figure><p><strong>Sovereignty and deployment:</strong> Conduktor can be deployed within an organisation’s own infrastructure, including on-premises and private cloud environments.</p><p><strong>Self-service and governance:</strong> Its Enterprise Gateway supports controls such as schema validation, naming conventions and data masking. It also provides workflows for managing access and governance across Kafka environments.</p><p><strong>Open-source compatibility:</strong> Conduktor works with existing Apache Kafka deployments, allowing organisations to retain their underlying Kafka infrastructure while adding governance capabilities.</p><h3>4. Strimzi on Sovereign Kubernetes infrastructure</h3><p>Strimzi is an open-source project for running Apache Kafka on Kubernetes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*iqboph__Ga131X6_.png" /></figure><p><strong>Sovereignty and deployment:</strong> Organisations can deploy Strimzi on infrastructure they control, including on-premises Kubernetes clusters or European cloud providers such as OVHcloud and Scaleway. This provides flexibility over hosting, operations and infrastructure suppliers.</p><p><strong>Self-service and governance:</strong> Strimzi uses Kubernetes custom resources to manage Kafka clusters and related components. Platform teams can combine these resources with GitOps tools such as Argo CD or Flux to implement provisioning and governance workflows.</p><p><strong>Open-source compatibility:</strong> Strimzi runs Apache Kafka and provides an open-source operational foundation. Organisations retain control over their deployment architecture but also assume responsibility for operating and maintaining the platform.</p><p>For organisations evaluating whether to manage Kafka themselves or use an enterprise platform, while Strimzi simplifies raw Kafka deployment on Kubernetes, scaling it introduces massive engineering overhead for Day-2 operations and enterprise governance, which is why platforms like Axual wrap it in a fully supported, production-ready enterprise shell with 24/7 SLAs.</p><h3>5. Axual (The Netherlands)</h3><p>Axual is a Dutch <a href="https://axual.com/"><strong>enterprise Kafka platform</strong></a> designed for organisations that need to run and govern event streaming across regulated environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ARLkAkZQvpS7PfCe.png" /></figure><p><strong>Sovereignty and deployment:</strong> Axual supports on-premises, private cloud and hybrid infrastructure, giving organisations control over where their streaming infrastructure runs. This makes it relevant for organisations that need to meet specific infrastructure, operational and data sovereignty requirements.</p><p><strong>Self-service and governance:</strong> Axual provides a multi-tenant self-service platform where application teams can create topics, manage schemas and request access. Its Kafka governance capabilities include role-based access controls, approval workflows and audit trails.</p><p><strong>Open-source compatibility:</strong> Axual builds on Apache Kafka and Strimzi, allowing organisations to retain an open-source Kafka foundation rather than depending on a proprietary streaming engine.</p><p>For organisations considering a move away from Confluent, Axual also provides Kafka migration services to support the transition.</p><h3>See Kafka governance in action with Axual</h3><p>Managing Kafka at enterprise scale requires more than running brokers. Platform teams need visibility into who can access data, who owns resources and how changes are approved.</p><p>Axual combines governance with self-service capabilities, allowing application teams to work independently while platform teams maintain oversight.</p><p>The video demonstrates how governance works in practice, including access management, approval workflows and resource ownership.</p><h3>6. Azure Event Hubs and Azure Stream Analytics</h3><p>Azure Event Hubs is Microsoft’s managed event ingestion service, with Kafka protocol support. Azure Stream Analytics provides related stream-processing capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*lvj_DwfgRHooPo5s.png" /></figure><p><strong>Sovereignty and deployment:</strong> Organisations can select European Azure regions and evaluate Microsoft’s EU Data Boundary commitments. However, the underlying infrastructure remains part of Microsoft’s proprietary cloud ecosystem.</p><p><strong>Self-service and governance:</strong> Azure integrates with Microsoft Entra ID and other Azure management services for identity, access control and operational governance.</p><p><strong>Open-source compatibility:</strong> Event Hubs supports Kafka clients through its Kafka-compatible endpoint. However, it does not run Apache Kafka brokers, and Kafka compatibility does not automatically provide full feature or operational portability.</p><h3>7. Cloudera Data Platform Private Cloud</h3><p>Cloudera provides enterprise data platform capabilities, including Kafka-based data streaming, for organisations with complex infrastructure and governance requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*MvujtZFAeIY7sUkZ.png" /></figure><p><strong>Sovereignty and deployment:</strong> Cloudera supports private infrastructure deployments, making it relevant to organisations that need to keep data processing within controlled environments.</p><p><strong>Self-service and governance:</strong> Cloudera’s broader platform includes centralised security, access management and data governance capabilities. Organisations should assess how these capabilities apply specifically to their Kafka workloads.</p><p><strong>Open-source compatibility:</strong> Cloudera’s streaming capabilities are built around Apache Kafka and related data technologies, although the complete platform includes commercial components and management tooling.</p><h3>8. Lenses.io</h3><p>Lenses.io provides a DataOps and governance layer for Kafka environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*kU5xY3i7wGIJvDrs.png" /></figure><p><strong>Sovereignty and deployment:</strong> Lenses can operate alongside Kafka infrastructure deployed within an organisation’s own network or cloud environment.</p><p><strong>Self-service and governance:</strong> It provides tools for exploring streaming data, managing access and supporting operational workflows. These capabilities can help teams work with Kafka while maintaining centralised oversight.</p><p><strong>Open-source compatibility:</strong> Lenses works with Apache Kafka deployments rather than replacing the underlying Kafka brokers. Organisations can therefore retain their existing Kafka infrastructure while adding management and governance functionality.</p><h3>What you need to consider when choosing a Confluent alternative</h3><p>For European organisations evaluating their data streaming infrastructure, the decision should go beyond a feature comparison.</p><h3>Digital sovereignty and infrastructure control</h3><p>Where does the platform run? Who operates it? Can your organisation move it to another infrastructure provider or bring it on-premises?</p><p>Data residency is important, but it is only one aspect of digital sovereignty. Organisations also need to consider operational control, supplier dependencies and the ability to maintain services if commercial or regulatory circumstances change.</p><h3>Open-source compatibility and vendor lock-in</h3><p>Does the platform use Apache Kafka, or does it provide a proprietary streaming engine with Kafka-compatible APIs?</p><p>Both approaches can support event streaming, but they have different implications for portability, operations and migration.</p><p>Organisations should assess which components are open source, which capabilities are proprietary and what would be required to migrate to another platform.</p><h3>Governance and self-service</h3><p>As Kafka adoption grows, platform teams need to manage access, resource ownership, schema changes and operational responsibilities across multiple teams.</p><p>Governance capabilities such as role-based access control, audit trails and approval workflows help organisations maintain control without making every request dependent on central administrators.</p><h3>Migration and long-term costs</h3><p>Migration costs are an important consideration, but so are the ongoing costs of operating and maintaining a streaming platform.</p><p>Organisations should evaluate infrastructure requirements, support, operational complexity, proprietary dependencies and the resources needed to manage the platform.</p><p>An exit strategy should be part of the architecture from the beginning, not something considered only when a contract ends.</p><h3>Why digital sovereignty matters when choosing a Confluent alternative</h3><p>Europe’s growing focus on digital sovereignty is encouraging organisations to reconsider their technology dependencies. While much of the discussion centres on cloud providers, the same principles apply to the platforms responsible for moving data between applications and systems.</p><p>Choosing a Confluent alternative is therefore not simply about replacing one Kafka vendor with another. It is an opportunity to evaluate deployment flexibility, open-source foundations, governance and long-term portability.</p><p>There is no single platform that meets every organisation’s requirements. The right choice depends on the infrastructure, operational capabilities and level of control an organisation needs.</p><p>Did we miss a Confluent alternative?</p><p>This list is not exhaustive, and the data streaming ecosystem continues to evolve.</p><p>If you know of another platform that deserves to be included, particularly one that supports digital sovereignty, open-source compatibility or enterprise Kafka governance, let us know.</p><p>We’re happy to review your suggestion and consider adding it to the list!</p><p><em>Originally written by Lee Sheinberg for Axual</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfa55667b759" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/8-confluent-alternatives-for-european-enterprises-bfa55667b759">8 Confluent Alternatives for European Enterprises</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Delivering SaaS Trial with ArgoCD, GitLab and ActiveCampaign]]></title>
            <link>https://medium.com/@Axual.com/delivering-saas-trial-with-argocd-gitlab-and-activecampaign-171581a8d094?source=rss-64a0ec88f168------2</link>
            <guid isPermaLink="false">https://medium.com/p/171581a8d094</guid>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Axual]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 12:42:58 GMT</pubDate>
            <atom:updated>2021-02-02T13:27:43.787Z</atom:updated>
            <content:encoded><![CDATA[<p>How do you go about designing a system that delivers a smooth SaaS Trial onboarding experience and also puts the Marketing team in control of the entire process? That was the question I faced recently at my workplace, Axual, when it was decided to introduce a fully automated SaaS Trial. There were some clear goals:</p><ul><li>Help the user experience our product as easily as possible</li><li>Allow the Marketing and Sales department to keep track of active trial users and reach out to them when needed.</li><li>Fully automate the flow from user signup to delivering of service and everything in between.</li></ul><p>In this article we will dive into the steps we took and the learnings we had along the way to accomplish these goals, divided into the following sections:</p><ol><li>High Level Onboarding Flow</li><li>Software Stack</li><li>Challenges with the platform</li><li>Designing a Smooth Onboarding</li><li>Leveraging GitOps</li><li>CRM Automation with ActiveCampaign</li><li>GitLab Deployment Pipeline</li></ol><h3>Our Product</h3><p>The Axual Cloud offering provides Streaming-as-a-Service. Customers who are looking to power their business with streaming technology and have chosen to “buy” instead of “build” are our target base. The product consists of a complex setup of Apache Kafka, combination of single and multi-tenant microservices and a self service UI that helps customers manage their streams, applications and connectors in one place.</p><h3>Onboarding Flow</h3><p>Here’s how the customer experiences the SaaS Trial onboarding:</p><p>First, the customer visits the pricing page <a href="http://axual.com/pricing">axual.com/pricing</a> and clicks on “Start Free Trial”. Next they are presented with a sign up form asking for basic information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/0*9bPv9Grv0Ml97U0Q" /></figure><p>Upon successful signup, the customer receives a welcome email and a new entry is added in ActiveCampaign, our CRM system. The request can be either automatically approved or put in a queue awaiting approval. As soon as someone from Sales or Marketing validates and approves the request, an automation flow within the CRM software triggers a call to the GitLab pipeline webhook via Zapier.</p><p>At this point, GitLab pipeline kicks in and provisions a new environment for the customer. We will take a detailed look at the pipeline later. At the end of the pipeline, an ActiveCampaign webhook is called which triggers another email to the customer with their trial environment details. With the information provided in the email, the user can login to Self Service and begin using the product.</p><p>Below is a sequence diagram of the entire flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XCqtZIHn-nCGiKy57f2kLw.png" /></figure><h3>Software Stack</h3><p>We use a myriad collection of software to run Axual Cloud. Services are powered by Microsoft Azure and expanding to AWS. We support deploying directly on VMs via docker images as well as Kubernetes using Helm Charts. CI/CD is happily running with GitLab (SaaS not hosted). All existing and potential customers are managed by CRM software ActiveCampaign.</p><p>Given the amount of automation needed, Kubernetes was a no-brainer. We already had part of the stack running in Amazon EKS clusters which I have described in my <a href="https://itnext.io/optimizing-kafka-cluster-deployments-in-kubernetes-ceda3f95c157">previous blog</a>. Since we want to move our stack entirely in Kubernetes, it made sense to onboard and hopefully converting trial customers to Kubernetes directly.</p><h3>Challenges</h3><h4>Combination of Single and Multi-tenant services</h4><p>A new customer for us is more than just another row in the database. Every onboarding requires provisioning new instances of few microservices that are dedicated for the customer. This is done to increase security and isolation of customer data. It also involves updating other microservices which <em>are</em> multi-tenant and should be prepared to make REST calls to new instances of single-tenant microservices.</p><h4>The Dreaded Mutual TLS</h4><p>Another challenge was dealing with mutual TLS (mTLS for short). I am both proud and sad to say that we use mTLS everywhere. This includes not just communication between microservices (the proud part) but also for user-facing endpoints like Apache Kafka brokers and Rest Proxy (the not-so-proud part).</p><p>The Apache Kafka clusters running in our cloud offering are multi-tenant. We identify different tenants and enforce security using unique CA certificates per customer. For enterprise customers we offer “Bring your own Root CA” and for customers on starter plans, we automatically generate a Root CA. To limit the scope of the trial experience and to keep it simple, we only include automatic generation of Root CA.</p><h4>User Authentication</h4><p>Our Self Service user interface supports multi-tenant authentication with Keycloak. For enterprise customers, we offer integration with different systems like AzureAD, OIDC, SAML etc where Keycloak acts as a proxy. Again, to keep the scope and complexity to a minimum, we decided to only support Keycloak’s own database as the authentication provider.</p><h3>Designing a Smooth Onboarding Experience</h3><p>The solution clearly involves a sequence of steps that must be executed for every SaaS Trial signup request. A natural choice is to use a pipeline of sorts. We were already using GitLab for all our CI/CD pipelines and had decent expertise in writing advanced <em>.gitlab-ci.yaml</em>. So it was decided to build a pipeline that would provision a new environment and perform all the steps necessary to make the environment ready for the customer.</p><p>The pipeline was meant to integrate not just the provisioning of the environment but also the CRM software to ensure relevant updates are sent to the customer automatically.</p><p>Another reason to use the GitLab pipeline was because Git was going to play a central role in the solution.</p><h3>GitOps to the rescue</h3><p>As you might have guessed, deploying to Kubernetes in a safe, repeatable and automated way was crucial. So I set out to research best practices in this area. One pattern immediately became clear: <a href="https://en.wikipedia.org/wiki/Infrastructure_as_code">Infrastructure as Code</a> (IaC), or a specific implementation of it — GitOps. I was already familiar with IaC having migrated our existing Azure infrastructure to Terraform in the previous quarter. The way forward was clear, use a GitOps based tool to roll out dynamic environments.</p><p>A good GitOps tool provides two very important features:</p><ol><li>Entire specification of your system in Git</li><li>A way to automatically sync the specification from Git to your Kubernetes cluster. Any drift should be automatically detected and resynced if necessary.</li></ol><p>There are two open source GitOps tools that are currently popular in the community — FluxCD and ArgoCD. There was also Jenkins X and Spinnaker but it was quickly ruled out as they were big tools with lots of features while our requirements were very specific.</p><p>Eventually we went with ArgoCD mainly because it had multi-cluster and multi-tenancy support, not to mention easy integration with Azure AD. The UI was the cherry on top.</p><h3>Deploying ArgoCD</h3><p>I wanted to apply IaC principles across all levels of our stack. From provisioning an EC2 instance, managed RDS, EKS cluster to deploying our own microservices on top, everything should be GitOps-ified.</p><p>So how do we deploy ArgoCD in an IaC way when ArgoCD itself is needed for IaC of our microservices? To answer this question, it is important to recognize the different categories of applications and their ownership. I have written more about this in <a href="https://itnext.io/the-kubernetes-ownership-model-50802b9f264">The Kubernetes Ownership Model</a>. ArgoCD falls in the category of Infrastructure applications alongside other tools like Nginx Ingress, External DNS etc. that enable our business applications to run properly.</p><p>In my experience, the best way to deploy Infrastructure applications is using Helm Charts. This is because these applications don’t require frequent updates or re-installations. Most of these applications have highly configurable Helm Charts that can be used to quickly deploy including ArgoCD.</p><h3>Configuring ArgoCD with App of Apps Pattern</h3><p>I won’t go into details of ArgoCD concepts as they are covered well in their docs. I will instead describe how we used ArgoCD. We deployed ArgoCD in the same Kubernetes cluster where Trial environments were to be deployed so no specific cluster configuration was needed. The interesting part is the concept of Applications. ArgoCD defines a custom resource definition (CRD) called Application which is basically composed of two things — a source Git repository and a target Kubernetes Cluster. The Git repository would contain the Helm Chart <em>values.yaml </em>of each Trial environment requested by the customer. The target cluster is static and points to the local Kubernetes cluster itself.</p><p>We naturally expect to have lots of environments so a separate Git repository for each would not be scalable. So it was decided to use a branch to represent each environment. The branch would exist as long as the environment is needed and would never be merged. Since there is only one Apache Kafka cluster and 1 Self Service UI needed, these were configured in a special branch called <em>base</em>. We called this Git repository “<strong>saas-trial-env</strong>”.</p><p>Each branch would have a <em>values.yaml</em> of Axual Helm Charts and a <em>secrets.yaml </em>for storing encrypted versions of sensitive configuration. We will talk about it more below.</p><p>The ArgoCD applications itself had to be stored somewhere. So we introduced another Git repository called “<strong>argocd-saas-trial-apps</strong>” which had only one branch <em>master </em>that would hold all CRD specification of each ArgoCD application. Below is a templated example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*URM24-KxBGFaUCVGwHoegg.png" /></figure><p>Each application would be uniquely named to identify the customer who requested it. The <em>source </em>section points to the “<strong>saas-trial-env</strong>” repository, the <em>targetRevision </em>points to the branch in this repository. The <em>destination </em>is the Kubernetes cluster itself.</p><p>Finally, to complete the <em>app-of-apps</em> pattern in ArgoCD, we create a new application CRD spec that points to the “<strong>argocd-saas-trial-apps</strong>” repository itself as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-hMfNbiw8cnz6lSJcGxXCQ.png" /></figure><p>There you have it. Now every time a customer signs up, all we need to do is generate <em>values.yaml</em> and <em>secrets.yaml</em> in a new branch in <strong>saas-trial-env</strong> repository. Then create a new Application CRD spec in <strong>argocd-saas-trial-apps</strong> repository that points to the branch created earlier and let ArgoCD spin up everything magically.</p><p>The <em>secrets.yaml</em> is generated using the <a href="https://github.com/zendesk/helm-secrets">Helm Secrets</a> plugin that internally uses <a href="https://github.com/mozilla/sops">Mozilla SOPS</a>. This plugin has nice integration with various Key Vault systems of Azure and AWS. Before committing to Git, run helm secrets enc secrets.yaml to encrypt the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g6ob0DXJP2UdIh4Q" /></figure><p>Keep in mind not to enable self heal and prune options of automated sync. If an incorrect configuration is applied to Git repository, ArgoCD is unable to parse the configuration and assumes the desired state to be “empty” marking everything for pruning. If auto-prune is turned on, this will delete everything!</p><h3>CRM Automation with ActiveCampaign</h3><p>A user’s signup flow and the backend environment provisioning is connected by ActiveCampaign. This is done by creating automation flows that trigger on certain events like the user completing the sign up form or adding a tag.</p><p>When a user signs up, a notification is sent to Slack channel that is monitored by our Marketing team. They login to ActiveCampaign and verify the user. Depending on the situation they add a “approved” or “rejected” tag on the “Contact” within ActiveCampaign. Addition of a “approved” tag triggers another automation flow that calls a Zapier webhook which in turn calls a GitLab pipeline webhook. The webhook call includes all information filled in by the user in the sign up form. This is used by the pipeline to create a new personalized environment for the user.</p><p>We chose to opt for manual verification because creating a new environment for the user is an expensive operation. This helps us against misuse of the entire setup. As we work towards simplifying the environment creation by using multi-tenant components, the manual verification will be removed at some point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDWu0abaFM-95o8RFC3asQ.png" /></figure><h3>GitLab Deployment Pipeline</h3><p>As described earlier, most of the complexity in the entire setup lay in the environment provisioning pipeline. Because of the complexity of the environment, the pipeline consisted of multiple steps as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TuSRBeWJaYT0sP3i" /></figure><p>There were two design principles guiding us while building the pipeline:</p><ol><li>The pipeline can be triggered by webhook only. Commits and tags do not run a pipeline.</li><li>Each job in the pipeline should be idempotent as much as possible. This ensured that in the event of failure, the pipeline can be resumed or restarted safely.</li></ol><p>The second design principle meant that the state of each pipeline execution must be stored <em>outside </em>of the pipeline. Since most of the state consisted of simple key-value pairs, we chose <a href="https://aws.amazon.com/dynamodb/">AWS DynamoDB</a> to store the state. The Root CA and certificates signed by the Root CA are stored in Azure KeyVault as we were already using it.</p><p>Rest of the pipeline involves checking out Git repository, committing new changes and pushing it so that ArgoCD kicks in and syncs the cluster to the desired state in Git. Other steps involve updating and restarting the multi-tenant components by calling their APIs. Finally a notification is sent on Slack to indicate the environment is created and a callback to ActiveCampaign. A self care package (ZIP file) is also created and uploaded to S3. This contains keystores and Root CA needed by the user to connect to the platform via mTLS.</p><p>The callback to ActiveCampaign kicks in a different automation flow that sends the user an email with the details of their new environment and authentication.</p><h3>Conclusion</h3><p>As you can probably guess, this was a massive undertaking that involved multiple moving parts coming together to deliver an environment within minutes for a customer. It took us a better part of a quarter to build the automated setup. Since then we have had many customer signups and the Kubernetes cluster is holding well.</p><p>Next steps involve resolving some of the challenges mentioned before. Replacing broker mTLS with a different and user-friendly authentication would simplify the pipeline process a lot. The reboot of the Kafka brokers that takes 50% of the pipeline execution time can be skipped. Users won’t need a care package with pre-created certificates for their producer/consumer applications. Another possible improvement would be the replacement of the GitLab pipeline with a more effective workflow software. Provisioning of SaaS Trial environments is one workflow but there are other workflows that need to be implemented like de-provisioning an environment. Once Axual Connect is on-boarded in Kubernetes, provisioning it will be another workflow. The GitLab pipeline may not hold up to these requirements.</p><p>Are you also working on provisioning SaaS environments? Do let me know in the comments about your thoughts. If you are interested in trying Kafka as a Service, sign up for a free trial at <a href="http://www.axual.com/free-trial">www.axual.com/free-trial</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=171581a8d094" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Kafka Cluster Deployments in Kubernetes]]></title>
            <link>https://itnext.io/optimizing-kafka-cluster-deployments-in-kubernetes-ceda3f95c157?source=rss-64a0ec88f168------2</link>
            <guid isPermaLink="false">https://medium.com/p/ceda3f95c157</guid>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[strimzi]]></category>
            <category><![CDATA[kafka-cluster]]></category>
            <dc:creator><![CDATA[Axual]]></dc:creator>
            <pubDate>Mon, 20 Apr 2020 08:44:01 GMT</pubDate>
            <atom:updated>2020-04-20T08:44:01.112Z</atom:updated>
            <content:encoded><![CDATA[<p>We, at <a href="https://axual.com/">Axual</a>, pride ourselves in running high volume, mission critical Apache Kafka clusters for businesses in various domains like Banking and Energy available as SaaS services (Axual Cloud). In order to spend less time managing the infrastructure and more time building cool new features for our customers, we decided to move our stack into Kubernetes. This article explains how running Apache Kafka in Kubernetes is not difficult if you have the right tools and information.</p><p>Over the last few years, Kubernetes has enjoyed a tremendous rise in popularity as the Google Trends graph shows. Not just startups and small companies, even enterprises are now slowly moving towards Kubernetes or an enterprise version of it. Much of this growth is attributable to Containerization with Docker and the buzz of Microservices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*g7-lczpusfI3rOEE" /></figure><p>At its very basic, Kubernetes is a scheduler. It is extremely good at scheduling containers in the most optimum way to allow for efficient usage of VM resources. Kubernetes has without doubt proven itself as the orchestrator of choice for Stateless applications. The adoption path is also well established:</p><ol><li>Compile and build the artifacts.</li><li>Alter it as per 12-factor recommendations.</li><li>Wrap it inside a container with Docker</li><li>Let Kubernetes orchestrate and schedule your containers.</li></ol><p>But the story is very different when it comes to Stateful applications.</p><h3>Stateful Applications</h3><p>If your application is anything more than a web application, you probably have to deal with run-time state. However, when does an application become stateful? Ask yourself the question: Can I replace an instance of my application with another? Can I load-balance the request against multiple copies of the application without errors? Before you answer yes, think carefully about what your application is storing in memory or on disk. Is that data changing at run-time? Would your application break if this data were to be lost in the event of replacement by another instance? If so, you have a stateful application.</p><p>To properly orchestrate stateful apps, Kubernetes came up with a new resource definition <strong>StatefulSet</strong> (earlier known as PetSet) in version 1.5 back in late 2016. The StatefulSet, when used correctly can be used to run stateful applications in Kubernetes. In this post, we will try to understand what it takes to run Apache Kafka (a stateful application) in Kubernetes.</p><h3>Apache Kafka as Stateful Application</h3><p>Apache Kafka, a real-time streaming solution is a complex stateful application. It has</p><ul><li>Brokers with identity. Replacing a broker is not as simple as replacing a pod.</li><li>Dependency on ZooKeeper — another stateful application that powers Kafka’s distributed behaviour.</li><li>Persistent storage. Due to replication, it is possible to lose this data and recover but it should not be considered standard operation especially if large volumes are being handled.</li></ul><p>If you are considering running Apache Kafka in Kubernetes in 2020, you don’t need to set it up yourself! There are options available like Strimzi. Let’s take a look at how Strimzi Kafka Operator makes running Kafka in Kubernetes easy.</p><h3>Strimzi Operator</h3><p>Strimzi is Kubernetes Operator for deploying Kafka clusters. It defines a Custom Resource Definition (CRD) called “Kafka” which represents a combination of ZooKeeper and Kafka Cluster. A very simple example of Kafka deployment in Kubernetes would be as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5IuGmwn6nTumekCj" /></figure><p>The above configuration will setup a 3 node ZooKeeper cluster, 3 broker Kafka cluster with a 100Gi persistent disk attached. This effectively translates to StatefulSets for Kafka and ZooKeeper, headless service to be able to access individual brokers directly (instead of load balanced).</p><h3>Effective Day 2 Operations</h3><p>As you can see it is very easy to get started with deploying a Kafka cluster in Kubernetes. But what guarantees stability and resilience when upgrades and maintenance needs to be done on the Kafka cluster?</p><p>Kubernetes provides many resources that can be used to deploy any application in a more resilient way. Let’s see how Strimzi makes use of them.</p><h3>Pod Disruption Budgets</h3><p>Any application that is considered critical and cannot accept downtime (planned or otherwise) must define a Pod Disruption Budget (PDB). A PDB tells Kubernetes how many pods of this application are allowed to be disrupted. When Kubernetes cluster administrator performs a maintenance action like node draining (kubectl drain), the action will respect all PDBs configured and only remove pods if disruption budget allows it.</p><p>Strimzi adds two PDBs each for ZooKeeper and Kafka. Let’s take a look at the Kafka PDB:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*36xrJSyremlVQzdH" /></figure><p>The PDB above states that amongst all broker pods of Kafka, only 1 can be unavailable at any given time. So if you have 3 Kafka brokers on 3 distinct nodes, any attempt to drain more than 1 node will be blocked as it goes against the defined PDB. This is customizable to a higher value for large Kafka clusters.</p><h3>Network Policies</h3><p>Network Policies can be used to describe rules that determine which applications are allowed to connect to other applications on a higher abstraction level. Strimzi defines network policies for ZooKeeper (to be only accessed by Kafka) and for Kafka (different listener ports accessible to different entities).</p><p>Below is a default network policy defined by Strimzi for Kafka:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i0U-xZ_pCnA95iNw" /></figure><p>The replication port 9091 is only accessible to other Kafka brokers and operators defined within Strimzi to perform administration tasks. The plain text port 9093 and TLS port 9094 is not restricted to any application.</p><p>Note that Kubernetes only provides a Network Policy interface. The implementation is left to the administrator of the cluster. For instance, you can install a CNI plugin like Calico to implement the network policies in a cluster. Without such a plugin these network policies have no effect!</p><h3>Rack Awareness</h3><p>Configuring rack correctly in Kafka is very important for multiple reasons. Kafka uses rack configuration to determine where the partition replicas will end up. For instance if you have 6 Kafka brokers across 3 different availability zones (or racks) spread evenly (2 in each zone). When a topic with replication factor of 3 is created, Kafka will choose brokers that are in different zones. In this case, it will ensure no zone has more than 1 replica. This ensures maximum availability.</p><p>Strimzi allows configuring rack in Kafka brokers as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vl20MhNKOxOjWWIp6d-Jwg.png" /></figure><p>The topologyKey is a label that must exist on all nodes of the Kubernetes cluster. Most cloud managed clusters like EKS, AKS and GKE provide this by default. In case of EKS, the rack value passed to Kafka broker would be something like eu-central-1a.</p><p>Strimzi uses the above rack configuration to ensure each Kafka broker pod is also spread across all availability zones. It does it using a Kubernetes concept called Affinity. Let’s take a look at that.</p><h3>Affinity</h3><p>As an orchestrator, Kubernetes does scheduling. Schedulers deal with the basic question: “Where to run the pod?”. Sometimes you want certain pods to be on the same (or different) machine than another application pod. For instance, two applications that communicate a lot of data can be co-located on the same node to keep the traffic local. Or you want an application pod to be on a specific node which has higher CPU and memory. Such scenarios can be handled in Kubernetes using Affinity.</p><p>There are two types of Affinity: <strong>NodeAffinity </strong>— used to answer the question “Which node to run this pod on?” and <strong>PodAffinity (or PodAntiAffinity) </strong>— used to answer the question “Should this pod run in the same/different node as this <em>other </em>pod?” Both determine the node where the pod will run but the rules are based on nodes in former and pods in latter.</p><p>Strimzi defines both Node and Pod Affinity if rack configuration is enabled. Below is an example of NodeAffinity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FiEK0WnkVwtSONe8Cyn8vw.png" /></figure><p>Above configuration might look complex but it is simple to follow. It tells the Kubernetes scheduler that the Kafka broker pods <em>must </em>be scheduled on Nodes that have a label with key <strong>failure-domain.beta.kubernetes.io/zone. </strong>So your worker nodes must have this label present. For managed clusters like EKS, AKS and GKE, this is already available.</p><p>The unusually long configuration item <strong>requiredDuringSchedulingIgnoredDuringExecution </strong>implies the rule should be <strong>strictly </strong>enforced when scheduling new Kafka broker pods (<em>requiredDuringScheduling)</em> but go easy on any already running Kafka broker pods found on a node that does not meet this criteria (<em>ignoredDuringExecution)</em>.</p><p>Below is an example of PodAntiAffinity defined by Strimzi when rack is enabled:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xNJ9opnLVRGNmuPEfK9RFQ.png" /></figure><p>To explain this configuration, let’s walk through scheduling 3 Kafka broker pods:</p><ol><li>When scheduling broker1, scheduler will attempt to run the pod on a node in say availability zone AZ1. The affinity configuration above says check if there is already a Kafka broker pod running (based on strimzi.io labels) on this node and if such a pod is <em>not</em> running (AntiAffinity), then schedule broker1 on AZ1 which will succeed,</li><li>Next scheduler attempts to schedule broker2 on node AZ1 but this time it finds the broker1 pod already running. So this node is skipped and a different node AZ2 is found and broker2 is scheduled.</li><li>Step 2 is repeated for broker3 to be scheduled on AZ3.</li></ol><p>What if you had a 4th broker to also be scheduled? Which node would that end up on? Here the configuration item <strong>preferredDuringSchedulingIgnoredDuringExecution </strong>becomes important. It implies that the affinity rule is <em>preferred </em>but not mandatory. So when scheduling the 4th broker, the rule will not be satisfied (assuming there are only 3 unique AZs) but scheduled on some node anyway.</p><h3>Health Checks</h3><p>No application deployment in Kubernetes can be considered production ready without proper health checks configured. Kubernetes allows you to configure two checks — liveness probe and readiness probe.</p><p>Liveness probe is used to determine when to restart the pod. Common probe solutions are TCP port check or HTTP GET call. If the pod is not responding for a certain interval, it will be restarted.</p><p>Readiness probe is used to determine when pods should start receiving traffic. This is done by adding the pod in the backend of the Service responsible for traffic to these pods.</p><p>In the case of Kafka, the distinction between Liveness and Readiness probes is important. Kafka starts the listeners but that is not the confirmation that it is ready to serve clients. This may be due to out of sync replicas that need to catch up with other brokers. If the broker is managing thousands of partitions, this syncing process could take minutes. Hence it is important to set the readiness probe for Kafka correctly. Remember, both Liveness and Readiness probes must be set.</p><h4>Liveness Probe</h4><p>Strimzi uses a custom bash script to test the listener on replication port (9091) using netstat. When this liveness probe is successful, it indicates that Kafka has started correctly and the replication listener is activated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qJ0ekCCM6CAmSV9o14ZZsg.png" /></figure><h4>Readiness Probe</h4><p>Setting up a readiness probe for Kafka is tricky. When is Kafka broker ready to serve clients? When the broker starts, it performs many operations like obtaining cluster metadata from ZooKeeper, synchronizing with the controller, log sanity checks, gain leadership of partitions, synchronize the replicas to join the ISR list of partitions and some more. Most of these activities happen after the listener has started, so while the broker is “live”, it is not yet “ready”.</p><p>When the broker is finally ready to serve requests from clients, it reports this via a JMX metric kafka.server:type=KafkaServer,name=BrokerState. Strimzi checks this metric in the readiness probe to determine when Kafka broker is ready to receive traffic. This is done in a Java agent which polls this metric and once the desired state is reached, writes a file to disk which is then checked for existence by the Readiness probe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Ou-xa5yRVS_Uj0LFqRoWA.png" /></figure><p>Having correct probes setup ensures that rolling upgrades of Kafka brokers would have zero downtime.</p><h3>Conclusion</h3><p>In this post we saw how running a stateful application like Kafka in Kubernetes is a challenge. Let’s recap what we learnt.</p><ol><li>Use operators like Strimzi when running Kafka in Kubernetes</li><li>Don’t underestimate the importance of maintaining and running a stateful application in Kubernetes.</li><li>Make effective use of Kubernetes resources like Pod-disruption budgets, Network policies, Affinities and Health Checks.</li></ol><p>With proper understanding of the various Kubernetes constructs, it is possible to run Kafka safely and reliably. Good luck!</p><h3>About</h3><figure><img alt="Abhinav Sonar" src="https://cdn-images-1.medium.com/max/500/1*p86c5OE5tJjEQgwRAm0q1w.jpeg" /><figcaption>Abhinav Sonar, Software Engineer @<a href="https://medium.com/u/64a0ec88f168">Axual</a></figcaption></figure><p>This article is written by<a href="https://www.linkedin.com/in/abhinavsonkar/"> Abhinav Sonkar</a>, team member of Axual.</p><p>We are a club of enthusiasts with a passion for technology. Every day we challenge ourselves to push the boundaries in our profession and our quality.</p><p>That is how Axual was created. From the aim to make streaming simple. With Axual we put every company in the data driver. Our software enables situational awereness across the organization.</p><p>We are happy to take you through our process of learning, innovating, failing and improving through these blogs.</p><p>Want to know more? Read our blogs or visit <a href="http://www.axual.com/">www.axual.com</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nft9Zasu8TwMwnD-bDMVtw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ceda3f95c157" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/optimizing-kafka-cluster-deployments-in-kubernetes-ceda3f95c157">Optimizing Kafka Cluster Deployments in Kubernetes</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>