feat: add optional ingress for jenkins-agents
This commit is contained in:
parent
5a04ac78d5
commit
eafd8a8429
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: kubezero-ci
|
name: kubezero-ci
|
||||||
description: KubeZero umbrella chart for all things CI
|
description: KubeZero umbrella chart for all things CI
|
||||||
type: application
|
type: application
|
||||||
version: 0.4.45
|
version: 0.4.46
|
||||||
home: https://kubezero.com
|
home: https://kubezero.com
|
||||||
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
||||||
keywords:
|
keywords:
|
||||||
@ -26,7 +26,7 @@ dependencies:
|
|||||||
repository: https://dl.gitea.io/charts/
|
repository: https://dl.gitea.io/charts/
|
||||||
condition: gitea.enabled
|
condition: gitea.enabled
|
||||||
- name: jenkins
|
- name: jenkins
|
||||||
version: 3.11.10
|
version: 3.12.0
|
||||||
repository: https://charts.jenkins.io
|
repository: https://charts.jenkins.io
|
||||||
condition: jenkins.enabled
|
condition: jenkins.enabled
|
||||||
- name: trivy
|
- name: trivy
|
||||||
|
@ -44,4 +44,23 @@ spec:
|
|||||||
method:
|
method:
|
||||||
exact: "POST"
|
exact: "POST"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.jenkins.istio.agent.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: networking.istio.io/v1beta1
|
||||||
|
kind: VirtualService
|
||||||
|
metadata:
|
||||||
|
name: {{ template "kubezero-lib.fullname" (merge (dict "subchart" "jenkins") .) }}-agent
|
||||||
|
namespace: {{ template "jenkins.namespace" . }}
|
||||||
|
spec:
|
||||||
|
hosts:
|
||||||
|
- {{ .Values.jenkins.istio.agent.url }}
|
||||||
|
gateways:
|
||||||
|
- {{ .Values.jenkins.istio.agent.gateway }}
|
||||||
|
http:
|
||||||
|
- route:
|
||||||
|
- destination:
|
||||||
|
host: {{ template "kubezero-lib.fullname" (merge (dict "subchart" "jenkins") .) }}
|
||||||
|
port:
|
||||||
|
number: 50000
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -194,6 +194,12 @@ jenkins:
|
|||||||
gateway: istio-ingress/ingressgateway
|
gateway: istio-ingress/ingressgateway
|
||||||
url: jenkins-webhook.example.com
|
url: jenkins-webhook.example.com
|
||||||
|
|
||||||
|
# Remote Agents
|
||||||
|
agent:
|
||||||
|
enabled: false
|
||||||
|
gateway: istio-ingress/private-ingressgateway
|
||||||
|
url: jenkins-agent.example.com
|
||||||
|
|
||||||
trivy:
|
trivy:
|
||||||
enabled: false
|
enabled: false
|
||||||
persistence:
|
persistence:
|
||||||
|
Loading…
Reference in New Issue
Block a user