Skip to content

Commit

Permalink
feat(privatek8s/publick8s): allow infracijenkinsioagents1 subnet to r…
Browse files Browse the repository at this point in the history
…each aks api (#735)

as per jenkins-infra/helpdesk#3923

we need to allow new agents from the cluster `infracijenkinsioagents1`
to access aks api for privatek8s and publick8s.
  • Loading branch information
smerle33 authored Jun 20, 2024
1 parent 23b9374 commit 697ce44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .shared-tools
1 change: 1 addition & 0 deletions privatek8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ resource "azurerm_kubernetes_cluster" "privatek8s" {
[for key, value in module.jenkins_infra_shared_data.admin_public_ips : value],
# privatek8s outbound IPs (traffic routed through gateways or outbound LBs)
module.jenkins_infra_shared_data.outbound_ips["privatek8s.jenkins.io"],
module.jenkins_infra_shared_data.outbound_ips["infracijenkinsioagents1.jenkins.io"],
)
)
),
Expand Down
1 change: 1 addition & 0 deletions publick8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ resource "azurerm_kubernetes_cluster" "publick8s" {
# trusted.ci subnet (UC agents need to execute mirrorbits scans)
module.jenkins_infra_shared_data.outbound_ips["trusted.ci.jenkins.io"],
module.jenkins_infra_shared_data.outbound_ips["trusted.sponsorship.ci.jenkins.io"],
module.jenkins_infra_shared_data.outbound_ips["infracijenkinsioagents1.jenkins.io"],
)
)
),
Expand Down

0 comments on commit 697ce44

Please sign in to comment.