2018-04-30 19:32:38 +08:00
|
|
|
apiVersion: apps/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: dashflux
|
|
|
|
labels:
|
|
|
|
component: dashflux
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
component: dashflux
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: dashflux
|
|
|
|
image: mainflux/dashflux:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
2018-05-29 16:47:27 +08:00
|
|
|
- containerPort: 3000
|
2018-04-30 19:32:38 +08:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: dashflux
|
|
|
|
labels:
|
|
|
|
component: dashflux
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
component: dashflux
|
|
|
|
ports:
|
2018-05-11 22:41:25 +08:00
|
|
|
- port: 3000
|
2018-05-29 16:47:27 +08:00
|
|
|
type: LoadBalancer
|