-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
89 lines (87 loc) · 2.47 KB
/
deploy.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
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: ZHV3NmV4MHRqCg==
CLOUDINARY_KEY: Njc5MTI5MTkxNjE5MzQ1Cg==
CLOUDINARY_SECRET: WVNLNFdmcHlscXJ3YWdWNnZXV3g3M0N5aXdJCg==
MAPBOX_TOKEN: c2suZXlKMUlqb2liV0ZwYkdGc1kyOXVJaXdpWVNJNkltTnRNR0Y1ZFdsNmF6QXdkbU15YTNOamVteG1lVEI2YVdNaWZRLnFkRXJoVjlTRHZQckJtOW5vYklheWcK
DB_URL: bW9uZ29kYitzcnY6Ly9tYWlsYWxjb25lbGVjdHJvbmljc246VVI5Uk5Cb2RUUkFkekhkc0AzLXRpZXItY2x1c3Rlci5xdWl4dC5tb25nb2RiLm5ldC8/cmV0cnlXcml0ZXM9dHJ1ZSZ3PW1ham9yaXR5JmFwcE5hbWU9My10aWVyLUNsdXN0ZXIK
SECRET: bXVsdGl0aWVyYXBwCg==
---
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: aniiketpatiil/camp-eks-deployment: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