minikube stop
minikube delete
minikube start --insecure-registry="192.168.0.1:5000" --memory 8192 --cpus 4
minikube ip
kubectl cluster-info
minikube dashboard --url &
kubectl proxy --address='0.0.0.0' --disable-filter=true --port=5885 &
make kafka
make pg
make jars_dl
make build-app
make push-kafka
make kafkacat
cd k8s/
make start-registery
docker tag spark-streaming-k8s_spark 192.168.0.1:5000/stream-spark:v4
docker push 192.168.0.1:5000/stream-spark:v4
curl -X GET http://192.168.0.1:5000/v2/stream-spark/tags/list
wget --no-verbose https://archive.apache.org/dist/spark/spark-3.1.1/spark-3.1.1-bin-hadoop3.2.tgz && \
tar -xzvf spark-3.1.1-bin-hadoop3.2.tgz && \
rm -rf spark-3.1.1-bin-hadoop3.2.tgz && \
cd spark-3.1.1-bin-hadoop3.2/
kubectl create serviceaccount spark
kubectl create clusterrolebinding spark-role --clusterrole=edit --serviceaccount=default:spark --namespace=default
make run-k8s-streaming
kubectl logs -f pod/location-streaming-app
kubectl port-forward --address 0.0.0.0 pod/location-streaming-app 4040:4040
make pg-exec
select * from locations;