Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The Kubernetes Operator Framework Book

You're reading from   The Kubernetes Operator Framework Book Overcome complex Kubernetes cluster management challenges with automation toolkits

Arrow left icon
Product type Paperback
Published in Jul 2022
Publisher Packt
ISBN-13 9781803232850
Length 328 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Michael Dame Michael Dame
Author Profile Icon Michael Dame
Michael Dame
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Part 1: Essentials of Operators and the Operator Framework
2. Chapter 1: Introducing the Operator Framework FREE CHAPTER 3. Chapter 2: Understanding How Operators Interact with Kubernetes 4. Part 2: Designing and Developing an Operator
5. Chapter 3: Designing an Operator – CRD, API, and Target Reconciliation 6. Chapter 4: Developing an Operator with the Operator SDK 7. Chapter 5: Developing an Operator – Advanced Functionality 8. Chapter 6: Building and Deploying Your Operator 9. Part 3: Deploying and Distributing Operators for Public Use
10. Chapter 7: Installing and Running Operators with the Operator Lifecycle Manager 11. Chapter 8: Preparing for Ongoing Maintenance of Your Operator 12. Chapter 9: Diving into FAQs and Future Trends 13. Chapter 10: Case Study for Optional Operators – the Prometheus Operator 14. Chapter 11: Case Study for Core Operator – Etcd Operator 15. Other Books You May Enjoy

Setting up your project

The first step in starting a fresh Operator project is to initialize an empty project structure. First, create an empty project directory with mkdir nginx-operator and cd into it. Now, initialize a boilerplate project structure with the following:

operator-sdk init --domain example.com --repo github.com/example/nginx-operator

Note

This command may take a few moments to complete the first time it is run.

This command sets up a lot of different files and folders that will be filled in with the custom APIs and logic for the Operator we are building. The once-empty project directory should now contain the following files:

~/nginx-operator$ ls
total 112K
drwxr-xr-x   12 mdame staff  384 Dec 22 21:07 . 
drwxr-xr-x+ 282 mdame staff 8.9K Dec 22 21:06 .. 
drwx------    8 mdame staff  256 Dec 22 21:07 config
drwx------    3 mdame staff   96 Dec 22 21:06 hack
-rw--...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image