forked from 0L-Analytics/permission-tree-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0l-permission-tree.yml
46 lines (46 loc) · 1016 Bytes
/
0l-permission-tree.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
apiVersion: v1
kind: Service
metadata:
name: "ol-permission-tree-service"
spec:
ports:
- port: 3028
nodePort: 32323
protocol: TCP
type: NodePort
selector:
app: "ol-permission-tree"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ol-permission-tree-deployment
labels:
app: ol-permission-tree
spec:
replicas: 1
selector:
matchLabels:
app: ol-permission-tree
template:
metadata:
labels:
app: ol-permission-tree
spec:
containers:
- name: ol-permission-tree
env:
- name: PORT
value: "3028"
- name: NODE_HOSTNAME
value: $NODE_HOSTNAME$
- name: MONGO_HOST
value: $MONGO_HOST$
- name: MONGO_INITDB_ROOT_USERNAME
value: $MONGO_INITDB_ROOT_USERNAME$
- name: MONGO_INITDB_ROOT_PASSWORD
value: $MONGO_INITDB_ROOT_PASSWORD$
image: $CONTAINER_IMAGE$
ports:
- containerPort: 3028
imagePullPolicy: "Always"