openshift / svt

Apache License 2.0
124 stars 105 forks source link

add script to install ingress autoscaling #744

Closed qiliRedHat closed 1 year ago

qiliRedHat commented 1 year ago

@paigerube14 PTAL

qiliRedHat commented 1 year ago

Test results

% ./install-ingress-autoscaling.sh 2
[INFO] ====Post Install Check====
[INFO] Getting hpa
NAME                      REFERENCE                   TARGETS     MINPODS   MAXPODS   REPLICAS   AGE
keda-hpa-ingress-scaler   IngressController/default   1/1 (avg)   1         2         2          9m55s
[INFO] Number of worker nodes: 2
[INFO] Ingresscontroller replicas: 2
[INFO] maxReplicaCount is 2. Replica number 2 equals to node number 2.
% ./install-ingress-autoscaling.sh omit
[INFO] ====Post Install Check====
[INFO] Getting hpa
NAME                      REFERENCE                   TARGETS     MINPODS   MAXPODS   REPLICAS   AGE
keda-hpa-ingress-scaler   IngressController/default   1/1 (avg)   1         100       2          10m
[INFO] Number of worker nodes: 2
[INFO] Ingresscontroller replicas: 2
[PASS] maxReplicaCount is omit. Replica number 2 equals to node number 2.
% ./install-ingress-autoscaling.sh 3
[INFO] ====Post Install Check====
[INFO] Getting hpa
NAME                      REFERENCE                   TARGETS     MINPODS   MAXPODS   REPLICAS   AGE
keda-hpa-ingress-scaler   IngressController/default   1/1 (avg)   1         3         2          2m49s
[INFO] Number of worker nodes: 2
[INFO] Ingresscontroller replicas: 2
[PASS] maxReplicaCount is 3. Replica number 2 equals to node number 2.
qiliRedHat commented 1 year ago

@paigerube14 PTAL

paigerube14 commented 1 year ago

/lgtm

qiliRedHat commented 1 year ago

Merged after getting lgtm in peer review.