From db9b47b2e6f22af6677e8f689c917fe3abc746ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= <91831478+lemeurherve@users.noreply.github.com> Date: Wed, 19 Jun 2024 12:45:28 +0200 Subject: [PATCH] feat(publick8s): add `stats.jenkins.io` service (#5325) --- clusters/publick8s.yaml | 8 ++++++ config/stats.jenkins.io.yaml | 51 ++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 config/stats.jenkins.io.yaml diff --git a/clusters/publick8s.yaml b/clusters/publick8s.yaml index e640d3b66..6759c83b1 100644 --- a/clusters/publick8s.yaml +++ b/clusters/publick8s.yaml @@ -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" diff --git a/config/stats.jenkins.io.yaml b/config/stats.jenkins.io.yaml new file mode 100644 index 000000000..11efe1082 --- /dev/null +++ b/config/stats.jenkins.io.yaml @@ -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"