From da365d0667a0fb00abafa6ac4655dcdf29aa0812 Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Mon, 8 Sep 2025 07:14:27 +0200 Subject: [PATCH] fix --- charts/apps/gitea/templates/deployment.yaml | 4 +- charts/apps/gitea/templates/service.yaml | 14 +++---- charts/apps/harbor/Chart.yaml | 3 -- charts/apps/harbor/templates/helm.yaml | 38 ------------------- .../apps/harbor/templates/http-service.yaml | 11 ------ charts/apps/harbor/values.yaml | 3 -- 6 files changed, 10 insertions(+), 63 deletions(-) delete mode 100644 charts/apps/harbor/Chart.yaml delete mode 100644 charts/apps/harbor/templates/helm.yaml delete mode 100644 charts/apps/harbor/templates/http-service.yaml delete mode 100644 charts/apps/harbor/values.yaml diff --git a/charts/apps/gitea/templates/deployment.yaml b/charts/apps/gitea/templates/deployment.yaml index 7c6de86..b0e8788 100644 --- a/charts/apps/gitea/templates/deployment.yaml +++ b/charts/apps/gitea/templates/deployment.yaml @@ -42,7 +42,9 @@ spec: - name: USER_GID value: "1000" - name: GITEA__server__SSH_DOMAIN - value: gitea-ssh.olsen.cloud + value: ssh-gitea.olsen.cloud + - name: GITEA__server__SSH_PORT + value: "2205" - name: GITEA__service__REQUIRE_EXTERNAL_REGISTRATION_PASSWORD value: "true" #- name: GITEA__service__ENABLE_BASIC_AUTHENTICATION diff --git a/charts/apps/gitea/templates/service.yaml b/charts/apps/gitea/templates/service.yaml index 61eac02..1c09f6d 100644 --- a/charts/apps/gitea/templates/service.yaml +++ b/charts/apps/gitea/templates/service.yaml @@ -1,9 +1,9 @@ apiVersion: v1 kind: Service metadata: - name: '{{ .Release.Name }}' + name: "{{ .Release.Name }}" labels: - app: '{{ .Release.Name }}' + app: "{{ .Release.Name }}" spec: type: ClusterIP ports: @@ -12,21 +12,21 @@ spec: protocol: TCP name: http selector: - app: '{{ .Release.Name }}' + app: "{{ .Release.Name }}" --- apiVersion: v1 kind: Service metadata: - name: '{{ .Release.Name }}-ssh' + name: "{{ .Release.Name }}-ssh" labels: - app: '{{ .Release.Name }}' + app: "{{ .Release.Name }}" spec: type: LoadBalancer ports: - - port: 2202 + - port: 2205 targetPort: 22 protocol: TCP name: ssh selector: - app: '{{ .Release.Name }}' + app: "{{ .Release.Name }}" diff --git a/charts/apps/harbor/Chart.yaml b/charts/apps/harbor/Chart.yaml deleted file mode 100644 index 9683fee..0000000 --- a/charts/apps/harbor/Chart.yaml +++ /dev/null @@ -1,3 +0,0 @@ -apiVersion: v2 -version: 1.0.0 -name: monitoring diff --git a/charts/apps/harbor/templates/helm.yaml b/charts/apps/harbor/templates/helm.yaml deleted file mode 100644 index 56d6b28..0000000 --- a/charts/apps/harbor/templates/helm.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: source.toolkit.fluxcd.io/v1 -kind: HelmRepository -metadata: - name: '{{ .Release.Name }}' -spec: - interval: 1h - url: https://helm.goharbor.io - ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: '{{ .Release.Name }}' -spec: - chart: - spec: - chart: harbor - reconcileStrategy: ChartVersion - sourceRef: - apiVersion: source.toolkit.fluxcd.io/v1 - kind: HelmRepository - name: '{{ .Release.Name }}' - namespace: '{{ .Release.Namespace }}' - interval: 1h - values: - persistence: - persistentVolumeClaim: - registry: - storageClass: '{{ .Values.globals.environment }}' - jobservice: - jobLog: - storageClass: '{{ .Values.globals.environment }}' - database: - storageClass: '{{ .Values.globals.environment }}' - redis: - storageClass: '{{ .Values.globals.environment }}' - trivy: - storageClass: '{{ .Values.globals.environment }}' diff --git a/charts/apps/harbor/templates/http-service.yaml b/charts/apps/harbor/templates/http-service.yaml deleted file mode 100644 index 2233b00..0000000 --- a/charts/apps/harbor/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: '{{ .Release.Name }}' -spec: - environment: '{{ .Values.globals.environment }}' - subdomain: '{{ .Values.subdomain }}' - destination: - host: '{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local' - port: - number: 80 diff --git a/charts/apps/harbor/values.yaml b/charts/apps/harbor/values.yaml deleted file mode 100644 index 38f1ce5..0000000 --- a/charts/apps/harbor/values.yaml +++ /dev/null @@ -1,3 +0,0 @@ -globals: - environment: prod -subdomain: harbor \ No newline at end of file