about summary refs log tree commit diff
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-29 23:17:27 +0200
committermakefunstuff <[email protected]>2024-06-29 23:17:27 +0200
commit4defe72bf922e8e025e8558a2606d833f0a90e53 (patch)
treec541d03344d7da68f928cb9c7760db23cd628c66
parent0b5656eaa25d59f5612b837a7b408eaa9fc9ca07 (diff)
downloadk3s-lab-4defe72bf922e8e025e8558a2606d833f0a90e53.tar.gz
add gitea
Diffstat (limited to '')
-rw-r--r--cd/third-party-apps.yaml28
-rwxr-xr-xscripts/add-apps1
-rw-r--r--third-party-apps/gitea/Chart.yaml11
-rw-r--r--third-party-apps/gitea/values.yaml25
4 files changed, 65 insertions, 0 deletions
diff --git a/cd/third-party-apps.yaml b/cd/third-party-apps.yaml
new file mode 100644
index 0000000..e583c81
--- /dev/null
+++ b/cd/third-party-apps.yaml
@@ -0,0 +1,28 @@
+apiVersion: argoproj.io/v1alpha1
+kind: ApplicationSet
+metadata:
+  name: third-party-apps-applicationset
+  namespace: default
+spec:
+  generators:
+  - list:
+      elements:
+      - chart: gitea
+        path: third-party-apps/gitea
+  template:
+    metadata:
+      name: '{{chart}}'
+    spec:
+      project: default
+      source:
+        repoURL: 'https://github.com/makefunstuff/k3s-lab'
+        targetRevision: HEAD
+        path: '{{path}}'
+      destination:
+        server: 'https://kubernetes.default.svc'
+        namespace: apps
+      syncPolicy:
+        automated:
+          prune: true
+          selfHeal: true
+
diff --git a/scripts/add-apps b/scripts/add-apps
index 0756434..ce96589 100755
--- a/scripts/add-apps
+++ b/scripts/add-apps
@@ -3,3 +3,4 @@
 set -e
 
 kubectl apply -f cd/tools.yaml
+kubectl apply -f cd/third-party-apps.yaml
diff --git a/third-party-apps/gitea/Chart.yaml b/third-party-apps/gitea/Chart.yaml
new file mode 100644
index 0000000..acfbd45
--- /dev/null
+++ b/third-party-apps/gitea/Chart.yaml
@@ -0,0 +1,11 @@
+apiVersion: v2
+name: gitea
+description: A Helm chart for setting up Gitea
+version: 0.1.0
+appVersion: "1.0"
+
+dependencies:
+  - name: gitea
+    version: 10.2.0
+    repository: "https://dl.gitea.io/charts"
+
diff --git a/third-party-apps/gitea/values.yaml b/third-party-apps/gitea/values.yaml
new file mode 100644
index 0000000..53f3430
--- /dev/null
+++ b/third-party-apps/gitea/values.yaml
@@ -0,0 +1,25 @@
+gitea:
+  ingress:
+    enabled: true
+    className: traefik
+    annotations:
+      traefik.ingress.kubernetes.io/router.entrypoints: websecure
+      traefik.ingress.kubernetes.io/router.tls: "true"
+      traefik.ingress.kubernetes.io/router.tls.certresolver: "default"
+      traefik.ingress.kubernetes.io/redirect-entry-point: https
+      cert-manager.io/cluster-issuer: letsencrypt-prod
+    hosts:
+      - host: git.topkek.cloud
+        paths:
+          - path: /
+            pathType: Prefix
+    tls:
+      - hosts:
+          - git.topkek.cloud
+        secretName: gitea-tls
+  gitea:
+    metrics:
+      enabled: true
+      serviceMonitor:
+        enabled: true
+