This repository has been archived by the owner on Jun 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathopenhab-deployment.yaml
78 lines (76 loc) · 1.94 KB
/
openhab-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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- mode: yaml; coding: utf-8 -*-
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: openhab
spec:
replicas: 1
template:
metadata:
labels:
app: openhab
spec:
nodeSelector:
local-device: aeotec-z-wave-z-stick
local-volume: openhab
containers:
- name: openhab
image: openhab/openhab:2.1.0-snapshot-amd64
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8443
name: https
protocol: TCP
- containerPort: 8101
name: console
protocol: TCP
volumeMounts:
- name: aeotec-z-wave-z-stick
mountPath: /dev/ttyACM0
readOnly: false
- name: etc-localtime
mountPath: /etc/localtime
readOnly: true
- name: openhab-conf
mountPath: /openhab/conf
readOnly: false
- name: openhab-userdata
mountPath: /openhab/userdata
readOnly: false
- name: openhab-addons
mountPath: /openhab/addons
readOnly: false
- name: openhab-java
mountPath: /openhab/.java
readOnly: false
- name: openhab-karaf
mountPath: /openhab/.karaf
readOnly: false
volumes:
- name: aeotec-z-wave-z-stick
hostPath:
path: /dev/ttyACM0
- name: etc-localtime
hostPath:
path: /usr/share/zoneinfo/America/Chicago
- name: openhab-conf
hostPath:
path: /openhab/conf
- name: openhab-userdata
hostPath:
path: /openhab/userdata
- name: openhab-addons
hostPath:
path: /openhab/addons
- name: openhab-java
hostPath:
path: /openhab/.java
- name: openhab-karaf
hostPath:
path: /openhab/.karaf
terminationGracePeriodSeconds: 300
# Local Variables:
# indent-tabs-mode: nil
# End: