/math-controller

FizzBuzz問題を解くKubernetesのカスタムコントローラー

Primary LanguageGo

math-controller

If you assign a number to the value of the 「Number」 resource, math-controller solves 「Fizzbuzz」 problems

Installation

Install base components Use kubectl

kubectl apply -f https://github.com/ymktmk/math-controller/releases/download/v1.0.9/math-controller.yaml

Usage

Deploy Kind: Number

apiVersion: math.ymktmk.github.io/v1beta1
kind: Number
metadata:
  name: number-sample
spec:
  value: 10

RBAC

Since it has a cache mechanism, even if only Get is called on implementation, List and Watch are required as resource access privileges.

Reference

KubernetesのCRDまわりを整理する。

Kubernetesに無限の可能性を生み出す「Operator」「CRD」「カスタムコントローラー」とは

カスタムコントローラーの基礎

【Wantedly】Custom Controllerを使ってK8sを学ぶハンズオン

CustomControllerを手抜きで作る技術

CustomControllerを作ってデプロイ開始と終了の検知を実現した話

CyberAgent Kubernetes基盤における運用フローのController化と継続的な改善

k8sのカスタムリソースで、CronJobの終了を検知してJobを実行する

Kubernetes Casual Talk 〜Ubie、CA、メルペイのカスタムコントローラー〜