Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update redis reserved ip range and Add deletion protection to database #92

Merged
merged 8 commits into from
Dec 15, 2023

Conversation

venky-wandb
Copy link
Contributor

@venky-wandb venky-wandb commented Dec 11, 2023

Situation:
Screen Shot 2023-12-11 at 3 46 05 PM
When trying to install REDIS, it tries to establish a private services access connection with a shared VPC network. When creating this for Tower, somehow the reserved IP we have set for Redis appears to be in use.

Solution:
Screen Shot 2023-12-11 at 3 44 56 PM
In order to get around that, I had to create the REDIS on a different reserved IP range than the hard-coded one we use. So this PR makes it a configurable parameter. Test to show this works

Situation 2:
None of our GCP databases have deletion protection enabled because there are two different variables to control the deletion protection. More on the thread here

Solution:
Screen Shot 2023-12-11 at 3 58 12 PM
Enable deletion protection at all levels (GCP, gcloud, CLI etc.) and not just at terraform deletion level. Test to show this works

@venky-wandb venky-wandb requested a review from a team December 11, 2023 23:59
@venky-wandb venky-wandb requested a review from a team as a code owner December 11, 2023 23:59
modules/database/main.tf Outdated Show resolved Hide resolved
modules/database/main.tf Outdated Show resolved Hide resolved
Copy link
Contributor

@yogeshg yogeshg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tx for the detailed notes on testing and context.

tier = var.tier
availability_type = var.availability_type
user_labels = var.labels
deletion_protection_enabled = var.deletion_protection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@venky-wandb venky-wandb enabled auto-merge (squash) December 15, 2023 21:03
@venky-wandb venky-wandb merged commit c5ec027 into main Dec 15, 2023
8 checks passed
@venky-wandb venky-wandb deleted the update-redis-reserver-ip-range branch December 15, 2023 21:04
jsbroks pushed a commit that referenced this pull request Dec 15, 2023
## [1.22.0](v1.21.0...v1.22.0) (2023-12-15)

### Features

* Update redis reserved ip range and Add deletion protection to database ([#92](#92)) ([c5ec027](c5ec027))
@jsbroks
Copy link
Member

jsbroks commented Dec 15, 2023

This PR is included in version 1.22.0 🎉

gls4 pushed a commit that referenced this pull request Feb 9, 2024
…atabase (#92)

* feat: Update redis reserved ip range

* update

* parameterize redis reserved ip range

* Adds instance deletion protection on cloud sql

* terraform-docs: automated action

* fix fmt

* update

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
gls4 pushed a commit that referenced this pull request Feb 9, 2024
## [1.22.0](v1.21.0...v1.22.0) (2023-12-15)

### Features

* Update redis reserved ip range and Add deletion protection to database ([#92](#92)) ([c5ec027](c5ec027))
gls4 pushed a commit that referenced this pull request Feb 21, 2024
* feat: Add support for t-shirt-sized deployments

* terraform-docs: automated action

* feat: Update redis reserved ip range and Add deletion protection to database (#92)

* feat: Update redis reserved ip range

* update

* parameterize redis reserved ip range

* Adds instance deletion protection on cloud sql

* terraform-docs: automated action

* fix fmt

* update

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore(release): version 1.22.0 [skip ci]

## [1.22.0](v1.21.0...v1.22.0) (2023-12-15)

### Features

* Update redis reserved ip range and Add deletion protection to database ([#92](#92)) ([c5ec027](c5ec027))

* set size default to "small"

* add output variables

* format

* terraform-docs: automated action

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: venky-wandb <[email protected]>
Co-authored-by: semantic-release-bot <[email protected]>
Co-authored-by: George Scott <[email protected]>
jsbroks pushed a commit that referenced this pull request Feb 21, 2024
## [1.23.0](v1.22.0...v1.23.0) (2024-02-21)

### Features

* Add support for t-shirt-sized deployments ([#91](#91)) ([5432961](5432961)), closes [#92](#92)
adityachoudhari26 pushed a commit that referenced this pull request Feb 22, 2024
## [1.23.0](v1.22.0...v1.23.0) (2024-02-21)

### Features

* Add support for t-shirt-sized deployments ([#91](#91)) ([5432961](5432961)), closes [#92](#92)
adityachoudhari26 added a commit that referenced this pull request Mar 4, 2024
* add new infra alongside existing infra

* terraform-docs: automated action

* weave install false while rwo being implemented

* add boolean flag

* terraform-docs: automated action

* better var name

* terraform-docs: automated action

* weave install true test

* add wandb_replicas logic for gke app

* terraform-docs: automated action

* add license and extraenvs

* correct caCertPath for redis

* minimal spec

* re-add bucket, mysql, and redis

* add other wandb env

* add all but extra envs

* add extraEnv

* unneeded comma

* redis cert path follows helm charts

* add depends on

* correct controller image tag

* add envs

* rebase

* chore(release): version 1.23.0 [skip ci]

## [1.23.0](v1.22.0...v1.23.0) (2024-02-21)

### Features

* Add support for t-shirt-sized deployments ([#91](#91)) ([5432961](5432961)), closes [#92](#92)

* fix: Backwards compatibility for t-shirt-sized deployments (#101)

* fix: Backwards compatibility for t-shirt-sized deployments

* empty

* empty

* chore(release): version 1.23.1 [skip ci]

### [1.23.1](v1.23.0...v1.23.1) (2024-02-21)

### Bug Fixes

* Backwards compatibility for t-shirt-sized deployments ([#101](#101)) ([f812f81](f812f81))

* fix: Backwards compatibility fix to avoid changes in nodegroups. (#102)

* fix: backwards compatibility fix to avoid changes in nodegroups.

* terraform-docs: automated action

* update example

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: George Scott <[email protected]>

* chore(release): version 1.23.2 [skip ci]

### [1.23.2](v1.23.1...v1.23.2) (2024-02-22)

### Bug Fixes

* Backwards compatibility fix to avoid changes in nodegroups. ([#102](#102)) ([c331853](c331853))

* rebase

* rebase

* rebase

* terraform-docs: automated action

* pull out ssl certificate id

* specify which https for putput

* remove issuer create tag from ingress

* add inverse gorilla glue logic

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: semantic-release-bot <[email protected]>
Co-authored-by: Yogesh Garg <[email protected]>
Co-authored-by: George Scott <[email protected]>
jsbroks pushed a commit that referenced this pull request Mar 4, 2024
## [1.24.0](v1.23.3...v1.24.0) (2024-03-04)

### Features

* Add operator helm release ([#98](#98)) ([e3916a7](e3916a7)), closes [#92](#92) [#101](#101) [#101](#101) [#102](#102)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants