Kubernetes Programming with Go
eBook - ePub

Kubernetes Programming with Go

Programming Kubernetes Clients and Operators Using Go and the Kubernetes API

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Kubernetes Programming with Go

Programming Kubernetes Clients and Operators Using Go and the Kubernetes API

Book details
Table of contents
Citations

About This Book

This book begins by introducing the structure of the Kubernetes API and which operations it serves. Following chapters demonstrate how to write native Kubernetes resources definitions using Go structures defined in the API and API Machinery libraries. Miscellaneous utilities are described to help you work with different resource fields and to convert your resource definitions to or from YAML or JSON. Next, you will learn how to interact with the Kubernetes API server to create, delete, update, and monitor resources in a cluster using the client-go library. A complete chapter is devoted to tools provided to test your programs using the client-go library. An example follows to wrap up the first part of the book, describing how to write a kubectl plugin. Next, you will learn how to extend the Kubernetes API using Custom Resource Definitions, and how to write Kubernetes resources in a generic way as well as how to create your own resources using the unstructured concept. The next chapters delve into the controller-runtime library, useful for extending Kubernetes by writing operators, and the kubebuilder framework, which leverages this library, to help you start writing operators in minutes. After reading this book, you will have a deep understanding of the Kubernetes API's structure and how Kubernetes resources are organized within it, and have at your disposal a complete toolbox to help you write Kubernetes clients and operators.

What You Will Learn

  • Understand how the Kubernetes API and its resources are organized
  • Write Kubernetes resources in Go
  • Create resources in a cluster
  • Leverage your newly-gained knowledge to write Kubernetes clients and operators

Who is this Book for:

Software engineers and (Site Reliability Engineers) SREs wishing to write Kubernetes clients and operators using the Go language.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Kubernetes Programming with Go by Philippe Martin in PDF and/or ePUB format, as well as other popular books in Computer Science & Open Source Programming. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Apress
Year
2022
ISBN
9781484290262

Table of contents

  1. Cover
  2. Front Matter
  3. 1. Kubernetes API Introduction
  4. 2. Kubernetes API Operations
  5. 3. Working with API Resources in Go
  6. 4. Using Common Types
  7. 5. The API Machinery
  8. 6. The Client-go Library
  9. 7. Testing Applications Using Client-go
  10. 8. Extending Kubernetes API with Custom Resources Definitions
  11. 9. Working with Custom Resources
  12. 10. Writing Operators withthe Controller-Runtime Library
  13. 11. Writing the Reconcile Loop
  14. 12. Testing the Reconcile Loop
  15. 13. Creating an Operator with Kubebuilder
  16. Back Matter