forked from IBM/watson-second-opinion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwatson-review-analyzer.yaml
69 lines (69 loc) · 1.72 KB
/
watson-review-analyzer.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
---
apiVersion: v1
kind: Service
metadata:
name: watson-reviews
labels:
app: watson-reviews
spec:
ports:
- port: 80
protocol: TCP
targetPort: 4000
type: LoadBalancer
selector:
app: watson-reviews
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: watson-reviews-deployment
labels:
app: watson-reviews
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: watson-reviews
spec:
containers:
- image: horeaporutiu/watson-review-analyzer:2.4
imagePullPolicy: Always
name: watson-reviews
env:
- name: CLOUDANT_URL
value: 'http://admin:password@couchdb:5984'
volumeMounts:
- name: config-file
mountPath: "/app/config.json"
subPath: "config.json"
readOnly: true
ports:
- containerPort: 4000
volumes:
- name: config-file
configMap:
name: watson-discovery-config
---
apiVersion: batch/v1
kind: Job
metadata: {name: 'watson-review-analyzer-metrics'}
spec:
template:
metadata: {name: 'watson-review-analyzer-metrics'}
spec:
containers:
- env:
- {name: config, value: '{"event_id": "web",
"repository_id": "https://github.com/IBM/watson-review-analyzer",
"target_services": ["Discovery"], "target_runtimes":
["Kubernetes Cluster"], "event_organizer":
"dev-journeys"}'}
- {name: language, value: nodejs}
image: journeycode/kubernetes:latest
name: watson-review-analyzer-metrics
resources:
limits: {cpu: 100m}
restartPolicy: Never