-
Notifications
You must be signed in to change notification settings - Fork 0
/
dss.yaml
89 lines (87 loc) · 2.42 KB
/
dss.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
apiVersion: v1
kind: Secret
metadata:
name: yelp-camp-secrets
type: Opaque
data:
CLOUDINARY_CLOUD_NAME: ZGowbGt4NHNhCg==
CLOUDINARY_KEY: Njg2NjgxNTE4ODUxNTk4Cg==
CLOUDINARY_SECRET: aFNHZUlZTHEyRnRhb2tNODBFNHRsR25vVllZCg==
MAPBOX_TOKEN: c2suZXlKMUlqb2ljMmgxWW1oaGJUSXhNakVpTENKaElqb2lZMngzWjJacmVYSXlNREJuWVRKcGIzZGxjVEZxWTJ0dE5pSjkuVDZTUnBKTW5WMlpwYWhUX2wwTjYxQQo=
DB_URL: bW9uZ29kYitzcnY6Ly9zaHViaGFtMjEyMTo8cGFzc3dvcmQ+QHNodWJoYW0tZHMudTU1NjlraC5tb25nb2RiLm5ldC8/cmV0cnlXcml0ZXM9dHJ1ZSZ3PW1ham9yaXR5JmFwcE5hbWU9U2h1YmhhbS1kcwo=
SECRET: c2h1YmhhbQo=
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: yelp-camp-deployment
spec:
replicas: 1
selector:
matchLabels:
app: yelp-camp
template:
metadata:
labels:
app: yelp-camp
spec:
containers:
- name: yelp-camp-container
image: dmcomp07/camp:latest
ports:
- containerPort: 3000
env:
- name: CLOUDINARY_CLOUD_NAME
valueFrom:
secretKeyRef:
name: yelp-camp-secrets
key: CLOUDINARY_CLOUD_NAME
- name: CLOUDINARY_KEY
valueFrom:
secretKeyRef:
name: yelp-camp-secrets
key: CLOUDINARY_KEY
- name: CLOUDINARY_SECRET
valueFrom:
secretKeyRef:
name: yelp-camp-secrets
key: CLOUDINARY_SECRET
- name: MAPBOX_TOKEN
valueFrom:
secretKeyRef:
name: yelp-camp-secrets
key: MAPBOX_TOKEN
- name: DB_URL
valueFrom:
secretKeyRef:
name: yelp-camp-secrets
key: DB_URL
- name: SECRET
valueFrom:
secretKeyRef:
name: yelp-camp-secrets
key: SECRET
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 30 # Adjust the initial delay here
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 30 # Adjust the initial delay here
---
apiVersion: v1
kind: Service
metadata:
name: yelp-camp-service
spec:
selector:
app: yelp-camp
ports:
- protocol: TCP
port: 3000
targetPort: 3000
type: LoadBalancer