-
Notifications
You must be signed in to change notification settings - Fork 6
/
car-dashboard-pod.yml
48 lines (48 loc) · 1.04 KB
/
car-dashboard-pod.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
---
# Service to expose frontend
apiVersion: v1
kind: Service
metadata:
name: bot-son
labels:
app: bot-son
tier: frontend
spec:
type: NodePort
ports:
- port: 3000
selector:
app: bot-son
tier: frontend
---
# Application to deploy
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: bot-son
spec:
replicas: 2 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: bot-son
tier: frontend
spec:
containers:
- name: bot-son
image: jcantosz/watson
resources:
requests:
cpu: 100m
memory: 100Mi
env:
- name: WORKSPACE_ID
valueFrom:
configMapKeyRef:
name: car-dashboard-config
key: workspace_id
- name: CONVERSATION_SERVICE_CAR
valueFrom:
secretKeyRef:
name: binding-conversation-service-car
key: binding