-
Notifications
You must be signed in to change notification settings - Fork 0
/
onem2m-recorder-deployment.yaml
53 lines (53 loc) · 1.12 KB
/
onem2m-recorder-deployment.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
apiVersion: v1
kind: Service
metadata:
labels:
app: etsi-iot-week-onem2m
name: onem2m-recorder
spec:
ports:
- name: "8080"
port: 8080
targetPort: 8080
selector:
app: etsi-iot-week-onem2m
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: etsi-iot-week-onem2m
name: onem2m-recorder
spec:
selector:
matchLabels:
app: etsi-iot-week-onem2m
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: etsi-iot-week-onem2m
spec:
containers:
- image: easyglobalmarket/onem2m-recorder
name: onem2m-recorder
env:
- name: APPLICATION_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-pass
key: password
- name: APPLICATION_ONEM2M_ORIGIN
valueFrom:
secretKeyRef:
name: onem2m
key: origin
- name: APPLICATION_BASE_URL
value: http://onem2m-recorder:8080
- name: SPRING_PROFILES_ACTIVE
value: int
ports:
- containerPort: 8080
restartPolicy: Always