Developing Operators with the Kubernetes Operator Pythonic Framework (kopf) - Sergey Vasilyev

preview_player
Показать описание


Developing Operators with the Kubernetes Operator Pythonic Framework (kopf) - Sergey Vasilyev, Zalando SE

The Kubernetes operator pattern has revolutionized the way applications are deployed and managed in Kubernetes, but much of the tooling around building operators has focused on easing development in Golang. The Kubernetes Operator Pythonic Framework (kopf) levels the playing field, bringing much of the tooling to the Python ecosystem, and expanding it in several areas. Kopf provides powerful, high-level abstractions that make it simple to write Kubernetes operators in Python, allowing you to focus on your application logic without needing to dive headfirst into Kubernetes internals. In this talk, you will learn how to make your own Kubernetes operators in a few lines of Python code, and how to bring your own domain entities directly to Kubernetes.

Рекомендации по теме
Комментарии
Автор

26:29 - I'm in exactly the same situation. I guess what he meant to ask was "does all Operator communication happens via REST, in which case language is irrelevant, or are there any cases where Go code would be running by Kubernetes itself?" For instance, PostgreSQL would support Perl and Python UDFs, but not Javascript, so when developing for PostgreSQL it could be advantageous to use one of those. While Mongo would support custom JavaScript functions, so it's best to use JS. In the case of Kubernetes it doesn't really matter since everything goes via REST. I would guess one advantage of using Go would be ability to import and re-use code of Kubernetes itself - but if we are limiting ourself to just the SDK, then there's no real difference. Python, Go or 'curl' would look the same from the cluster pov - and it's all about the developer's convenience.

not_a_human_being