Skip to content

Commit

Permalink
Change replicas based on env
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrousseau committed Jul 30, 2024
1 parent 56d6817 commit cbfdccc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .octopus/variables.ocl
Original file line number Diff line number Diff line change
Expand Up @@ -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" {}
}
Expand Down
2 changes: 1 addition & 1 deletion deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: #{Project.Deployment.Name}
spec:
replicas: 1
replicas: #{Project.Deployment.Replicas}
selector:
matchLabels:
component: #{Project.Labels.Component}
Expand Down

0 comments on commit cbfdccc

Please sign in to comment.