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 a new AKS cluster for ci.jenkins.io agents #693

Conversation

dduportal
Copy link
Contributor

@dduportal dduportal commented May 10, 2024

Related to jenkins-infra/helpdesk#3954

Blocked by jenkins-infra/shared-tools#146

This PR introduces a new AKS cluster to host ci.jenkins.io container agents workload with the specified attributes:

Notes:

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
@dduportal dduportal marked this pull request as ready for review May 10, 2024 16:16
@dduportal dduportal requested a review from a team as a code owner May 10, 2024 16:16
lemeurherve
lemeurherve previously approved these changes May 10, 2024
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Copy link
Contributor Author

@dduportal dduportal left a comment

Choose a reason for hiding this comment

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

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

@dduportal dduportal merged commit 81f7288 into jenkins-infra:main May 10, 2024
3 checks passed
@dduportal dduportal deleted the feat/add-aks-sponsored-cijioagents-cluster branch May 10, 2024 16:32
@dduportal
Copy link
Contributor Author

This PR failed to deploy with the following classes of errors:

  • NSG security rules naming errors
  • DNS route errors

dduportal added a commit that referenced this pull request May 10, 2024
dduportal added a commit that referenced this pull request May 11, 2024
Second tentative at creating the new cluster (after #693 rollbacked by
#694)

> Related to jenkins-infra/helpdesk#3954
> 
> Blocked by jenkins-infra/shared-tools#146
> 
> This PR introduces a new AKS cluster to host ci.jenkins.io container
agents workload with the
[specified](jenkins-infra/helpdesk#3954 (comment))
attributes:
> 
> - [Private
cluster](jenkins-infra/helpdesk#3954 (comment))
(e.g. API not exposed except internally) which means we need cluster to
reach it => it might need subsequent PRs to fine-tune the
infra.ci.jenkins.io agent network accesses.
> - Outbound with NAT gateway and no ingress (as per
jenkins-infra/helpdesk#3954 (comment))
> - Initial set of node pools with the [proposed
sizings](jenkins-infra/helpdesk#3954 (comment))
> 
> Notes:
> 
> - Allowing ci.jenkins.io to reach the AKS API of this cluster requires
a few additional NSGs rules specified in the `ci.jenkins.io.tf` file
> - The PR jenkins-infra/shared-tools#146 is
needed so we can set up NSG rules to restrict the agents in and out
network requests.

The following elements were changed since the first tentative:

- Commented out the kubernetes configuration (until infra.ci
configuration is tuned to reach the API controle plane) to avoid failing
deployment initially (during bootstrap)
- Fixed the "inbound agent" module to ensure naming of NSG and its
security rule won't fail like they did on the initial deployment (ref.
jenkins-infra/shared-tools@f251e97)

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
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

2 participants