-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-deployment.yml
49 lines (47 loc) · 1.04 KB
/
app-deployment.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
49
apiVersion: v1
kind: Service
metadata:
namespace: ngcovid
name: ngcovid-app
spec:
ports:
- port: 80
nodePort: 32225
selector:
app: ngcovid-app
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ngcovid-app-deployment
namespace: ngcovid
spec:
selector:
matchLabels:
app: ngcovid-app
template:
metadata:
labels:
app: ngcovid-app
spec:
containers:
- image: seyio/scraper-app
name: ngcovid-server
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: postgres-secrets
key: dburlpass
- name: REDIS_HOST
value: ngcovid-cache
- name: REDIS_PORT
value: '6379'
- image: seyio/scraper-proxy
name: ngcovid-client
env:
- name: PROXY_ADDRESS
value: localhost
ports:
- containerPort: 80