Skip to content

Commit

Permalink
fix(DMVP-test): Change to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
aramkarapetian committed Mar 11, 2024
1 parent d8b0ccf commit 864fbd9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions modules/runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ No modules.
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace name | `string` | `"runner"` | no |
| <a name="input_oauthClientId"></a> [oauthClientId](#input\_oauthClientId) | Oauth Client | `string` | n/a | yes |
| <a name="input_oauthClientSecret"></a> [oauthClientSecret](#input\_oauthClientSecret) | Oauth Client Secret | `string` | n/a | yes |
| <a name="input_replica_count"></a> [replica\_count](#input\_replica\_count) | Deployment replica count | `number` | `2` | no |
| <a name="input_runnerUuid"></a> [runnerUuid](#input\_runnerUuid) | Runner Uuid | `string` | n/a | yes |

## Outputs
Expand Down
7 changes: 2 additions & 5 deletions modules/runner/job.tf → modules/runner/deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ resource "kubernetes_deployment" "runner" {
namespace = var.namespace
}
spec {
replicas = var.replica_count

selector {
match_labels = {
accountUuid = var.accountUuid
Expand Down Expand Up @@ -115,11 +117,6 @@ resource "kubernetes_deployment" "runner" {
}
}
}
# backoff_limit = 6
# completions = 1
# parallelism = 1

# wait_for_completion = false

depends_on = [
kubernetes_secret.runner
Expand Down
6 changes: 6 additions & 0 deletions modules/runner/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ variable "create_namespace" {
description = "Create namespace or use existing one"
default = true
}

variable "replica_count" {
type = number
default = 2
description = "Deployment replica count"
}

0 comments on commit 864fbd9

Please sign in to comment.