A Controller written in kubernetes sample-controller style which watches a custom resource named Bookstore. A resource create a deployment and a NodePort service. The container image is a simple bookstore api server. The NodePort service listen to request on host port 30000.
git clone [email protected]:shn27/bookstore-sample-controller.git
cd bookstore-sample-controller
kind create cluster --config=clusterconfig.yaml
kc create -f menifest/crd-status-subresource.yaml
go build .
./sample-controller -kubeconfig=clusterconfig.yaml
kc create -f menifest/example-bookstore.yaml
kc port-forward service/bookstore 3000
USERNAME : admin
PASSWORD : 1234
https://github.com/shn27/BookStoreApi-Go