forked from IBM/watson-assistant-slots-intro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
watson-pizzeria-pod.yml
48 lines (48 loc) · 1.09 KB
/
watson-pizzeria-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: pizza-bot
labels:
app: pizza-bot
tier: frontend
spec:
type: NodePort
ports:
- port: 3000
selector:
app: pizza-bot
tier: frontend
---
# Application to deploy
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: pizza-bot
spec:
replicas: 2 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: pizza-bot
tier: frontend
spec:
containers:
- name: pizza-bot
image: scottdangelo/conversation-slots-intro:latest
resources:
requests:
cpu: 100m
memory: 100Mi
env:
- name: WORKSPACE_ID
valueFrom:
configMapKeyRef:
name: watson-pizzeria-config
key: workspace_id
- name: service_watson_conversation
valueFrom:
secretKeyRef:
name: binding-conversation-service-watson-pizzeria
key: binding