Skip to content

Commit

Permalink
Merge pull request #64 from ExpediaGroup/feature/add-replicas-vars
Browse files Browse the repository at this point in the history
Kubernetes variables to adjust number replicas on deployments
  • Loading branch information
githubjianli authored Nov 7, 2024
2 parents 9abc3bf + 82a11fc commit 6a9524b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [5.1.1] - 2024-11-07
### Added
- Kubernetes variables to adjust number replicas on deployments.

## [5.1.0] - 2024-08-30
### Added
- Added datadog annotations to send metrics from `scheduler-apiary`, `metadata-cleanup`, `path-cleanup` to DD.
Expand Down
2 changes: 1 addition & 1 deletion k8s-metadata-cleanup.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "kubernetes_deployment_v1" "beekeeper_metadata_cleanup" {

spec {
# setting the number of replicas to greater than 1 is currently untested
replicas = 1
replicas = var.k8s_metadata_cleanup_replicas
selector {
match_labels = local.metadata_cleanup_label_name_instance
}
Expand Down
2 changes: 1 addition & 1 deletion k8s-path-cleanup.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "kubernetes_deployment_v1" "beekeeper_path_cleanup" {

spec {
# setting the number of replicas to greater than 1 is currently untested
replicas = 1
replicas = var.k8s_path_cleanup_replicas
selector {
match_labels = local.path_cleanup_label_name_instance
}
Expand Down
2 changes: 1 addition & 1 deletion k8s-scheduler-apiary.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "kubernetes_deployment_v1" "beekeeper_scheduler_apiary" {

spec {
# setting the number of replicas to greater than 1 is currently untested
replicas = 1
replicas = var.k8s_scheduler_apiary_replicas
selector {
match_labels = local.scheduler_apiary_label_name_instance
}
Expand Down
18 changes: 18 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ variable "k8s_ingress_tls_secret" {

# K8S - path cleanup deployment

variable "k8s_path_cleanup_replicas" {
description = "Replicas for k8s-path-cleanup deployment."
default = 1
type = number
}

variable "k8s_path_cleanup_memory" {
description = "Total memory to allot to the Beekeeper Path Cleanup pod."
default = "2Gi"
Expand Down Expand Up @@ -433,6 +439,12 @@ variable "k8s_path_cleanup_ingress_path" {

# K8S - metadata cleanup deployment

variable "k8s_metadata_cleanup_replicas" {
description = "Replicas for k8s-metadata-cleanup deployment."
default = 1
type = number
}

variable "k8s_metadata_cleanup_memory" {
description = "Total memory to allot to the Beekeeper Metadata Cleanup pod."
default = "2Gi"
Expand Down Expand Up @@ -509,6 +521,12 @@ variable "k8s_api_ingress_path" {

# K8S - Scheduler Apiary deployment

variable "k8s_scheduler_apiary_replicas" {
description = "Replicas for k8s-scheduler-apiary deployment."
default = 1
type = number
}

variable "k8s_scheduler_apiary_memory" {
description = "Total memory to allot to the Beekeeper Scheduler Apiary pod."
default = "2Gi"
Expand Down

0 comments on commit 6a9524b

Please sign in to comment.