Make the dashboard service listen on a NodePort.
This makes it easier to access the dashboard.pull/155/head
parent
5d775b4d8d
commit
ae60398cd4
|
@ -39,6 +39,14 @@ Stopping local Kubernetes cluster...
|
||||||
Stopping "minikubeVM"...
|
Stopping "minikubeVM"...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Dashboard
|
||||||
|
|
||||||
|
To access the dashboard, run this command in a shell after starting minikube to get the address:
|
||||||
|
```shell
|
||||||
|
echo $(minikube ip):$(kubectl get service kubernetes-dashboard --namespace=kube-system -o=jsonpath='{.spec.ports[0].nodePort}{"\n"}')
|
||||||
|
```
|
||||||
|
And then copy/paste that into your browser.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
* Minikube packages and configures a Linux VM, Docker and all Kubernetes components, optimized for local development.
|
* Minikube packages and configures a Linux VM, Docker and all Kubernetes components, optimized for local development.
|
||||||
* Minikube supports Kubernetes features such as:
|
* Minikube supports Kubernetes features such as:
|
||||||
|
|
|
@ -22,6 +22,7 @@ metadata:
|
||||||
app: kubernetes-dashboard
|
app: kubernetes-dashboard
|
||||||
kubernetes.io/cluster-service: "true"
|
kubernetes.io/cluster-service: "true"
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 9090
|
targetPort: 9090
|
||||||
|
|
Loading…
Reference in New Issue