Skip to content

Commit 92a1ffa

Browse files
committed
Add Harbor application resources including HelmRelease, HTTPRoute, PVC, and Namespace
1 parent 0190c3c commit 92a1ffa

File tree

8 files changed

+97
-3
lines changed

8 files changed

+97
-3
lines changed

ToDeploy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
- [ ] Nextcloud
1313
- [ ] Keycloak theme
1414
- [X] Openclaw
15-
- [ ] Coder https://github.com/Azure-Samples/aks-kueue-sample/blob/main/coder/
16-
- [ ] https://github.com/open-webui/helm-charts or https://www.librechat.ai
15+
- [X] Coder https://github.com/Azure-Samples/aks-kueue-sample/blob/main/coder/
16+
- [X] https://github.com/open-webui/helm-charts or https://www.librechat.ai
1717
- [ ] Grafana/Prometheus
1818
- [X] Forgejo
1919
- [X] Mailer and runners for ForgeJo
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
apiVersion: helm.toolkit.fluxcd.io/v2
3+
kind: HelmRelease
4+
metadata:
5+
name: harbor
6+
namespace: flux-system
7+
labels:
8+
app: harbor
9+
spec:
10+
interval: 10m
11+
timeout: 5m
12+
targetNamespace: harbor
13+
chart:
14+
spec:
15+
chart: harbor
16+
sourceRef:
17+
kind: HelmRepository
18+
name: harbor
19+
namespace: flux-system
20+
interval: 5m0s
21+
install:
22+
createNamespace: true
23+
remediation:
24+
retries: 3
25+
upgrade:
26+
remediation:
27+
retries: 3
28+
values:
29+
externalURL: "https://registry.vps.kubespaces.cloud" # Change this to your actual domain
30+
expose:
31+
type: clusterIP
32+
persistence:
33+
enabled: true
34+
persistentVolumeClaim:
35+
registry:
36+
existingClaim: harbor-pvc
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: source.toolkit.fluxcd.io/v1
3+
kind: HelmRepository
4+
metadata:
5+
name: harbor
6+
namespace: flux-system
7+
spec:
8+
interval: 1h
9+
url: https://helm.goharbor.io
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
apiVersion: gateway.networking.k8s.io/v1
3+
kind: HTTPRoute
4+
metadata:
5+
name: harbor
6+
namespace: harbor
7+
spec:
8+
parentRefs:
9+
- name: gateway
10+
namespace: istio-system
11+
sectionName: http # listener name on the Gateway
12+
hostnames:
13+
- "registry.vps.kubespaces.cloud" # Change this to your actual domain
14+
rules:
15+
- matches:
16+
- path:
17+
type: PathPrefix
18+
value: /
19+
backendRefs:
20+
- name: harbor
21+
port: 18789

gitops/apps/harbor/harbor-pvc.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: harbor-pvc
5+
namespace: harbor
6+
spec:
7+
accessModes:
8+
- ReadWriteOnce
9+
storageClassName: local-path
10+
resources:
11+
requests:
12+
storage: 10Gi
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- namespace.yaml
6+
- harbor-pvc.yaml
7+
- harbor-helmrepo.yaml
8+
- harbor-helmrelease.yaml
9+
- harbor-httproute.yaml

gitops/apps/harbor/namespace.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: harbor
6+
labels:
7+
name: harbor

ingress/traefik/dynamic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ http:
1616
routers:
1717
# HTTPS routers for all domains
1818
backend:
19-
rule: "Host(`coder.vps.kubespaces.cloud`) || Host(`chat.vps.kubespaces.cloud`) || Host(`talks.vps.kubespaces.cloud`) || Host(`next.vps.kubespaces.cloud`) || Host(`wiki.vps.kubespaces.cloud`) || Host(`claw.vps.kubespaces.cloud`) || Host(`supabase.vps.kubespaces.cloud`) || Host(`auth.vps.kubespaces.cloud`) || Host(`actual.vps.kubespaces.cloud`) || Host(`nginx.vps.kubespaces.cloud`) || Host(`registry.vps.kubespaces.cloud`) || Host(`grafana.vps.kubespaces.cloud`) || Host(`dash.vps.kubespaces.cloud`) || Host(`n8n.vps.kubespaces.cloud`) || Host(`s3.vps.kubespaces.cloud`) || Host(`code.vps.kubespaces.cloud`) || Host(`minecraft.vps.kubespaces.cloud`) || Host(`echo.vps.kubespaces.cloud`) || Host(`webhook.vps.kubespaces.cloud`) || Host(`helix.vps.kubespaces.cloud`) || Host(`rancher.vps.kubespaces.cloud`)"
19+
rule: "Host(`registry.vps.kubespaces.cloud`) || Host(`coder.vps.kubespaces.cloud`) || Host(`chat.vps.kubespaces.cloud`) || Host(`talks.vps.kubespaces.cloud`) || Host(`next.vps.kubespaces.cloud`) || Host(`wiki.vps.kubespaces.cloud`) || Host(`claw.vps.kubespaces.cloud`) || Host(`supabase.vps.kubespaces.cloud`) || Host(`auth.vps.kubespaces.cloud`) || Host(`actual.vps.kubespaces.cloud`) || Host(`nginx.vps.kubespaces.cloud`) || Host(`registry.vps.kubespaces.cloud`) || Host(`grafana.vps.kubespaces.cloud`) || Host(`dash.vps.kubespaces.cloud`) || Host(`n8n.vps.kubespaces.cloud`) || Host(`s3.vps.kubespaces.cloud`) || Host(`code.vps.kubespaces.cloud`) || Host(`minecraft.vps.kubespaces.cloud`) || Host(`echo.vps.kubespaces.cloud`) || Host(`webhook.vps.kubespaces.cloud`) || Host(`helix.vps.kubespaces.cloud`) || Host(`rancher.vps.kubespaces.cloud`)"
2020
entryPoints:
2121
- websecure
2222
service: backend-service

0 commit comments

Comments
 (0)