-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathmetadata.yaml
More file actions
46 lines (46 loc) · 895 Bytes
/
Copy pathmetadata.yaml
File metadata and controls
46 lines (46 loc) · 895 Bytes
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
#
# To deploy:
#
# kubectl apply -f scripts/deploy.yaml
#
#
apiVersion: apps/v1
kind: Deployment
metadata:
name: metadata
spec:
replicas: 1
selector:
matchLabels:
app: metadata
template:
metadata:
labels:
app: metadata
spec:
containers:
- name: metadata
image: $CONTAINER_REGISTRY/metadata:1
imagePullPolicy: IfNotPresent
env:
- name: PORT
value: "4000"
- name: DBHOST
value: mongodb+srv://Sufi:Sufi777@cluster0.mmzbf.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
- name: DBNAME
value: metadata
- name: RABBIT
value: amqp://guest:guest@localhost:5672/
---
apiVersion: v1
kind: Service
metadata:
name: metadata
spec:
selector:
app: metadata
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: 4000