-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvss.yml
101 lines (101 loc) · 2.33 KB
/
vss.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: v1
kind: Service
metadata:
name: vss-cookbook
labels:
app: ecookbook
cookbook-infra: vss-cookbook-service
spec:
type: LoadBalancer
ports:
- name: digital
port: 8000
protocol: TCP
targetPort: 8000
- name: weblanding
port: 80
protocol: TCP
targetPort: 80
- name: http
port: 8081
protocol: TCP
targetPort: 8081
- name: newdevices
port: 11112
protocol: TCP
targetPort: 11112
- name: olddevices
port: 11113
protocol: TCP
targetPort: 11113
selector:
cookbook-infra: vss-deployment-pod
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: vss-cookbook
labels:
app: ecookbook
cookbook-infra: vss-cookbook-deployment
spec:
replicas: 1
template:
metadata:
labels:
app: ecookbook
cookbook-infra: vss-deployment-pod
spec:
containers:
- name: vss
image: visionect/visionect-server-v3:4.3.2
ports:
- containerPort: 80
- containerPort: 8081
- containerPort: 11112
- containerPort: 11113
volumeMounts:
- mountPath: /dev/fuse
name: fuse-dev
- mountPath: /dev/shm
name: dev-shm
env:
- name: DB2_1_PORT_5432_TCP_ADDR
value: "ecookbook-vss-psql-postgresql"
#- name: DB2_1_PORT_5432_TCP_PORT
#value: "5432"
- name: DB2_1_PORT_5432_TCP_USER
value: "chef"
- name: DB2_1_PORT_5432_TCP_PASS
value: "chef"
- name: DB2_1_PORT_5432_TCP_DB
value: "cookbook"
- name: CONFIG_Engine_Backend_HTML_DefaultFields_url
value: http://ecookbook/device
livenessProbe:
httpGet:
path: /api/serverping
port: 8081
initialDelaySeconds: 10
periodSeconds: 5
resources:
requests:
cpu: 10m
limits:
cpu: 500m
securityContext:
privileged: true
# seLinuxOptions:
# fsGroup: 1000
# level: "s0:c123,c456"
capabilities:
add:
- SYS_ADMIN
- MKNOD
volumes:
- name: fuse-dev
hostPath:
path: /dev/fuse
- name: dev-shm
hostPath:
path: /dev/shm