File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,8 @@ environment=$1
6
6
7
7
if [ " $environment " == " production" ]; then
8
8
export INGRESS_HOSTNAME=docs.expo.io
9
- export ENVIRONMENT=production
10
9
elif [ " $environment " == " staging" ]; then
11
10
export INGRESS_HOSTNAME=staging.docs.expo.io
12
- export ENVIRONMENT=staging
13
11
else
14
12
echo " Unrecognized environment $environment "
15
13
exit 1
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ apiVersion: apps/v1
3
3
kind : Deployment
4
4
metadata :
5
5
name : docs
6
- namespace : ${ENVIRONMENT}
7
6
labels :
8
7
app : docs
9
8
spec :
@@ -31,11 +30,17 @@ spec:
31
30
ports :
32
31
- containerPort : 80
33
32
name : http
33
+ readinessProbe :
34
+ httpGet :
35
+ path : " /"
36
+ port : 3000
37
+ initialDelaySeconds : 1
34
38
livenessProbe :
35
39
httpGet :
36
40
path : " /"
37
41
port : 3000
38
- initialDelaySeconds : 5
42
+ initialDelaySeconds : 10
43
+ timeoutSeconds : 2
39
44
resources :
40
45
requests :
41
46
cpu : 200m
@@ -45,7 +50,6 @@ apiVersion: v1
45
50
kind : Service
46
51
metadata :
47
52
name : docs
48
- namespace : ${ENVIRONMENT}
49
53
labels :
50
54
app : docs
51
55
spec :
@@ -60,7 +64,6 @@ apiVersion: extensions/v1beta1
60
64
kind : Ingress
61
65
metadata :
62
66
name : docs
63
- namespace : ${ENVIRONMENT}
64
67
labels :
65
68
app : docs
66
69
ssl : " true"
You can’t perform that action at this time.
0 commit comments