EuroPython 2016

Managing Kubernetes from Python using Kube

Speaker(s) David Charles

Abstract

Docker has had a transformative influence on the way we deploy software and Kubernetes, the Google Borg inspired control plane for Docker-container- hosting-clusters, is gaining similar momentum. Being able to easily interact with this technology from Python will become an increasingly important capability in many organisations. I’ll discuss what the motivations behind writing Kube. We’ll dive into Kube using the Python interactive interpreter, getting connected to the API, and simple viewing and label update operations. Finally I’ll discuss more advanced resource management activities like Kube’s ‘watch’ API capability.

Objectives

Attendees will learn about the key concepts in getting resource information out of their Kubernetes cluster using Kube.

Outline

  1. Setting the scene (3 minutes)
  2. Other Python kubernetes wrappers (2 minutes)
  3. Kubernetes concepts quick recap (5 minutes)
  4. Dive into Kube in the Python interactive interpreter (10 minutes)
    • Outline prerequisites
    • The entry point - a Cluster instance
    • Views and Items - two important Kube concepts
    • Item meta data: labels and versions
  5. More Kube features (5 minutes)
    • Creating and deleting resources
    • Using Kube’s Watch API support
    • The cluster proxy attribute for when you need to get at the actual API.
  6. Q&A (5 minutes)

in on Monday 18 July at 14:15 See schedule

Do you have some questions on this talk?

New comment