Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
33いいね 1326回再生

It's all about reconciliation - anatomy of a kubernetes controller, Federico Paolinelli

GoWayFest 4.0, Online – July 11-12, 2020
It's all about reconciliation - anatomy of a kubernetes controller, Federico Paolinelli

In this talk I’ll demystify the concepts behind writing a Kubernetes controller, explaining what the key components are and how to leverage them to write a Kubernetes native application.

Developing a native kubernetes app goes around two simple concepts: defining new data structures (custom resources) and delivering a kubernetes component that handles those structures.
Despite that, doing the first steps can be intimidating: how do we define (and consume) new resources? How about interacting with existing resources defined by somebody else? How do I even find their Go definition?

In this talk, I’ll introduce:
how to interact with kubernetes custom resource using non type safe clients
how to leverage the code generation to avoid casting errors and reduce the proliferation of boilerplate code
how informers, workqueues and other powerful tools make it possible to implement a bullet proof event loop

Finally, I’ll describe the operator-sdk, a framework that makes the implementation of a controller even simpler and more automated.
The audience will walk away with a solid understanding on how the codebase of a kubernetes controller looks like, how to read it and how to leverage the tools required to be able to write a kubernetes controller.

Slides – drive.google.com/file/d/1F-311RzYD4caW-_3sOxrNzcgF…

コメント