Giter Site home page Giter Site logo

sde-control's Introduction

Learning the kubernetes operator

Prerequisites

go version 1.19+

Docs:

Tutorial: https://book.kubebuilder.io/cronjob-tutorial/gvks.html

Resources:

https://opensource.com/article/22/9/packaging-job-scripts-kubernetes-operators https://betterprogramming.pub/build-a-kubernetes-operator-in-10-minutes-11eec1492d30 https://cloudark.medium.com/kubernetes-operators-and-helm-it-takes-two-to-tango-3ff6dcf65619#:~:text=Helm%20and%20Operators%20are%20complementary,managing%20application%20workloads%20on%20Kubernetes.

Arguments for Operator:

https://developer.ibm.com/learningpaths/why-when-kubernetes-operators/summary/

Example of Cloud Native PG:

https://github.com/cloudnative-pg/cloudnative-pg/blob/main/docs/src/bootstrap.md

Operations

Steps to Initialize a Kubebuilder project (incomplete):

kubebuilder init --domain sde.domain --repo sde.domain/sdeController
kubebuilder create api --group sde-controller --version v1beta1 --kind SdeController

Steps to deploy demo:

  1. Make sure your Kubeconfig is set to the right context and cluster
  2. Change the namespace attribute of ./config/default/kustomization.yaml file to match your namespace
  3. Build and install the controller Custom Resource to your cluster:
make build
make install
  1. Build and Deploy the controller container:
export IMG=docker-dev.sdelements.com/dev_sde/sde-controller:0.0.1
make docker-build
make docker-push
make docker-deploy
  1. Deploy an instance of the SDE Custom resource:
kubectl apply -f config/samples/ --namespace <your namespace>

sde-control's People

Watchers

Allen Ji avatar

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.