forked from dsys/match
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rc.yml
36 lines (36 loc) · 806 Bytes
/
rc.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
apiVersion: v1
kind: ReplicationController
metadata:
name: match
spec:
replicas: 1
selector:
app: match
template:
metadata:
labels:
app: match
spec:
containers:
- name: match
image: dsys/match:latest
ports:
- containerPort: 80
env:
- name: WORKER_COUNT
value: "4"
- name: ELASTICSEARCH_URL
valueFrom:
secretKeyRef:
name: match
key: elasticsearch.url
- name: ELASTICSEARCH_INDEX
valueFrom:
secretKeyRef:
name: match
key: elasticsearch.index
- name: ELASTICSEARCH_DOC_TYPE
valueFrom:
secretKeyRef:
name: match
key: elasticsearch.doc-type