Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic