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(infra.ci): add the new cluster as kubernetes cloud #5327

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions config/jenkins_infra.ci.jenkins.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,61 @@ controller:
resourceRequestMemory: "8G"
label: "container kubernetes node ruby webbuilder"
yamlMergeStrategy: "merge"
- kubernetes:
containerCapStr: "100"
credentialsId: "infraci.jenkins.io-agents-1-jenkins-agent-sa-token"
serverCertificate: |
"${INFRACIJENKINSIO_AGENTS_1_CACRT}"
serverUrl: "https://infracijenkinsioagents1-ns1jeize.hcp.eastus2.azmk8s.io:443"
maxRequestsPerHostStr: "300"
webSocket: true
name: "kubernetes_infracijioagents1"
namespace: "jenkins-infra-agents"
podRetention: "Never"
podLabels:
# Required to be jenkins/<helm-release>-jenkins-slave as defined here
# https://github.com/helm/charts/blob/ef0d749132ecfa61b2ea47ccacafeaf5cf1d3d77/stable/jenkins/templates/jenkins-master-networkpolicy.yaml#L27
- key: "jenkins/jenkins-infra-agent"
value: "true"
templates:
- name: jnlp-linux-arm64
nodeSelector: "kubernetes.io/arch=arm64"
containers:
- name: jnlp
image: "jenkinsciinfra/jenkins-agent-ubuntu-22.04:1.72.0"
command: "/usr/local/bin/jenkins-agent"
args: ""
envVars:
- envVar:
key: "JENKINS_JAVA_BIN"
value: "/opt/jdk-17/bin/java"
- envVar:
key: "JAVA_HOME"
value: "/opt/jdk-17"
resourceLimitCpu: "500m"
resourceLimitMemory: "1024Mi"
resourceRequestCpu: "500m"
resourceRequestMemory: "512Mi"
alwaysPullImage: true
label: "linux-arm64-infracijioagents1"
yamlMergeStrategy: "merge"
yaml: |-
apiVersion: v1
kind: Pod
spec:
tolerations:
- key: "jenkins"
operator: "Equal"
value: "infra.ci.jenkins.io"
effect: "NoSchedule"
- key: "kubernetes.io/arch"
operator: "Equal"
value: "arm64"
effect: "NoSchedule"
- key: "infra.ci.jenkins.io/agents"
operator: "Equal"
value: "true"
effect: "NoSchedule"
- azureVM:
azureCredentialsId: "azure-jenkins-sponsorship-credentials"
name: "azure-vms-jenkins-sponsorship"
Expand Down