-
Notifications
You must be signed in to change notification settings - Fork 33
/
deploy-app.yml
46 lines (46 loc) · 1.17 KB
/
deploy-app.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: extensions/v1beta1
kind: Deployment
metadata:
name: elasticsearch-chatbot-app
spec:
replicas: 1
template:
metadata:
labels:
name: elasticsearch-chatbot-app-deployment
version: v1
spec:
containers:
- name: elasticsearch-chatbot-app
image: maxshapiro32/elasticsearch-chatbot-app
imagePullPolicy: Always
ports:
- containerPort: 5000
env:
- name: ELASTIC_BASE_URL
value: <ELASTICSEARCH_ENDPOINT>
- name: WATSON_VERSION
value: 2019-02-28
- name: WATSON_USERNAME
value: <WATSON_ASSISTANT_USERNAME>
- name: WATSON_PASSWORD
value: <WATSON_ASSISTANT_PASSWORD>
- name: WATSON_API_URL
value: <WATSON_ASSISTANT_SERVICE_ENDPOINT>
- name: WATSON_ASSISTANT_ID
value: <WATSON_ASSISTANT_ID>
---
apiVersion: v1
kind: Service
metadata:
name: elasticsearch-chatbot-app-service
spec:
ports:
- port: 5000
targetPort: 5000
nodePort: 32001
name: http
type: NodePort
selector:
name: elasticsearch-chatbot-app-deployment