Skip to content

Commit

Permalink
feat(publick8s) install a new instance of get.jenkins.io with mirrorb…
Browse files Browse the repository at this point in the history
…its-parent chart (#4847)

* feat(publick8s) install a new instance of get.jenkins.io with mirrorbits-parent chart

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>

* feat(publick8s) set up get.jenkins.io to use domain 'azure.get.jenkins.io'

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>

---------

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
  • Loading branch information
dduportal authored Jan 8, 2024
1 parent e75f8c6 commit c4daf67
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clusters/publick8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ releases:
- "../config/mirrorbits.yaml"
secrets:
- "../secrets/config/mirrorbits/secrets.yaml"
- name: get-jenkins-io
namespace: get-jenkins-io
chart: jenkins-infra/mirrorbits-parent
version: 1.1.15
timeout: 600
values:
- "../config/get-jenkins-io.yaml"
secrets:
- "../secrets/config/get-jenkins-io/secrets.yaml"
- name: plugin-site-issues
namespace: plugin-site
chart: jenkins-infra/plugin-site-issues
Expand Down
121 changes: 121 additions & 0 deletions config/get-jenkins-io.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
global:
ingress:
enabled: true
className: public-nginx
annotations:
"cert-manager.io/cluster-issuer": "letsencrypt-prod"
"nginx.ingress.kubernetes.io/ssl-redirect": "true"
"nginx.ingress.kubernetes.io/use-regex": "true" # Required to allow regexp path matching with Nginx
hosts:
- host: azure.get.jenkins.io
paths:
- path: /
backendService: httpd
- path: /.*[.](deb|hpi|war|rpm|msi|pkg|sha256|md5sum|zip|gz|pdf|json|svg|sh|jpeg|ico|png|html)$ # Requires the regexp engine of Nginx to be enabled
pathType: ImplementationSpecific
backendService: mirrorbits
# - host: mirrors.jenkins.io
# paths:
# - path: /
# backendService: httpd
# - path: /.*[.](deb|hpi|war|rpm|msi|pkg|sha256|md5sum|zip|gz|pdf|json|svg|sh|jpeg|ico|png|html)$ # Requires the regexp engine of Nginx to be enabled
# pathType: ImplementationSpecific
# backendService: mirrorbits
# - host: mirrors.jenkins-ci.org
# paths:
# - path: /
# backendService: httpd
# - path: /.*[.](deb|hpi|war|rpm|msi|pkg|sha256|md5sum|zip|gz|pdf|json|svg|sh|jpeg|ico|png|html)$ # Requires the regexp engine of Nginx to be enabled
# pathType: ImplementationSpecific
# backendService: mirrorbits
# - host: fallback.get.jenkins.io
# paths:
# - path: /
# backendService: httpd
tls:
- secretName: get-jenkins-io-tls
hosts:
- azure.get.jenkins.io
# - mirrors.jenkins.io
# - mirrors.jenkins-ci.org
# - fallback.get.jenkins.io
storage:
enabled: true
claimNameTpl: '{{ include "mirrorbits-parent.pvc-name" $ }}'
storageClassName: azurefile-csi-premium
storageSize: 1000Gi
accessModes:
- ReadOnlyMany
persistentVolume:
azureFile:
resourceGroup: prod-core-releases
shareName: mirrorbits
readOnly: true
additionalSpec:
persistentVolumeReclaimPolicy: Retain
mountOptions:
- dir_mode=0755
- file_mode=0644
- uid=1000
- gid=1000
- mfsymlinks
- nobrl
- serverino
- cache=strict

mirrorbits-lite:
enabled: true
replicaCount: 2
resources:
limits:
cpu: 2
memory: 2048Mi
requests:
cpu: 500m
memory: 500Mi
nodeSelector:
kubernetes.io/arch: amd64
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app.kubernetes.io/name"
operator: In
values:
- mirrorbits
topologyKey: "kubernetes.io/hostname"

httpd:
enabled: true
replicaCount: 2
resources:
limits:
cpu: 800m
memory: 2048Mi
requests:
cpu: 200m
memory: 500Mi
nodeSelector:
kubernetes.io/arch: arm64
tolerations:
- key: "kubernetes.io/arch"
operator: "Equal"
value: "arm64"
effect: "NoSchedule"
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app.kubernetes.io/name"
operator: In
values:
- mirrorbits-files
topologyKey: "kubernetes.io/hostname"

rsyncd:
enabled: false

serviceaccount:
enabled: false

0 comments on commit c4daf67

Please sign in to comment.