A custom Kubernetes Controller example to watch Deployments in all namespaces to create Service and Ingress resources.
kube-controller-example
is a kubernetes controller that I wrote to understand the internal workings of controllers. Important topics that I focusing on:
- Internals of Kubernetes Controllers
- Informers
- Work Queues
Under cmd
folder there are two types of execution styles.
- RemoteAPI which is executed/deployed outside the cluster (uses kubeconfig file)
./omain -kubeconfig ~/.kube/config
- InClusterAPI which is executed/deployed inside the cluster via container image
kubectl create -f manifests/