-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(experiments): e2e test for service port mappings
Signed-off-by: Yohan Belval <[email protected]>
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
test/e2e/functional/experiment-with-service-port-mappings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Experiment | ||
metadata: | ||
name: experiment-with-service-port-mappings | ||
spec: | ||
duration: 10s | ||
scaleDownDelaySeconds: 5 | ||
# List of pod template specs to run in the experiment as ReplicaSets | ||
templates: | ||
- name: test | ||
replicas: 1 | ||
service: | ||
name: test-service-with-port-mappings | ||
portMappings: | ||
- port: 80 | ||
containerPort: 8080 | ||
- port: 81 | ||
containerPort: 8081 | ||
selector: | ||
matchLabels: | ||
app: xperiment-with-service-port-mappings | ||
template: | ||
metadata: | ||
labels: | ||
app: xperiment-with-service-port-mappings | ||
spec: | ||
containers: | ||
- name: xperiment-with-service-port-mappings | ||
image: nginx:1.19-alpine | ||
resources: | ||
requests: | ||
memory: 16Mi | ||
cpu: 1m | ||
ports: | ||
- name: testport1 | ||
protocol: TCP | ||
containerPort: 8080 | ||
- name: testport2 | ||
protocol: TCP | ||
containerPort: 8081 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters