86 lines
1.8 KiB
YAML
86 lines
1.8 KiB
YAML
version: 1
|
|
kind: platform-infra-gitea
|
|
|
|
metadata:
|
|
id: gitea-internal-mirror
|
|
owner: unidesk
|
|
spec: GH-1548
|
|
relatedIssues:
|
|
- 1548
|
|
- 1549
|
|
|
|
defaults:
|
|
targetId: JD01
|
|
|
|
migration:
|
|
role: gitea-actions-driven-cicd-source-authority
|
|
replaces: branch-follower-self-maintained-branch-observer
|
|
parentConfigRef: config/cicd-gitea-actions-poc.yaml#spec.sourceAuthority.giteaMirror
|
|
envReusePolicy: preserve-existing-runtime-env-reuse
|
|
buildPlane: controlled-docker-or-buildkit-outside-runtime
|
|
runtimePlane: k3s-gitea-service-zero-docker
|
|
|
|
targets:
|
|
- id: JD01
|
|
route: JD01:k3s
|
|
namespace: devops-infra
|
|
role: active-poc
|
|
enabled: true
|
|
createNamespace: true
|
|
storageClassName: local-path
|
|
|
|
app:
|
|
name: gitea
|
|
statefulSetName: gitea
|
|
serviceName: gitea-http
|
|
replicas: 1
|
|
image:
|
|
repository: docker.gitea.com/gitea
|
|
tag: 1.26.4-rootless
|
|
pullPolicy: IfNotPresent
|
|
service:
|
|
type: ClusterIP
|
|
httpPort: 3000
|
|
sshPort: 2222
|
|
server:
|
|
domain: gitea-http.devops-infra.svc.cluster.local
|
|
rootUrl: http://gitea-http.devops-infra.svc.cluster.local:3000/
|
|
sshDomain: gitea-http.devops-infra.svc.cluster.local
|
|
protocol: http
|
|
startSshServer: true
|
|
database:
|
|
type: sqlite3
|
|
path: /var/lib/gitea/gitea.db
|
|
actions:
|
|
enabled: true
|
|
registration:
|
|
disabled: true
|
|
storage:
|
|
data:
|
|
size: 8Gi
|
|
mountPath: /var/lib/gitea
|
|
config:
|
|
size: 1Gi
|
|
mountPath: /etc/gitea
|
|
securityContext:
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
fsGroup: 1000
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
probes:
|
|
healthPath: /api/healthz
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 12
|
|
|
|
validation:
|
|
waitTimeoutSeconds: 55
|
|
healthPath: /api/healthz
|