This is best used in rapid development workflows, you will need two terminals for this.
-
Start thanos-operator locally on your laptop, it will target the current Kubernetes context:
make run
-
In another terminal create a sample Thanos installation with Minio, Prometheus and Thanos CRDs:
make install-thanos
-
Check that Thanos runs properly:
kubectl port-forward service/thanos-sample-query 10902 & open http://localhost:10902/stores
make docker-build IMG=banzaicloud/thanos-operator:latest
make docker-push IMG=banzaicloud/thanos-operator:latest
export KUBECONFIG="<kubeconfig location>"
make install
make deploy IMG=banzaicloud/thanos-operator:latest