feat: initial gitea-k3s-deployer service, web UI, tests, and K3s/Depot manifests
Build and Push Image / build (push) Failing after 5s

This commit is contained in:
nandi committed 2026-11-17 21:11:30 +00:00
commit bf229aeed2
23 files changed
+2702

No files matched your search

+84
View File
@@ -0,0 +1,84 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gitea-deployer-data
namespace: gitea-deployer
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 256Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-k3s-deployer
namespace: gitea-deployer
labels:
app: gitea-k3s-deployer
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: gitea-k3s-deployer
template:
metadata:
labels:
app: gitea-k3s-deployer
spec:
serviceAccountName: gitea-k3s-deployer
imagePullSecrets:
- name: gitea-registry-secret
containers:
- name: deployer
image: git.site.latha.org/experiments/gitea-k3s-deployer:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
name: http
envFrom:
- secretRef:
name: gitea-deployer-secrets
optional: true
env:
- name: PORT
value: "8080"
- name: GITEA_URL
value: "https://git.site.latha.org"
- name: KUBE_MODE
value: "in-cluster"
- name: ALLOWED_OWNERS
value: "experiments,nandi"
- name: DATA_FILE
value: "/data/state.json"
- name: DEFAULT_IMAGE_PULL_SECRET
value: "gitea-registry-secret"
readinessProbe:
httpGet:
path: /readyz
port: http
initialDelaySeconds: 2
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 500m
memory: 256Mi
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
persistentVolumeClaim:
claimName: gitea-deployer-data
+22
View File
@@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea-k3s-deployer
namespace: gitea-deployer
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
traefik.ingress.kubernetes.io/router.tls.domains.0.main: deploy.site.latha.org
spec:
ingressClassName: traefik
rules:
- host: deploy.site.latha.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gitea-k3s-deployer
port:
number: 80
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: gitea-deployer
labels:
app.kubernetes.io/name: gitea-k3s-deployer
+33
View File
@@ -0,0 +1,33 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitea-k3s-deployer
namespace: gitea-deployer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: gitea-k3s-deployer
rules:
- apiGroups: [""]
resources: ["namespaces", "services", "configmaps", "secrets", "persistentvolumeclaims"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gitea-k3s-deployer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: gitea-k3s-deployer
subjects:
- kind: ServiceAccount
name: gitea-k3s-deployer
namespace: gitea-deployer
+12
View File
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: gitea-k3s-deployer
namespace: gitea-deployer
spec:
selector:
app: gitea-k3s-deployer
ports:
- port: 80
targetPort: http
protocol: TCP