Skip to content

Add readiness probes to deployments in functional tests #3740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/suite/manifests/advanced-routing/cafe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -50,6 +54,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -83,6 +91,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
10 changes: 10 additions & 0 deletions tests/suite/manifests/advanced-routing/grpc-backends.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ spec:
containers:
- name: grpc-infra-backend-v1
image: ghcr.io/nginx/kic-test-grpc-server:0.2.5
ports:
- containerPort: 50051
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
readinessProbe:
tcpSocket:
port: 50051
resources:
requests:
cpu: 10m
Expand Down Expand Up @@ -69,11 +74,16 @@ spec:
containers:
- name: grpc-infra-backend-v2
image: ghcr.io/nginx/kic-test-grpc-server:edge
ports:
- containerPort: 50051
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
readinessProbe:
tcpSocket:
port: 50051
resources:
requests:
cpu: 10m
12 changes: 12 additions & 0 deletions tests/suite/manifests/clientsettings/cafe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -50,6 +54,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -83,6 +91,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
5 changes: 5 additions & 0 deletions tests/suite/manifests/clientsettings/grpc-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ spec:
containers:
- name: grpc-backend
image: ghcr.io/nginx/kic-test-grpc-server:0.2.5
ports:
- containerPort: 50051
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
readinessProbe:
tcpSocket:
port: 50051
resources:
requests:
cpu: 10m
4 changes: 4 additions & 0 deletions tests/suite/manifests/dp-perf/coffee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
12 changes: 12 additions & 0 deletions tests/suite/manifests/hello-world/apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -50,6 +54,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -83,6 +91,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
8 changes: 8 additions & 0 deletions tests/suite/manifests/ngf-upgrade/cafe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -50,6 +54,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
8 changes: 8 additions & 0 deletions tests/suite/manifests/reconfig/cafe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -50,6 +54,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
4 changes: 4 additions & 0 deletions tests/suite/manifests/scale/matches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
4 changes: 4 additions & 0 deletions tests/suite/manifests/scale/upstreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
8 changes: 8 additions & 0 deletions tests/suite/manifests/scale/zero-downtime/cafe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -50,6 +54,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
12 changes: 12 additions & 0 deletions tests/suite/manifests/snippets-filter/cafe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -50,6 +54,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -83,6 +91,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
5 changes: 5 additions & 0 deletions tests/suite/manifests/snippets-filter/grpc-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ spec:
containers:
- name: grpc-backend
image: ghcr.io/nginx/kic-test-grpc-server:0.2.5
ports:
- containerPort: 50051
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
readinessProbe:
tcpSocket:
port: 50051
resources:
requests:
cpu: 10m
8 changes: 8 additions & 0 deletions tests/suite/manifests/upstream-settings-policy/cafe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -50,6 +54,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ spec:
containers:
- name: grpc-backend
image: ghcr.io/nginx/kic-test-grpc-server:0.2.5
ports:
- containerPort: 50051
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
readinessProbe:
tcpSocket:
port: 50051
resources:
requests:
cpu: 10m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
image: nginxdemos/nginx-hello:plain-text
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
---
apiVersion: v1
kind: Service
Expand Down
Loading