add gitea

This commit is contained in:
TapTap committed 2026-10-19 20:19:21 +02:00
1 parent f8659f975d
commit 3f074ea306
4 files changed
+138

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ spec:
- path: "plex"
- path: "cert-manager"
- path: "cloudflare-ddns"
- path: "gitea"
template:
metadata:
name: "{{ index .path.segments 0 }}"
+15
View File
@@ -0,0 +1,15 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: gitea-runner-registration-token
spec:
refreshPolicy: CreatedOnce
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
target:
name: gitea-runner-registration-token
dataFrom:
- extract:
key: gitea
+116
View File
@@ -0,0 +1,116 @@
apiVersion: v1
kind: Namespace
metadata:
name: gitea
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-deployment
labels:
app: gitea
spec:
replicas: 1
selector:
matchLabels:
app: gitea
template:
metadata:
labels:
app: gitea
spec:
containers:
- name: gitea
image: gitea/gitea:latest
ports:
- name: http
containerPort: 3000
- name: ssh
containerPort: 2222
env:
- name: TZ
value: Europe/Berlin
volumeMounts:
- name: gitea-data
mountPath: /data
volumes:
- name: gitea-data
hostPath:
path: /root/kubernetes/gitea/data/data
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-runner-deployment
labels:
app: gitea-runner
spec:
replicas: 1
selector:
matchLabels:
app: gitea-runner
template:
metadata:
labels:
app: gitea-runner
spec:
containers:
- name: gitea-runner
image: gitea/runner:latest
env:
- name: GITEA_INSTANCE_URL
value: http://gitea-service:80
- name: DOCKER_HOST
value: tcp://localhost:2375
- secretRef:
name: gitea-runner-registration-token
resources:
limits:
memory: "2Gi"
- name: dind
image: docker:dind
securityContext:
privileged: true
env:
- name: DOCKER_TLS_CERTDIR
value: ""
resources:
limits:
memory: "2Gi"
---
apiVersion: v1
kind: Service
metadata:
name: gitea-service
spec:
selector:
app: gitea
ports:
- name: http
protocol: TCP
port: 80
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea-ingress
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-issuer"
spec:
ingressClassName: "traefik"
tls:
- hosts:
- gitea.tap-tap.win
secretName: gitea-tls-secret
rules:
- host: gitea.tap-tap.win
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gitea-service
port:
number: 80
+6
View File
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: gitea
resources:
- gitea.yaml
- external-secret.yaml