From cbfdcccc17906e69d9d23f37b61c150c89d45810 Mon Sep 17 00:00:00 2001 From: Ryan Rousseau Date: Tue, 23 Jul 2024 14:58:42 +0000 Subject: [PATCH] Change replicas based on env --- .octopus/variables.ocl | 8 ++++++++ deployment.yaml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.octopus/variables.ocl b/.octopus/variables.ocl index 17bfc44..d1658e7 100644 --- a/.octopus/variables.ocl +++ b/.octopus/variables.ocl @@ -22,6 +22,14 @@ variable "Project.Deployment.Name" { value "octopub-frontend-deployment" {} } +variable "Project.Deployment.Replicas" { + value "1" {} + + value "2" { + environment = ["production"] + } +} + variable "Project.Ingress.Name" { value "octopub-ingress" {} } diff --git a/deployment.yaml b/deployment.yaml index 32a2047..9de2a8d 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -3,7 +3,7 @@ kind: Deployment metadata: name: #{Project.Deployment.Name} spec: - replicas: 1 + replicas: #{Project.Deployment.Replicas} selector: matchLabels: component: #{Project.Labels.Component}