-
Notifications
You must be signed in to change notification settings - Fork 1
/
devicemgmt.yaml
56 lines (56 loc) · 1 KB
/
devicemgmt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# ---
# apiVersion: v1
# kind: Secret
# metadata:
# name: mqtt-secrets
# data:
# MQTT_PORT:
# MQTT_USER7P7XWK:
# MQTT_PASS7P7XWK:
# MQTT_CLIENTID7P7XWK:
# MQTT_HOST7P7XWK:
# MQTT_CLIENTID5YRUSP:
# MQTT_USER5YRUSP:
# MQTT_PASS5YRUSP:
# CLOUDANT_HOST:
# OPENEEW_API_KEY:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: openeew-devicemgmt
labels:
app: openeew-devicemgmt
spec:
selector:
matchLabels:
app: openeew-devicemgmt
template:
metadata:
labels:
app: openeew-devicemgmt
spec:
containers:
- name: devicemgmt
image: us.icr.io/openeew-devicemgmt/openeew-devicemgmt:2.4
ports:
- containerPort: 1880
envFrom:
- secretRef:
name: mqtt-secrets
---
apiVersion: v1
kind: Service
metadata:
name: openeew-devicemgmt
labels:
app: openeew-devicemgmt
spec:
type: NodePort
ports:
- port: 1880
targetPort: 1880
protocol: TCP
name: http
selector:
app: openeew-devicemgmt