Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Kubernetes in Production Best Practices for SaaS

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome Aly & Murat!

I'm wondering what are the best practices for running Kubernetes in Production for SaaS use cases?

Thank you,
Lucian Revnic
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you asking how to integrate Kubernetes with existing SaaS services or are you asking how to implement a SaaS in Kubernetes?
 
Lucian Revnic
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Greg,

Mainly on best practices for developing SaaS application on Kubernetes.

For instance, best practices for tenat isolation, network isolatiom, RBAC, noisy neighbour handling.

Thank you,

Lucian R
 
Author
Posts: 9
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Greg,

Your question was my motivation to start writing my book when I tried to answer it a year ago. There is no short answer to the question, however, I covered the foundational best practices that are common for most of the applications types that are running on k8s (especially SaaS apps).

As you mentioned one of the most challenging areas for SaaS apps is multi-tenant management and isolation. From my experience which I summarized in chapter 2 in my book is your strategy in handling your cluster decomposition. There are two main approaches here, first is the hard isolation which you can gain by hosting each tenant on its own cluster, this approach is more secure but less common due to cost and operational overhead reasons, the other approach is using a shared cluster with soft isolation using namespaces, this approach is the most common one but it requires hardening cluster security by enabling cluster RBAC across the cluster and at namespace-level, in addition to enforcing resources limits/quotas per namespace and down to the pod-level, adding network policies with Calico to block communication between namespaces by default, and finally having a policy gateway.
In addition to the security best practices mentioned in chapter 6 of the book, such as deploying Falco for security runtime monitoring, executing automated security tests, and periodically scan the cluster for security misconfiguration or vulnerabilities.
 
Oh the stink of it! Smell my tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic