pushd ex_files/01_03
minikube start # or maybe `minikube start --addons=dashboard --addons=metrics-server --addons="ingress" --addons="ingress-dns"`
kubectl apply -f # apply all files in pwd
kubectl expose pod green --port 8080 --name blue-green
$ minikube service --all
Result
|-----------|------------|-------------|---------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|------------|-------------|---------------------------|
| default | blue-green | 80 | http://192.168.49.2:30064 |
|-----------|------------|-------------|---------------------------|
|-----------|----------------|-------------|---------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|----------------|-------------|---------------------------|
| default | hello-minikube | 80 | http://192.168.49.2:30122 |
|-----------|----------------|-------------|---------------------------|
|-----------|------------|-------------|--------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|------------|-------------|--------------|
| default | kubernetes | | No node port |
|-----------|------------|-------------|--------------|
๐ฟ service default/kubernetes has no node port
|-----------|-----------------------|-------------|--------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|-----------------------|-------------|--------------|
| default | quickstart-es-default | | No node port |
|-----------|-----------------------|-------------|--------------|
๐ฟ service default/quickstart-es-default has no node port
|-----------|--------------------|-------------|--------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|--------------------|-------------|--------------|
| default | quickstart-es-http | | No node port |
|-----------|--------------------|-------------|--------------|
๐ฟ service default/quickstart-es-http has no node port
|-----------|-----------------------------|-------------|--------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|-----------------------------|-------------|--------------|
| default | quickstart-es-internal-http | | No node port |
|-----------|-----------------------------|-------------|--------------|
๐ฟ service default/quickstart-es-internal-http has no node port
|-----------|-------------------------|-------------|--------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|-------------------------|-------------|--------------|
| default | quickstart-es-transport | | No node port |
|-----------|-------------------------|-------------|--------------|
๐ฟ service default/quickstart-es-transport has no node port
|-----------|--------------------|-------------|--------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|--------------------|-------------|--------------|
| default | quickstart-kb-http | | No node port |
|-----------|--------------------|-------------|--------------|
๐ฟ service default/quickstart-kb-http has no node port
๐ Starting tunnel for service blue-green.
๐ Starting tunnel for service hello-minikube.
๐ Starting tunnel for service kubernetes.
๐ Starting tunnel for service quickstart-es-default.
๐ Starting tunnel for service quickstart-es-http.
๐ Starting tunnel for service quickstart-es-internal-http.
๐ Starting tunnel for service quickstart-es-transport.
๐ Starting tunnel for service quickstart-kb-http.
d|-----------|-----------------------------|-------------|------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|-----------------------------|-------------|------------------------|
| default | blue-green | | http://127.0.0.1:63051 |
| default | hello-minikube | | http://127.0.0.1:63053 |
| default | kubernetes | | http://127.0.0.1:63055 |
| default | quickstart-es-default | | http://127.0.0.1:63057 |
| default | quickstart-es-http | | http://127.0.0.1:63059 |
| default | quickstart-es-internal-http | | http://127.0.0.1:63061 |
| default | quickstart-es-transport | | http://127.0.0.1:63063 |
| default | quickstart-kb-http | | http://127.0.0.1:63065 |
|-----------|-----------------------------|-------------|------------------------|
๐ Opening service default/blue-green in default browser...
๐ Opening service default/hello-minikube in default browser...
๐ Opening service default/kubernetes in default browser...
๐ Opening service default/quickstart-es-default in default browser...
๐ Opening service default/quickstart-es-http in default browser...
๐ Opening service default/quickstart-es-internal-http in default browser...
๐ Opening service default/quickstart-es-transport in default browser...
๐ Opening service default/quickstart-kb-http in default browser...
โ Because you are using a Docker driver on darwin, the terminal needs to be open to run it.