Skip to content

Commit

Permalink
feat(publick8s): add stats.jenkins.io service (#5325)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve authored Jun 19, 2024
1 parent 8c50afc commit db9b47b
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clusters/publick8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,11 @@ releases:
- "../config/docs.jenkins.io.yaml"
secrets:
- "../secrets/config/docs.jenkins.io/secrets.yaml"
- name: stats-jenkins-io
namespace: stats-jenkins-io
chart: jenkins-infra/nginx-website
version: 0.1.3
values:
- "../config/stats.jenkins.io.yaml"
secrets:
- "../secrets/config/stats.jenkins.io/secrets.yaml"
51 changes: 51 additions & 0 deletions config/stats.jenkins.io.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
ingress:
enabled: true
className: public-nginx
annotations:
"cert-manager.io/cluster-issuer": "letsencrypt-prod"
"nginx.ingress.kubernetes.io/ssl-redirect": "true"
hosts:
- host: new.stats.jenkins.io
paths:
- path: /
serviceName: stats-jenkins-io
tls:
- secretName: stats-jenkins-io-tls
hosts:
- new.stats.jenkins.io

resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 100m
memory: 128Mi
htmlVolume:
azureFile:
secretName: stats-jenkins-io-nginx-website
shareName: stats-jenkins-io
readOnly: true

replicaCount: 2

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:
- stats-jenkins-io
topologyKey: "kubernetes.io/hostname"

0 comments on commit db9b47b

Please sign in to comment.