](https://static.chishengliu.com/posts/kubernetes-operator-sample-controller/cover/cover.png)
How to Write a Kubernetes Operator Using client-go
What is client-go? client-go is the official Golang client for Kubernetes, responsible for interacting with the Kubernetes API server using REST API. In fact, client-go can do almost anything, not just for writing operators. Even the internal implementation of kubectl is based on client-go. As for more specialized frameworks used to write operators, including controller-runtime , kubebuilder , and operator-sdk , they will be introduced later in this series. Introduction to Sample Controller Mechanism sample-controller is an official Kubernetes example operator implemented using client-go. ...
](https://static.chishengliu.com/posts/kubernetes-operator-introduction/cover/cover.png)
 on [Unsplash](https://unsplash.com/photos/black-instrument-cluster-panel-jW8hkB_Qmj8?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash)](https://static.chishengliu.com/posts/kubernetes-node-pressure/cover/cover.jpg)