Added example how to expose k8s dashboard

This commit is contained in:
Aleksandr Didenko 2016-06-23 16:43:11 +02:00
parent 39dd4c1aaa
commit d7a11887f6
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,17 @@
Examples how to expose k8s services
===================================
* Edit `kubernetes-dashboard.yaml` and update `externalIPs` to the list of external IPs of your k8s minions
* Run:
```bash
kubectl create -f kubernetes-dashboard.yaml --namespace=kube-system
```
* Access:
```bash
curl $ANY_MINION_EXTERNAL_IP:9090
```

View file

@ -0,0 +1,22 @@
apiVersion: v1
kind: Service
metadata:
name: dashboard-frontend
labels:
app: dashboard-frontend
tier: frontend
spec:
externalIPs:
- 10.210.0.12
- 10.210.0.13
- 10.210.0.14
- 10.210.0.15
- 10.210.0.16
- 10.210.0.17
ports:
- name: http
port: 9090
protocol: TCP
targetPort: 9090
selector:
app: kubernetes-dashboard