k8s-operator指北


0. 參考

0.1 operator-sdk、k8s-controller、operator

https://www.tailored.cloud/kubernetes/write-a-kubernetes-controller-operator-sdk/
https://github.com/cnych/opdemo
https://www.tailored.cloud/kubernetes/simple-custom-kubernetes-controller/

https://github.com/bitnami-labs/kubewatch

k8s控制器寫法
https://github.com/piontec/k8s-demo-controller

寫k8s 用戶自定義controller.
https://medium.com/@cloudark/kubernetes-custom-controllers-b6c7d0668fdf
https://engineering.bitnami.com/articles/kubewatch-an-example-of-kubernetes-custom-controller.html
https://engineering.bitnami.com/articles/a-deep-dive-into-kubernetes-controllers.html
https://github.com/double12gzh/k8s-controller-demo.git
https://github.com/kubernetes/sample-controller/blob/master/docs/controller-client-go.md

https://medium.com/@cloudark/kubernetes-operators-when-how-and-the-gotchas-to-keep-in-mind-b13be9830346

controller代碼理解

1. operator-sdk

1.1. 實戰(operator-sdk)

https://github.com/operator-framework/operator-sdk/blob/master/doc/user-guide.md#add-a-new-custom-resource-definition
https://www.qikqiak.com/post/k8s-operator-101/

1.2. 如何本地遠程調試服務器上的Operator

a. 在服務器上執行export WATCH_NAMESPACE=default
b. 在服務器上執行dlv --listen=:2345 --headless=true --api-version=2 exec ./build/_output/bin/lanjie-operator-local --check-go-version=false --
c. 設置goland

2. kubebuilder

2.1 實戰(kubebuilder)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM