This example demonstrates how to write a controller which follows the states of watched resources in a k8s cluster
docker build -t in-cluster17_vendor .
docker tag in-cluster17_vendor:latest andreasgkizas/2159_17:v5
Dockerfile is part of local repositiry. Assumes
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod vendor -o clientgo
image target is linux based.
docker tag in-cluster17_vendor:latest andreasgkizas/2159_17:v5
docker push andreasgkizas/2159_17:v5
See worker_manifestv3_workingGKE.yaml.txt as working one provided to customer Also serviceAccountName: filebeat is used inside, assumes that filebeats service account is already present. See here
go build && ./clientgo --kubeconfig /home/chrismark/.kube/config
apt-get install graphviz gv
orbrew install graphviz
3go tool pprof -png http://localhost:6060/debug/pprof/heap > out.png