Skip to content

Commit

Permalink
Merge pull request kubernetes#2118 from jupblb/b235219949
Browse files Browse the repository at this point in the history
Add huge-service upgrade
  • Loading branch information
k8s-ci-robot committed Aug 23, 2022
2 parents f9f9e34 + 78f7f56 commit 6b3e04e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
24 changes: 24 additions & 0 deletions clusterloader2/testing/huge-service/modules/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ steps:
objectTemplatePath: simple-deployment.yaml
templateFillMap:
Replicas: {{$endpoints}}
EnvVar: a
Group: huge-service
CpuRequest: 1m
MemoryRequest: 10M
Expand All @@ -51,6 +52,29 @@ steps:
Method: WaitForControlledPodsRunning
Params:
action: gather
- name: Updating {{$serviceName}} pods
phases:
- namespaceRange:
min: 1
max: 1
replicasPerNamespace: 1
tuningSet: Sequence
objectBundle:
- basename: huge-service-deployment
objectTemplatePath: simple-deployment.yaml
templateFillMap:
Replicas: {{$endpoints}}
EnvVar: b
Group: huge-service
CpuRequest: 1m
MemoryRequest: 10M
SvcName: {{$serviceName}}
- name: Waiting for {{$serviceName}} pods to be updated
measurements:
- Identifier: WaitForHugeServiceDeployments
Method: WaitForControlledPodsRunning
Params:
action: gather
- name: Deleting {{$serviceName}} pods
phases:
- namespaceRange:
Expand Down
6 changes: 5 additions & 1 deletion clusterloader2/testing/load/simple-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Keep the CpuRequest/MemoryRequest request equal percentage of 1-core, 4GB node.
# For now we're setting it to 0.5%.
{{$CpuRequest := DefaultParam .CpuRequest "5m"}}
{{$EnvVar := DefaultParam .EnvVar "a"}}
{{$MemoryRequest := DefaultParam .MemoryRequest "20M"}}
{{$Image := DefaultParam .Image "k8s.gcr.io/pause:3.1"}}
{{$RUN_ON_ARM_NODES := DefaultParam .CL2_RUN_ON_ARM_NODES false}}
Expand All @@ -28,7 +29,10 @@ spec:
spec:
hostNetwork: {{$HostNetworkMode}}
containers:
- image: {{$Image}}
- env:
- name: ENV_VAR
value: {{$EnvVar}}
image: {{$Image}}
imagePullPolicy: IfNotPresent
name: {{.Name}}
ports:
Expand Down

0 comments on commit 6b3e04e

Please sign in to comment.