-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.yaml
51 lines (48 loc) · 1.14 KB
/
manifest.yaml
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
50
51
apiVersion: v1
kind: Namespace
metadata:
name: yellowjobs-fetcher-prod
---
apiVersion: v1
kind: Service
metadata:
name: yellowjobs-fetcher-prod
spec:
type: NodePort
selector:
app: yellowjobs-fetcher-prod
ports:
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
- port: 4000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: yellowjobs-fetcher-prod
spec:
selector:
matchLabels:
app: yellowjobs-fetcher-prod
replicas: 1
template:
metadata:
labels:
app: yellowjobs-fetcher-prod
spec:
containers:
- name: yellowjobs-fetcher-prod
image: docker.io/ans29hul/yellowjobs-fetcher-prod:latest
env:
- name: MONGO_URI
valueFrom:
secretKeyRef:
name: yellowjobs-fetcher-prod-env
key: MONGO_URI
- name: BEARER_TOKEN
valueFrom:
secretKeyRef:
name: yellowjobs-fetcher-prod-env
key: BEARER_TOKEN
ports:
- containerPort: 4000
protocol: "TCP"