Skip to content

Commit e9e1178

Browse files
committed
Add readiness probes to deployments in functional tests
1 parent a82c2ba commit e9e1178

File tree

16 files changed

+121
-0
lines changed

16 files changed

+121
-0
lines changed

tests/suite/manifests/advanced-routing/cafe.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ spec:
1717
image: nginxdemos/nginx-hello:plain-text
1818
ports:
1919
- containerPort: 8080
20+
readinessProbe:
21+
httpGet:
22+
path: /
23+
port: 8080
2024
---
2125
apiVersion: v1
2226
kind: Service
@@ -50,6 +54,10 @@ spec:
5054
image: nginxdemos/nginx-hello:plain-text
5155
ports:
5256
- containerPort: 8080
57+
readinessProbe:
58+
httpGet:
59+
path: /
60+
port: 8080
5361
---
5462
apiVersion: v1
5563
kind: Service
@@ -83,6 +91,10 @@ spec:
8391
image: nginxdemos/nginx-hello:plain-text
8492
ports:
8593
- containerPort: 8080
94+
readinessProbe:
95+
httpGet:
96+
path: /
97+
port: 8080
8698
---
8799
apiVersion: v1
88100
kind: Service

tests/suite/manifests/advanced-routing/grpc-backends.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@ spec:
2929
containers:
3030
- name: grpc-infra-backend-v1
3131
image: ghcr.io/nginx/kic-test-grpc-server:0.2.5
32+
ports:
33+
- containerPort: 50051
3234
env:
3335
- name: POD_NAME
3436
valueFrom:
3537
fieldRef:
3638
fieldPath: metadata.name
39+
readinessProbe:
40+
tcpSocket:
41+
port: 50051
3742
resources:
3843
requests:
3944
cpu: 10m
@@ -69,11 +74,16 @@ spec:
6974
containers:
7075
- name: grpc-infra-backend-v2
7176
image: ghcr.io/nginx/kic-test-grpc-server:edge
77+
ports:
78+
- containerPort: 50051
7279
env:
7380
- name: POD_NAME
7481
valueFrom:
7582
fieldRef:
7683
fieldPath: metadata.name
84+
readinessProbe:
85+
tcpSocket:
86+
port: 50051
7787
resources:
7888
requests:
7989
cpu: 10m

tests/suite/manifests/clientsettings/cafe.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ spec:
1717
image: nginxdemos/nginx-hello:plain-text
1818
ports:
1919
- containerPort: 8080
20+
readinessProbe:
21+
httpGet:
22+
path: /
23+
port: 8080
2024
---
2125
apiVersion: v1
2226
kind: Service
@@ -50,6 +54,10 @@ spec:
5054
image: nginxdemos/nginx-hello:plain-text
5155
ports:
5256
- containerPort: 8080
57+
readinessProbe:
58+
httpGet:
59+
path: /
60+
port: 8080
5361
---
5462
apiVersion: v1
5563
kind: Service
@@ -83,6 +91,10 @@ spec:
8391
image: nginxdemos/nginx-hello:plain-text
8492
ports:
8593
- containerPort: 8080
94+
readinessProbe:
95+
httpGet:
96+
path: /
97+
port: 8080
8698
---
8799
apiVersion: v1
88100
kind: Service

tests/suite/manifests/clientsettings/grpc-backend.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@ spec:
2929
containers:
3030
- name: grpc-backend
3131
image: ghcr.io/nginx/kic-test-grpc-server:0.2.5
32+
ports:
33+
- containerPort: 50051
3234
env:
3335
- name: POD_NAME
3436
valueFrom:
3537
fieldRef:
3638
fieldPath: metadata.name
39+
readinessProbe:
40+
tcpSocket:
41+
port: 50051
3742
resources:
3843
requests:
3944
cpu: 10m

tests/suite/manifests/dp-perf/coffee.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ spec:
1717
image: nginxdemos/nginx-hello:plain-text
1818
ports:
1919
- containerPort: 8080
20+
readinessProbe:
21+
httpGet:
22+
path: /
23+
port: 8080
2024
---
2125
apiVersion: v1
2226
kind: Service

tests/suite/manifests/hello-world/apps.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ spec:
1717
image: nginxdemos/nginx-hello:plain-text
1818
ports:
1919
- containerPort: 8080
20+
readinessProbe:
21+
httpGet:
22+
path: /
23+
port: 8080
2024
---
2125
apiVersion: v1
2226
kind: Service
@@ -50,6 +54,10 @@ spec:
5054
image: nginxdemos/nginx-hello:plain-text
5155
ports:
5256
- containerPort: 8080
57+
readinessProbe:
58+
httpGet:
59+
path: /
60+
port: 8080
5361
---
5462
apiVersion: v1
5563
kind: Service
@@ -83,6 +91,10 @@ spec:
8391
image: nginxdemos/nginx-hello:plain-text
8492
ports:
8593
- containerPort: 8080
94+
readinessProbe:
95+
httpGet:
96+
path: /
97+
port: 8080
8698
---
8799
apiVersion: v1
88100
kind: Service

tests/suite/manifests/ngf-upgrade/cafe.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ spec:
1717
image: nginxdemos/nginx-hello:plain-text
1818
ports:
1919
- containerPort: 8080
20+
readinessProbe:
21+
httpGet:
22+
path: /
23+
port: 8080
2024
---
2125
apiVersion: v1
2226
kind: Service
@@ -50,6 +54,10 @@ spec:
5054
image: nginxdemos/nginx-hello:plain-text
5155
ports:
5256
- containerPort: 8080
57+
readinessProbe:
58+
httpGet:
59+
path: /
60+
port: 8080
5361
---
5462
apiVersion: v1
5563
kind: Service

tests/suite/manifests/reconfig/cafe.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ spec:
1717
image: nginxdemos/nginx-hello:plain-text
1818
ports:
1919
- containerPort: 8080
20+
readinessProbe:
21+
httpGet:
22+
path: /
23+
port: 8080
2024
---
2125
apiVersion: v1
2226
kind: Service
@@ -50,6 +54,10 @@ spec:
5054
image: nginxdemos/nginx-hello:plain-text
5155
ports:
5256
- containerPort: 8080
57+
readinessProbe:
58+
httpGet:
59+
path: /
60+
port: 8080
5361
---
5462
apiVersion: v1
5563
kind: Service

tests/suite/manifests/scale/matches.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spec:
3131
image: nginxdemos/nginx-hello:plain-text
3232
ports:
3333
- containerPort: 8080
34+
readinessProbe:
35+
httpGet:
36+
path: /
37+
port: 8080
3438
---
3539
apiVersion: v1
3640
kind: Service

tests/suite/manifests/scale/upstreams.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ spec:
5151
image: nginxdemos/nginx-hello:plain-text
5252
ports:
5353
- containerPort: 8080
54+
readinessProbe:
55+
httpGet:
56+
path: /
57+
port: 8080
5458
---
5559
apiVersion: v1
5660
kind: Service

0 commit comments

Comments
 (0)