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: add contributorsjenkinsio storage account #523

Conversation

lemeurherve
Copy link
Member

@lemeurherve lemeurherve commented Nov 23, 2023

This PR creates a resource group and a storage account to store the static HTML content generated by jenkins-infra/contributor-spotlight#15 and which will be mounted as volume to be served on contributors.origin.jenkins.io from publick8s cluster. (contributors.jenkins.io will be served by the CDN Fastly)
This content doesn't need to be accessible from elsewhere, hence the network protection.

Ref:

@lemeurherve lemeurherve requested a review from a team November 23, 2023 14:51
@lemeurherve lemeurherve changed the title feat: add contributors storage account feat: add contributorsjenkinsio storage account Nov 23, 2023
@lemeurherve
Copy link
Member Author

Plan: 2 to add, 0 to change, 0 to destroy.

@lemeurherve
Copy link
Member Author

New resources for a service not yet in production, self-merging to continue on the subject.

@lemeurherve lemeurherve merged commit a3a5459 into jenkins-infra:main Nov 23, 2023
1 check passed
@lemeurherve lemeurherve deleted the helpdesk3809-contributor-spotlight-storage branch November 23, 2023 15:18
lemeurherve added a commit that referenced this pull request Nov 23, 2023
This PR adds the File Share that will be used by the nginx-website
release on publick8s cluster to serve on contributors.origin.jenkins.io
the content generated in
https://github.com/jenkins-infra/contributor-spotlight/.

It also rename the storage account resource to be uniform.

Follow-up of #523 

Ref:
-
jenkins-infra/helpdesk#3809 (comment)
@lemeurherve
Copy link
Member Author

Note: hotfixed by removing network rules preventing the creation of the File Share from #524

resource_group_name = azurerm_resource_group.contributors_jenkins_io.name
location = azurerm_resource_group.contributors_jenkins_io.location
account_tier = "Standard"
account_replication_type = "GRS"
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reasoning behind using GRS here? (vs. LRS or ZRS) . Could you explain it in the issue (and the eventual cost impact)

lemeurherve added a commit that referenced this pull request Nov 27, 2023
…re (#528)

This PR recreates the storage account and the file share for
contributors.jenkins.io

The network rules deleted in a hotfix commit were still present when
looking at the storage account in Azure Portal.
I've deleted the (empty) storage account to recreate it with this PR.

Other changes:
- ZRS: no need for GRS, ZRS is sufficient
- Type StorageV2: default value from the terraform provider, "Storage"
(v1) is the legacy one, no cost change between them.
- Add back network rules, allowing our IPs and the ones from publick8s
and privatek8s vnets.

Follow-up of:
- #523
- #524

Ref:
-
jenkins-infra/helpdesk#3809 (comment)
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.

2 participants