-
Notifications
You must be signed in to change notification settings - Fork 67
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
terraform, azure and utoronto: fixes and aligning files with terraform state #3578
Merged
consideRatio
merged 11 commits into
2i2c-org:master
from
consideRatio:pr/update-azure-terraform-stuff
Jan 5, 2024
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
572f435
docs: fix notes about AKS machine types to use
consideRatio 8563929
Add docstring to terraform/azure/proxycommand.py
consideRatio 0ee4273
terraform, utoronto: reorganize for readability and add fixme notes
consideRatio f008c7c
terraform, utoronto: align files with current state
consideRatio dc54258
terraform, azure: complete earlier cleanup by hardcoding NFS over SMB
consideRatio 593ed03
terraform, azure: stop declaring core node pool node count
consideRatio ce6084a
terraform, azure: fix capitalization
consideRatio 2898b43
terraform, azure: bump lower bound on some providers
consideRatio a643698
terraform, azure: cleanup unused azure-file k8s namespace
consideRatio c8bb78d
terraform, utoronto: add comment about min-max nodes
consideRatio d9edf6b
terraform, azure: add note on handling a 403 when using terraform
consideRatio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
tenant_id = "78aac226-2f03-4b4d-9037-b46d56c55210" | ||
subscription_id = "ead3521a-d994-4a44-a68d-b16e35642d5b" | ||
resourcegroup_name = "2i2c-utoronto-cluster" | ||
|
||
|
||
kubernetes_version = "1.26.3" | ||
tenant_id = "78aac226-2f03-4b4d-9037-b46d56c55210" | ||
subscription_id = "ead3521a-d994-4a44-a68d-b16e35642d5b" | ||
resourcegroup_name = "2i2c-utoronto-cluster" | ||
global_container_registry_name = "2i2cutorontohubregistry" | ||
global_storage_account_name = "2i2cutorontohubstorage" | ||
location = "canadacentral" | ||
|
||
storage_size = 8192 | ||
ssh_pub_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQJ4h39UYNi1wybxAH+jCFkNK2aqRcuhDkQSMx0Hak5xkbt3KnT3cOwAgUP1Vt/SjhltSTuxpOHxiAKCRnjwRk60SxKhUNzPHih2nkfYTmBBjmLfdepDPSke/E0VWvTDIEXz/L8vW8aI0QGPXnXyqzEDO9+U1buheBlxB0diFAD3vEp2SqBOw+z7UgrGxXPdP+2b3AV+X6sOtd6uSzpV8Qvdh+QAkd4r7h9JrkFvkrUzNFAGMjlTb0Lz7qAlo4ynjEwzVN2I1i7cVDKgsGz9ZG/8yZfXXx+INr9jYtYogNZ63ajKR/dfjNPovydhuz5zQvQyxpokJNsTqt1CiWEUNj georgiana@georgiana" | ||
|
||
ssh_pub_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQJ4h39UYNi1wybxAH+jCFkNK2aqRcuhDkQSMx0Hak5xkbt3KnT3cOwAgUP1Vt/SjhltSTuxpOHxiAKCRnjwRk60SxKhUNzPHih2nkfYTmBBjmLfdepDPSke/E0VWvTDIEXz/L8vW8aI0QGPXnXyqzEDO9+U1buheBlxB0diFAD3vEp2SqBOw+z7UgrGxXPdP+2b3AV+X6sOtd6uSzpV8Qvdh+QAkd4r7h9JrkFvkrUzNFAGMjlTb0Lz7qAlo4ynjEwzVN2I1i7cVDKgsGz9ZG/8yZfXXx+INr9jYtYogNZ63ajKR/dfjNPovydhuz5zQvQyxpokJNsTqt1CiWEUNj georgiana@georgiana" | ||
|
||
global_container_registry_name = "2i2cutorontohubregistry" | ||
global_storage_account_name = "2i2cutorontohubstorage" | ||
# FIXME: upgrade to 1.27.7, and then 1.28.3, based on the latest versions | ||
# available via: az aks get-versions --location westus2 -o table | ||
# | ||
kubernetes_version = "1.26.3" | ||
|
||
location = "canadacentral" | ||
# FIXME: upgrade core_node_vm_size to Standard_E4s_v5 | ||
core_node_vm_size = "Standard_E4s_v3" | ||
|
||
notebook_nodes = { | ||
"default" : { | ||
min : 1, | ||
max : 100, | ||
# NOTE: min-max below was set to 0-86 retroactively to align with | ||
# observed state without understanding on why 0-86 was picked. | ||
min : 0, | ||
max : 86, | ||
# FIXME: upgrade user nodes vm_size to Standard_E8s_v5 | ||
vm_size : "Standard_E8s_v3", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,12 @@ resource "azurerm_storage_account" "homes" { | |
|
||
network_rules { | ||
# Allow NFS access only from our nodes, deny access from all other networks | ||
# | ||
# Use of terraform plan or apply can run into issues due to this, but they | ||
# can be handled by temporarily adding your public IP to a firewall | ||
# exception like described in | ||
# https://github.com/2i2c-org/infrastructure/issues/890#issuecomment-1879072422. | ||
# | ||
default_action = "Deny" | ||
virtual_network_subnet_ids = [ | ||
azurerm_subnet.node_subnet.id | ||
|
@@ -23,7 +29,7 @@ resource "azurerm_storage_share" "homes" { | |
name = "homes" | ||
storage_account_name = azurerm_storage_account.homes.name | ||
quota = var.storage_size | ||
enabled_protocol = var.storage_protocol | ||
enabled_protocol = "NFS" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In particular, this is great! Let's rip out any other Azure File mounting related stuff we may have too (we use NFS for mounting that too now) |
||
lifecycle { | ||
# Additional safeguard against deleting the share | ||
# as this causes irreversible data loss! | ||
|
@@ -34,9 +40,3 @@ resource "azurerm_storage_share" "homes" { | |
output "azure_fileshare_url" { | ||
value = azurerm_storage_share.homes.url | ||
} | ||
|
||
resource "kubernetes_namespace" "homes" { | ||
metadata { | ||
name = "azure-file" | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a specific reason 86 was chosen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated those values to align with the current configuration, but I don't know the history on why they are configured to 0 - 86.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@consideRatio ah, ok. Can you just add a comment about that here? Once that's done, this is good to go. Thanks for cleaning this up!