Skip to content

Instantly share code, notes, and snippets.

@itayB
Last active January 25, 2020 17:08
Show Gist options
  • Save itayB/3b9c5ffc8b336300c289e18db745c574 to your computer and use it in GitHub Desktop.
Save itayB/3b9c5ffc8b336300c289e18db745c574 to your computer and use it in GitHub Desktop.
# use kubernetes with 'minikube' (can be set from the docker ui in mac)
# start the dashboard (web UI)
minikube dashboard
# the command above should open Chrome browswer autmatically to some like:
http://127.0.0.1:56176/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/#/overview?namespace=default
FAQ
---
Q: running `./spark-on-k8s-deploy-docker-registry.sh` end with `Error: failed to download "stable/docker-registry" (hint: running `helm repo update` may help)`
A: run `helm repo add stable https://kubernetes-charts.storage.googleapis.com/`
Q: how to add insecure registy to docker on Mac?
A: `vim ~/.docker/daemon.json` and add insecure-registries (get ip from `minikube ip`):
```
{
"debug" : true,
"experimental" : false,
"insecure-registries": ["192.168.99.100:30000"]
}
```
Q: `./bin/docker-image-tool.sh -r 192.168.99.100:30000 -t latest build` failed on:
`COPY failed: stat /var/lib/docker/tmp/docker-builder063050819/jars: no such file or directory`
A: make sure you're running the docker-image-tool.sh from the root spark directory (the command above).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment