Giter Club home page Giter Club logo

the-kubernetes-operator-framework-book's Introduction

The Kubernetes Operator Framework Book

The Kubernetes Operator Framework Book

This is the code repository for The Kubernetes Operator Framework Book, published by Packt.

A comprehensive guide to accelerating DevOps culture adoption with Terraform, Azure DevOps, Kubernetes, and Jenkins

What is this book about?

From incomplete collections of knowledge and varying design approaches to technical knowledge barriers, Kubernetes users face various challenges when developing their own operators. Knowing how to write, deploy, and pack operators makes cluster management automation much easier and that's what this book is here to teach you.

This book covers the following exciting features:

  • Understand the basics of infrastructure as code patterns and practices
  • Get an overview of Git command and Git flow
  • Install and write Packer, Terraform, and Ansible code for provisioning and configuring cloud infrastructure based on Azure examples
  • Use Vagrant to create a local development environment
  • Containerize applications with Docker and Kubernetes
  • Apply DevSecOps for testing compliance and securing DevOps infrastructure
  • Build DevOps CI/CD pipelines with Jenkins, Azure Pipelines, and GitLab CI
  • Explore blue-green deployment and DevOps practices for open sources projects

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
 name: sample
spec:
 replicas: 2

Following is what you need for this book: If you are an application developer or a system administrator interested in understanding continuous integration, continuous delivery, and containerization with DevOps tools and techniques, this book is for you. Knowledge of DevOps fundamentals and Git principles is required.

With the following software and hardware list you can run all code files present in the book (Chapter 1-11).

Software and Hardware List

Chapter Software required OS required
1-11 Kubernetes (kubectl) Windows, Mac OS X, and Linux (Any)
1-11 Git Windows, Mac OS X, and Linux (Any)
1-11 Docker Windows, Mac OS X, and Linux (Any)
1-11 Kind Windows, Mac OS X, and Linux (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Code in Action

Click on following link to see the Code in Action:

Youtube link

Related products

Get to Know the Author

Michael Dame is a software engineer who has several years of experience working with Kubernetes and Operators. He is an active contributor to the Kubernetes project, especially on the Scheduler and Descheduler projects. With a degree in Computer Science from Rensselaer Polytechnic Institute, he has worked on the Kubernetes control plane and Operators as a senior engineer at Red Hat. He is currently working with Google on Google Cloud Platform.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781803232850

the-kubernetes-operator-framework-book's People

Contributors

damemi avatar hammingweight avatar knabben avatar packt-itservice avatar sapuni avatar shruthis-shetty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

the-kubernetes-operator-framework-book's Issues

Reconciler error

I am facing error while deploying sample-cr.yaml


2023-10-13T14:56:53Z	INFO	setup	starting manager
2023-10-13T14:56:53Z	INFO	controller-runtime.metrics	Starting metrics server
2023-10-13T14:56:53Z	INFO	starting server	{"kind": "health probe", "addr": "[::]:8081"}
2023-10-13T14:56:53Z	INFO	controller-runtime.metrics	Serving metrics server	{"bindAddress": "127.0.0.1:8080", "secure": false}
I1013 14:56:53.595292       1 leaderelection.go:250] attempting to acquire leader lease nginx-operator-system/a7e021da.example.com...
I1013 14:56:53.629060       1 leaderelection.go:260] successfully acquired lease nginx-operator-system/a7e021da.example.com
2023-10-13T14:56:53Z	DEBUG	events	nginx-operator-controller-manager-7dd7b9f8b4-j8ccj_95e9ff77-e889-4905-9c46-8b7668bc2efa became leader	{"type": "Normal", "object": {"kind":"Lease","namespace":"nginx-operator-system","name":"a7e021da.example.com","uid":"8e8e3396-e7a8-41ce-9d8d-b59e8f080f2d","apiVersion":"coordination.k8s.io/v1","resourceVersion":"58857"}, "reason": "LeaderElection"}
2023-10-13T14:56:53Z	INFO	Starting EventSource	{"controller": "nginxoperator", "controllerGroup": "operator.example.com", "controllerKind": "NginxOperator", "source": "kind source: *v1alpha1.NginxOperator"}
2023-10-13T14:56:53Z	INFO	Starting EventSource	{"controller": "nginxoperator", "controllerGroup": "operator.example.com", "controllerKind": "NginxOperator", "source": "kind source: *v1.Deployment"}
2023-10-13T14:56:53Z	INFO	Starting Controller	{"controller": "nginxoperator", "controllerGroup": "operator.example.com", "controllerKind": "NginxOperator"}
2023-10-13T14:56:53Z	INFO	Starting workers	{"controller": "nginxoperator", "controllerGroup": "operator.example.com", "controllerKind": "NginxOperator", "worker count": 1}
2023-10-13T14:58:08Z	ERROR	Reconciler error	{"controller": "nginxoperator", "controllerGroup": "operator.example.com", "controllerKind": "NginxOperator", "NginxOperator": {"name":"cluster","namespace":"nginx-operator-system"}, "namespace": "nginx-operator-system", "name": "cluster", "reconcileID": "578044a5-ca09-499e-b425-bb5292d27814", "error": "get operator condition name: could not determine operator condition name: environment variable OPERATOR_CONDITION_NAME not set"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.