minikube stop
minikube delete
minikube start --insecure-registry=" 192.168.0.1:5000" --memory 8192 --cpus 4
Geting minikube ip and master address
minikube ip
kubectl cluster-info
Running minikube dashboard
minikube dashboard --url &
kubectl proxy --address=' 0.0.0.0' --disable-filter=true --port=5885 &
Bulding Spark docker image
Push Location Dataset to Kafka
tag and push image to 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/
Create Spark Service Account
kubectl create serviceaccount spark
kubectl create clusterrolebinding spark-role --clusterrole=edit --serviceaccount=default:spark --namespace=default
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;