Skip to content

Commit

Permalink
Disable HTTP2 and scale up API server to 4 replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt committed Oct 24, 2023
1 parent 2bdfde7 commit e222c96
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions webhosting-operator/config/experiment/base/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
image: experiment:latest
args:
- --zap-log-level=info
env:
- name: DISABLE_HTTP2
value: "true"
ports:
- name: metrics
containerPort: 8080
Expand Down
3 changes: 3 additions & 0 deletions webhosting-operator/config/manager/default/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
image: controller:latest
args:
- --zap-log-level=info
env:
- name: DISABLE_HTTP2
value: "true"
ports:
- name: metrics
containerPort: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ spec:
mutate:
patchStrategicMerge:
spec:
replicas: 1
replicas: 4
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
mutate:
patchStrategicMerge:
spec:
replicas: 1
replicas: 4
# set static requests/limits on kube-apiserver to ensure similar evaluation environment between load test runs
- name: resources
match:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: kube-apiserver-scale-awake
policies:
- ../../kube-apiserver-scale.yaml
resources:
# spec.replicas=2 -> expect spec.replicas=1
# spec.replicas=2 -> expect spec.replicas=4
- scale.yaml
variables: variables.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: kube-apiserver
namespace: shoot--timebertt--sharding
spec:
replicas: 1
replicas: 4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: kube-apiserver-awake
namespace: shoot--timebertt--sharding
spec:
replicas: 1
replicas: 4
template:
spec:
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: kube-apiserver-null
namespace: shoot--timebertt--sharding
spec:
replicas: 1
replicas: 4
template:
spec:
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: kube-apiserver
policies:
- ../../kube-apiserver.yaml
resources:
# spec.replicas=2 -> expect spec.replicas=1
# spec.replicas=2 -> expect spec.replicas=4
- kube-apiserver-awake.yaml
# spec.replicas=null -> expect spec.replicas=1
# spec.replicas=null -> expect spec.replicas=4
- kube-apiserver-null.yaml
# spec.replicas=0 -> expect skip
- kube-apiserver-hibernated.yaml
Expand Down

0 comments on commit e222c96

Please sign in to comment.