Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Shine a Light on K8s Blindspots With Komodor and Anodot

Komodor
November 29, 2022

Shine a Light on K8s Blindspots With Komodor and Anodot

Komodor

November 29, 2022
Tweet

More Decks by Komodor

Other Decks in Technology

Transcript

  1. Komodor <> Epsagon | May 2021 Shining a Light on

    K8s Blindspots Nir Shtein, Software Engineer @ Komodor
  2. Investors | January 2021 Investors | January 2021 I’m Nir

    Shtein • Software Engineer at Komodor • The main contributor to ValidKube.com • Open-Source advocate • Kubernetes fan :) Hi, nice to meet you!
  3. Cloud native | March 2021 What challenges does Kubernetes present?

    Scattered data Distributed systems make it harder to understand the effect of a single change Lack of K8s knowledge The knowledge & expertise around K8s is often held by only a few (i.e DevOps). Blind spots Changes are unaudited or hidden
  4. Cloud native | March 2021 "Despite 6 years of progress,

    Kubernetes is still incredibly complex," said Drew Bradstock, product lead for Google Kubernetes Engine (GKE). "What we've seen in the past year or so is a lot of enterprises are embracing Kubernetes, but then they run headlong into the difficulty." And the common thread is: Complexity
  5. Investors | January 2021 Investors | January 2021 Make sure

    to include important metadata: • Labels and annotations • Environment variables • Secrets • Config maps that point to the proper objects and volumes • Configuring liveness probes • Readiness probes Best Practice #1: Maintain a Good YAML Hygiene
  6. Investors | January 2021 Investors | January 2021 Tag and

    label your logs properly, by including the: • Proper service name (not the pod names!) • Version • Cluster environment information • Business-specific data Best Practice #2: Logging - Specifically for K8s
  7. Investors | January 2021 Investors | January 2021 There are

    several ways to separate your K8s environments: Option 1: Create an environment for each stage of the development process (development, QA, staging, production) Best Practice #3: Separate/Segregate Environments
  8. Investors | January 2021 Investors | January 2021 Option 2:

    Create an environment according to namespaces (special K8s resource) Best Practice #3: Separate/Segregate Environments
  9. Investors | January 2021 Investors | January 2021 Best Practice

    #4: Invest in Proper Monitoring Open Source Monitoring Solutions Step 1: Choose the right monitoring solution for your needs. Commercial Monitoring Solutions
  10. Investors | January 2021 Investors | January 2021 Best Practice

    #4: Invest in Proper Monitoring (Cont’d) Step 2: Start monitoring the following metrics: • Resources: CPU / Memory Usage • Container Status: Up / Down / Errors / Probe Data / Restart count • Application Metrics: Application Performance Metrics - APMs Make sure to monitor these metrics in an automated way by setting up proper monitors and alerts
  11. Investors | January 2021 Investors | January 2021 What dark

    areas of Kubernetes can Komodor illuminate? • Multi-cluster visibility • Historical view • Node issues • Deleted pods