forked from IBM/guestbook
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathanalyzer-deployment.yaml
40 lines (40 loc) · 944 Bytes
/
analyzer-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: analyzer
labels:
app: analyzer
spec:
selector:
matchLabels:
app: analyzer
replicas: 1
template:
metadata:
labels:
app: analyzer
spec:
containers:
- name: analyzer
image: ibmcom/analyzer:v1.1
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: 100Mi
env:
- name: VCAP_SERVICES_TONE_ANALYZER_API_KEY
valueFrom:
secretKeyRef:
name: binding-tone
key: apikey
- name : VCAP_SERVICES_TONE_ANALYZER_TOKEN_ADDRESS
value: "https://iam.bluemix.net/identity/token"
- name: VCAP_SERVICES_TONE_ANALYZER_SERVICE_API
valueFrom:
secretKeyRef:
name: binding-tone
key: url
ports:
- containerPort: 5000
name: http