Skip to content

Commit

Permalink
variable to configure k8s pod replicas (#85)
Browse files Browse the repository at this point in the history
* variable to configure k8s pod replicas

* fix

* update type

* update README

Co-authored-by: Raj Poluri <[email protected]>
  • Loading branch information
rpoluri and Raj Poluri authored Apr 6, 2021
1 parent 94f5bc9 commit 66f6bcc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
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).

## [3.3.3] - 2021-04-06
### Added
- Variable to configure k8s pod replicas.

## [3.3.2] - 2021-03-30
### Added
- Fix alluxio path replacement regex to handle s3a:// and s3n:// urls.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ For more information please refer to the main [Apiary](https://github.com/Expedi
| instance_name | Waggle Dance instance name to identify resources in multi-instance deployments. | string | `` | no |
| k8s_namespace | K8s namespace to create waggle-dance deployment.| string | ``| no |
| k8s_docker_registry_secret | Docker Registry authentication K8s secret name.| string | ``| no |
| k8s_replica_count | Number of k8s pod replicas to create. | number | `3` | no |
| local_metastores | List of federated Metastore endpoints directly accessible on the local network. See section [`local_metastores`](#local_metastores) for more info.| list | `<list>` | no |
| memory | The amount of memory (in MiB) used to allocate for the Waggle Dance container. Valid values: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html | string | `4096` | no |
| primary_metastore_host | Primary Hive Metastore hostname configured in Waggle Dance. | string | `localhost` | no |
Expand Down
2 changes: 1 addition & 1 deletion k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "kubernetes_deployment" "waggle_dance" {
}

spec {
replicas = 3
replicas = var.k8s_replica_count
selector {
match_labels = {
name = local.instance_alias
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ variable "wd_ecs_task_count" {
default = "1"
}

variable "k8s_replica_count" {
description = "Number of k8s pod replicas to create."
type = number
default = 3
}

variable "vpc_id" {
description = "VPC ID."
type = string
Expand Down

0 comments on commit 66f6bcc

Please sign in to comment.