2023-08-03 15:18:01 +00:00
|
|
|
gitea:
|
2021-11-06 17:12:48 +00:00
|
|
|
enabled: false
|
|
|
|
|
2023-12-14 22:05:05 +00:00
|
|
|
image:
|
2024-10-16 12:49:32 +00:00
|
|
|
tag: 1.22.3
|
2023-12-14 22:05:05 +00:00
|
|
|
rootless: true
|
2021-11-06 20:30:32 +00:00
|
|
|
|
2023-08-03 15:18:01 +00:00
|
|
|
repliaCount: 1
|
2022-01-19 23:04:35 +00:00
|
|
|
|
2023-08-03 15:18:01 +00:00
|
|
|
# We use RWO persistence
|
|
|
|
strategy:
|
|
|
|
type: "Recreate"
|
2021-11-08 15:54:48 +00:00
|
|
|
|
2023-08-03 15:18:01 +00:00
|
|
|
# Since V9 they default to RWX and deployment, we default to old existing RWO from statefulset
|
|
|
|
persistence:
|
2024-05-17 11:37:57 +00:00
|
|
|
claimName: data-gitea-0
|
2023-08-03 15:18:01 +00:00
|
|
|
size: 4Gi
|
2021-11-08 15:54:48 +00:00
|
|
|
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- ALL
|
|
|
|
add:
|
|
|
|
- SYS_CHROOT
|
|
|
|
|
2022-12-22 16:17:20 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: "150m"
|
|
|
|
memory: "320Mi"
|
|
|
|
limits:
|
|
|
|
memory: "2048Mi"
|
|
|
|
|
2023-11-22 17:51:09 +00:00
|
|
|
extraVolumes:
|
|
|
|
- name: gitea-themes
|
|
|
|
configMap:
|
|
|
|
name: gitea-kubezero-ci-themes
|
|
|
|
|
|
|
|
extraVolumeMounts:
|
|
|
|
- name: gitea-themes
|
|
|
|
readOnly: true
|
2024-03-24 18:49:08 +00:00
|
|
|
mountPath: "/data/gitea/public/assets/css"
|
2023-11-22 17:51:09 +00:00
|
|
|
|
|
|
|
checkDeprecation: false
|
|
|
|
test:
|
|
|
|
enabled: false
|
|
|
|
|
2021-11-08 15:54:48 +00:00
|
|
|
gitea:
|
|
|
|
admin:
|
|
|
|
existingSecret: gitea-admin-secret
|
|
|
|
|
|
|
|
# Enable to install demo creds
|
|
|
|
demo: false
|
|
|
|
|
|
|
|
metrics:
|
|
|
|
enabled: false
|
|
|
|
serviceMonitor:
|
2023-01-11 12:08:18 +00:00
|
|
|
enabled: true
|
2021-11-08 15:54:48 +00:00
|
|
|
|
|
|
|
config:
|
|
|
|
database:
|
|
|
|
DB_TYPE: sqlite3
|
|
|
|
cache:
|
|
|
|
ADAPTER: memory
|
2023-08-03 15:18:01 +00:00
|
|
|
session:
|
|
|
|
PROVIDER: memory
|
|
|
|
queue:
|
|
|
|
TYPE: level
|
2023-11-22 17:51:09 +00:00
|
|
|
ui:
|
2024-06-13 15:26:14 +00:00
|
|
|
THEMES: "gitea-light,gitea-dark,github-dark"
|
|
|
|
DEFAULT_THEME: "gitea-dark"
|
2024-03-24 18:49:08 +00:00
|
|
|
log:
|
|
|
|
LEVEL: warn
|
2021-11-08 15:54:48 +00:00
|
|
|
|
2023-08-03 15:18:01 +00:00
|
|
|
redis-cluster:
|
2022-01-19 23:04:35 +00:00
|
|
|
enabled: false
|
2023-08-03 15:18:01 +00:00
|
|
|
postgresql-ha:
|
2022-01-19 23:04:35 +00:00
|
|
|
enabled: false
|
2023-08-03 15:18:01 +00:00
|
|
|
postgresql:
|
2022-01-19 23:04:35 +00:00
|
|
|
enabled: false
|
2021-11-08 15:54:48 +00:00
|
|
|
|
|
|
|
istio:
|
|
|
|
enabled: false
|
|
|
|
gateway: istio-ingress/private-ingressgateway
|
2022-01-19 23:04:35 +00:00
|
|
|
url: git.example.com
|
|
|
|
|
2021-11-08 15:54:48 +00:00
|
|
|
|
2021-11-06 17:12:48 +00:00
|
|
|
jenkins:
|
|
|
|
enabled: false
|
2021-12-03 21:16:22 +00:00
|
|
|
|
2021-12-19 22:18:01 +00:00
|
|
|
controller:
|
2024-03-12 16:17:37 +00:00
|
|
|
image:
|
2024-06-21 11:46:39 +00:00
|
|
|
tag: alpine-jdk21
|
2024-03-12 16:17:37 +00:00
|
|
|
#tagLabel: alpine
|
2021-12-19 22:18:01 +00:00
|
|
|
disableRememberMe: true
|
|
|
|
prometheus:
|
|
|
|
enabled: false
|
|
|
|
testEnabled: false
|
2022-01-19 23:04:35 +00:00
|
|
|
enableRawHtmlMarkupFormatter: true
|
2022-04-08 15:11:34 +00:00
|
|
|
javaOpts: "-XX:+UseContainerSupport -XX:+UseStringDeduplication -Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-popups; default-src 'none'; img-src 'self' cdn.zero-downtime.net; style-src 'unsafe-inline';\""
|
2023-06-23 16:48:00 +00:00
|
|
|
jenkinsOpts: "--sessionTimeout=300 --sessionEviction=10800"
|
2022-01-19 23:04:35 +00:00
|
|
|
|
2024-04-25 15:36:09 +00:00
|
|
|
# Until we setup the logging and metrics pipelines in OTEL
|
|
|
|
containerEnv:
|
|
|
|
- name: OTEL_LOGS_EXPORTER
|
|
|
|
value: "none"
|
|
|
|
- name: OTEL_METRICS_EXPORTER
|
|
|
|
value: "none"
|
|
|
|
|
2022-01-19 23:04:35 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: "250m"
|
|
|
|
memory: "1280Mi"
|
|
|
|
limits:
|
2022-12-22 16:17:20 +00:00
|
|
|
#cpu: "2000m"
|
2022-01-19 23:04:35 +00:00
|
|
|
memory: "4096Mi"
|
|
|
|
initContainerResources:
|
|
|
|
requests:
|
|
|
|
cpu: "50m"
|
|
|
|
memory: "256Mi"
|
|
|
|
limits:
|
2022-12-22 16:17:20 +00:00
|
|
|
#cpu: "1000m"
|
2022-01-19 23:04:35 +00:00
|
|
|
memory: "1024Mi"
|
|
|
|
|
|
|
|
JCasC:
|
|
|
|
configScripts:
|
|
|
|
zdt-settings: |
|
|
|
|
jenkins:
|
|
|
|
noUsageStatistics: true
|
|
|
|
disabledAdministrativeMonitors:
|
|
|
|
- "jenkins.security.ResourceDomainRecommendation"
|
2023-10-02 12:57:25 +00:00
|
|
|
appearance:
|
|
|
|
themeManager:
|
|
|
|
disableUserThemes: true
|
|
|
|
theme: "dark"
|
2022-01-19 23:04:35 +00:00
|
|
|
unclassified:
|
2024-04-25 15:36:09 +00:00
|
|
|
openTelemetry:
|
|
|
|
configurationProperties: |-
|
|
|
|
otel.exporter.otlp.protocol=grpc
|
|
|
|
otel.instrumentation.jenkins.web.enabled=false
|
|
|
|
ignoredSteps: "dir,echo,isUnix,pwd,properties"
|
|
|
|
#endpoint: "telemetry-jaeger-collector.telemetry:4317"
|
|
|
|
exportOtelConfigurationAsEnvironmentVariables: false
|
|
|
|
#observabilityBackends:
|
|
|
|
# - jaeger:
|
|
|
|
# jaegerBaseUrl: "https://jaeger.example.com"
|
|
|
|
# name: "KubeZero Jaeger"
|
|
|
|
serviceName: "Jenkins"
|
2022-01-19 23:04:35 +00:00
|
|
|
buildDiscarders:
|
|
|
|
configuredBuildDiscarders:
|
|
|
|
- "jobBuildDiscarder"
|
|
|
|
- defaultBuildDiscarder:
|
|
|
|
discarder:
|
|
|
|
logRotator:
|
|
|
|
artifactDaysToKeepStr: "32"
|
|
|
|
artifactNumToKeepStr: "10"
|
|
|
|
daysToKeepStr: "100"
|
|
|
|
numToKeepStr: "10"
|
|
|
|
|
|
|
|
installPlugins:
|
2023-09-13 18:50:45 +00:00
|
|
|
- kubernetes
|
|
|
|
- kubernetes-credentials-provider
|
|
|
|
- workflow-aggregator
|
|
|
|
- git
|
|
|
|
- basic-branch-build-strategies
|
|
|
|
- pipeline-graph-view
|
|
|
|
- pipeline-stage-view
|
|
|
|
- configuration-as-code
|
|
|
|
- antisamy-markup-formatter
|
|
|
|
- prometheus
|
|
|
|
- htmlpublisher
|
|
|
|
- build-discarder
|
|
|
|
- dark-theme
|
2023-10-02 12:57:25 +00:00
|
|
|
- matrix-auth
|
2024-01-29 14:02:50 +00:00
|
|
|
- reverse-proxy-auth-plugin
|
2024-04-25 15:36:09 +00:00
|
|
|
- opentelemetry
|
2022-01-19 23:04:35 +00:00
|
|
|
|
|
|
|
serviceAccountAgent:
|
|
|
|
create: true
|
|
|
|
name: jenkins-podman-aws
|
|
|
|
|
|
|
|
# Preconfigure agents to use zdt podman requires fuse/overlayfs
|
|
|
|
agent:
|
2024-03-12 16:17:37 +00:00
|
|
|
image:
|
|
|
|
repository: public.ecr.aws/zero-downtime/jenkins-podman
|
2024-08-09 16:09:42 +00:00
|
|
|
tag: v0.6.2
|
2022-04-08 15:11:34 +00:00
|
|
|
#alwaysPullImage: true
|
2022-01-19 23:04:35 +00:00
|
|
|
podRetention: "Default"
|
|
|
|
showRawYaml: false
|
|
|
|
podName: "podman-aws"
|
2024-06-17 16:42:09 +00:00
|
|
|
defaultsProviderTemplate: "podman-aws"
|
2023-11-24 13:05:33 +00:00
|
|
|
annotations:
|
2024-08-09 10:52:23 +00:00
|
|
|
container.apparmor.security.beta.kubernetes.io/jnlp: "unconfined"
|
|
|
|
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
|
2022-01-19 23:04:35 +00:00
|
|
|
customJenkinsLabels:
|
|
|
|
- podman-aws-trivy
|
2023-10-02 12:57:25 +00:00
|
|
|
idleMinutes: 30
|
2022-04-08 15:11:34 +00:00
|
|
|
containerCap: 2
|
2023-01-22 16:24:58 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: ""
|
|
|
|
memory: ""
|
|
|
|
limits:
|
|
|
|
cpu: ""
|
|
|
|
memory: ""
|
2022-01-19 23:04:35 +00:00
|
|
|
# envVars:
|
|
|
|
# - name: AWS_WEB_IDENTITY_TOKEN_FILE
|
|
|
|
# value: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token"
|
|
|
|
# - name: AWS_STS_REGIONAL_ENDPOINTS
|
|
|
|
# value: regional
|
|
|
|
# - name: AWS_ROLE_ARN
|
|
|
|
# value: "<IAM ROLE ARN>"
|
|
|
|
yamlMergeStrategy: "merge"
|
2024-06-13 15:26:14 +00:00
|
|
|
inheritYamlMergeStrategy: true
|
2024-06-21 11:46:39 +00:00
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
serviceAccount: jenkins-podman-aws
|
2022-01-19 23:04:35 +00:00
|
|
|
yamlTemplate: |-
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
spec:
|
2022-07-08 08:53:08 +00:00
|
|
|
securityContext:
|
|
|
|
fsGroup: 1000
|
2022-01-19 23:04:35 +00:00
|
|
|
containers:
|
|
|
|
- name: jnlp
|
|
|
|
resources:
|
2022-12-22 16:17:20 +00:00
|
|
|
requests:
|
2024-08-09 10:52:23 +00:00
|
|
|
cpu: "200m"
|
|
|
|
memory: "512Mi"
|
2022-01-19 23:04:35 +00:00
|
|
|
limits:
|
2022-12-22 16:17:20 +00:00
|
|
|
cpu: "4"
|
|
|
|
memory: "6144Mi"
|
2022-01-19 23:04:35 +00:00
|
|
|
github.com/fuse: 1
|
|
|
|
volumeMounts:
|
|
|
|
- name: aws-token
|
|
|
|
mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/"
|
|
|
|
readOnly: true
|
2022-08-23 14:32:33 +00:00
|
|
|
- name: host-registries-conf
|
|
|
|
mountPath: "/home/jenkins/.config/containers/registries.conf"
|
|
|
|
readOnly: true
|
2022-01-19 23:04:35 +00:00
|
|
|
volumes:
|
|
|
|
- name: aws-token
|
|
|
|
projected:
|
|
|
|
sources:
|
|
|
|
- serviceAccountToken:
|
|
|
|
path: token
|
|
|
|
expirationSeconds: 86400
|
|
|
|
audience: "sts.amazonaws.com"
|
2022-08-23 14:32:33 +00:00
|
|
|
- name: host-registries-conf
|
|
|
|
hostPath:
|
|
|
|
path: /etc/containers/registries.conf
|
|
|
|
type: File
|
2021-12-19 22:18:01 +00:00
|
|
|
|
2022-08-10 14:01:26 +00:00
|
|
|
rbac:
|
|
|
|
readSecrets: true
|
|
|
|
|
2021-12-19 22:18:01 +00:00
|
|
|
persistence:
|
2022-01-19 23:04:35 +00:00
|
|
|
size: "4Gi"
|
2021-12-19 22:18:01 +00:00
|
|
|
|
|
|
|
istio:
|
|
|
|
enabled: false
|
|
|
|
gateway: istio-ingress/private-ingressgateway
|
|
|
|
url: jenkins.example.com
|
2022-01-19 23:04:35 +00:00
|
|
|
|
|
|
|
# Dedicated VirtualService for webhooks
|
|
|
|
webhook:
|
|
|
|
enabled: false
|
|
|
|
gateway: istio-ingress/ingressgateway
|
|
|
|
url: jenkins-webhook.example.com
|
|
|
|
|
2022-04-28 09:17:49 +00:00
|
|
|
# Remote Agents
|
|
|
|
agent:
|
|
|
|
enabled: false
|
|
|
|
gateway: istio-ingress/private-ingressgateway
|
|
|
|
url: jenkins-agent.example.com
|
|
|
|
|
2022-01-19 23:04:35 +00:00
|
|
|
trivy:
|
|
|
|
enabled: false
|
2022-12-06 15:41:17 +00:00
|
|
|
image:
|
2024-10-16 12:49:32 +00:00
|
|
|
tag: 0.56.2
|
2022-01-19 23:04:35 +00:00
|
|
|
persistence:
|
|
|
|
enabled: true
|
|
|
|
size: 1Gi
|
|
|
|
rbac:
|
|
|
|
create: false
|
2023-08-03 15:18:01 +00:00
|
|
|
|
|
|
|
renovate:
|
|
|
|
enabled: false
|
2023-08-16 10:17:39 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
LOG_FORMAT: json
|
|
|
|
cronjob:
|
|
|
|
concurrencyPolicy: Forbid
|
|
|
|
jobBackoffLimit: 3
|
|
|
|
schedule: "0 3 * * *"
|
|
|
|
successfulJobsHistoryLimit: 1
|
|
|
|
securityContext:
|
|
|
|
fsGroup: 1000
|