fix apps scaling for k8s shuffle

This commit is contained in:
BogatikovM
2025-10-12 14:45:41 +04:00
parent f81e39e235
commit dde6099b90
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -610,9 +610,9 @@ func deployk8sApp(image string, identifier string, env []string) error {
// use deployment instead of pod
// then expose a service similarly.
// number of replicas can be set to os.Getenv("SHUFFLE_SCALE_REPLICAS")
// number of replicas can be set to os.Getenv("SHUFFLE_APP_REPLICAS")
replicaNumber := 1
replicaNumberStr := os.Getenv("SHUFFLE_SCALE_REPLICAS")
replicaNumberStr := os.Getenv("SHUFFLE_APP_REPLICAS")
if len(replicaNumberStr) > 0 {
tmpInt, err := strconv.Atoi(replicaNumberStr)
if err != nil {