3

GitHub - IBM/operator-sample-go: Kubernetes Operator Samples using Go, the Opera...

 1 year ago
source link: https://github.com/IBM/operator-sample-go
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Kubernetes Operator Patterns and Best Practises

This project contains Kubernetes operator samples that demonstrate best practices how to develop operators with Golang, Operator SDK including Kubebuilder and the Operator Lifecycle Manager Framework.

Getting started

The repo contains two operators:

  1. Application operator: Deploys and manages a simple microservice application.
  2. Database operator: Deploys and manages a simple database. Used by the application.

red_circle IMPORTANT: The easiest way to get started is to run the application operator locally which uses prebuilt images of the database controller, the microservice and all other required components. Follow the getting started instructions.

Additionally the repo contains four more components:

  1. Simple micorservice managed by the application operator
  2. Database service managed by the database operator
  3. Database controller extension to automatically backups of data
  4. Application controller extension to automatically scale up the microservice

Run the application operator:

Run the database operator:

Documentation

Overview and Scenarios

Basic Capabilities

Advanced Capabilities

Development and Deployment

Golang

To start developing operators, we recommend to get familiar with the Kubernetes Operator Metamodel first.

Resources


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK