VOOZH about

URL: https://thenewstack.io/deploy-stateful-workloads-on-kubernetes-with-ondat-and-fluxcd/

⇱ Deploy Stateful Workloads on Kubernetes with Ondat and FluxCD - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-11-09 08:51:33
Deploy Stateful Workloads on Kubernetes with Ondat and FluxCD
contributed,sponsor-ondat,sponsored,sponsored-post-contributed,
Kubernetes / Software Development

Deploy Stateful Workloads on Kubernetes with Ondat and FluxCD

GitOps provides a single source of truth for Kubernetes manifests, preventing configuration drift, allowing easy rollbacks and changes to production safely.
Nov 9th, 2022 8:51am by Lewis Edginton
👁 Featued image for: Deploy Stateful Workloads on Kubernetes with Ondat and FluxCD
Image via Pixabay.
Ondat sponsored this post.
With the ever increasing growth in Kubernetes adoption, enterprises are increasingly adopting GitOps to deploy their workloads to Kubernetes. Deploying secure, cloud native stateful applications requires a high level of performance across hybrid and multi-cloud environments. Using the scalable, highly performant storage provided by Ondat in combination with FluxCD, you can shift left security and accelerate software development. Using Weave GitOps Trusted Delivery to deploy Ondat, platform teams can easily provide consistency and speed up the time it takes to deploy Kubernetes clusters. GitOps allows users to use git as their single source of truth for their Kubernetes manifests, thus preventing configuration drift, allowing easy rollbacks in case of issues and empowering any engineer to make changes to production in a controlled, safe manner. In this tutorial, I am going to use FluxCD to manage Kubernetes workloads, and will be focussing on how we achieve this using this toolset, but this approach would easily adapt to other solutions. For more information regarding setting up FluxCD and its capabilities, which are many, feel free to take a look at the following links: We follow a similar approach to repository structure as that suggested in the final link above, so all examples will be based around this. FluxCD supports Helm deployments out of the box (https://fluxcd.io/flux/components/helm/). This is also the recommended approach for deploying Ondat, so we will be using this method.
Ondat delivers persistent storage volumes directly onto any Kube node. If your data is locked-in to one platform, so is your cluster. With Ondat you are free to put your applications and your data storage where you want. Ensuring industry-leading levels of performance, resilience and dependability.
Learn More
The latest from Ondat

Getting Started with Ondat

The first step is to sign up to Ondat and create a cluster object in the portal: 👁 Image
Once completed, you will obtain a Helm command to install Ondat on your cluster. This is what we will base the next step upon. 👁 Image
First, we create a namespace, as we like to keep the Helm objects in the same place as Ondat itself:
---
apiVersion: v1
kind: Namespace
metadata:
 labels:
 name: storageos
 name: storageos
As part of our `foundation` directory, we define the following HelmRepository object:
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
 name: ondat
 namespace: storageos
spec:
 interval: 1m
 url: https://ondat.github.io/charts
As well as the following `HelmRelease` object:
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
 name: ondat
 namespace: storageos
spec:
 releaseName: ondat
 chart:
 spec:
 chart: ondat
 version: 0.2.1
 sourceRef:
 kind: HelmRepository
 name: ondat
 namespace: storageos
 interval: 5m
 install:
 remediation:
 retries: 3
 valuesFrom:
 - kind: Secret
 name: ondat-secret
 valuesKey: client-secret
 targetPath: ondat-operator.cluster.portalManager.secret
 values:
 ondat-operator:
 cluster:
 portalManager:
 enabled: true
 clientId: clientID
 apiUrl: "https://portal-setup-7dy4neexbq-ew.a.run.app"
 tenantId: tenantID
 etcd-cluster-operator:
 cluster:
 replicas: 3
 storage: 6Gi
 resources:
 requests:
 cpu: 100m
 memory: 300Mi

The values section is where we can define any parameters we may need to changes as available in the values.yaml file belonging to the Helm chart. (https://github.com/ondat/charts/blob/main/charts/umbrella-charts/ondat/values.yaml) Note that we have defined the value for ondat-operator.cluster.portalManager.secret as a reference to a Kubernetes secret in the example above. Kubernetes secrets are a vast topic in themselves, far too large for discussion in this blog post, but it is highly recommended to store this information in a secure manner. You will need to copy the values for `tenantID` and `clientID` from the Helm command you see in your portal to ensure the portal manager is able to register itself correctly. Also note that we have pinned the chart version, due to the nature of what Ondat does, upgrades should be performed carefully and thus we recommend pinning the version at this time. Once this is applied, we can see the status of the HelmRelease using `flux get all -n storageos`.
NAME READY MESSAGE REVISION SUSPENDED
helmrepository/ondat True Fetched revision: b2b49a5abead5f29bb7622a460c888d64fc8f351dcd5dac60eebd95e2e0a7122 b2b49a5abead5f29bb7622a460c888d64fc8f351dcd5dac60eebd95e2e0a7122 False

NAME READY MESSAGE REVISION SUSPENDED
helmchart/storageos-ondat True Pulled 'ondat' chart with version '0.2.1'. 0.2.1 False

NAME READY MESSAGE REVISION SUSPENDED
helmrelease/ondat True Release reconciliation succeeded 0.2.1 False

We can also perform an additional check to ensure we’re ready to use Ondat by running `kubectl get storageClass` and checking there is now an entry for `storageos`. Finally, we need to apply a license to the newly provisioned cluster by returning to the portal and selecting the license we desire. At this point we are ready to deploy our stateful workloads in a GitOps-controlled manner! Join us for a live webinar on Nov. 16 at 8 a.m. PT/4 p.m. GMT on “Deploying Stateful Applications Securely and Confidently with Ondat and Weave GitOps.” Register here
Ondat delivers persistent storage volumes directly onto any Kube node. If your data is locked-in to one platform, so is your cluster. With Ondat you are free to put your applications and your data storage where you want. Ensuring industry-leading levels of performance, resilience and dependability.
Learn More
The latest from Ondat
TRENDING STORIES
A versatile engineer, having worked at a number of UK startups including Starling Bank, Lewis Edginton has years of experience in the cloud, software development and delivery industry.
Read more from Lewis Edginton
Ondat sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.