Replace namespace with chart namespace

This commit is contained in:
j 2025-07-10 16:33:48 +10:00
parent 8e62b66b97
commit 71971b7e07
15 changed files with 53 additions and 58 deletions

View file

@ -1,14 +1,9 @@
--- ---
apiVersion: v1
kind: Namespace
metadata:
name: ai
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: openwebui name: openwebui
namespace: ai namespace: {{ .Release.Namespace }}
spec: spec:
replicas: 1 replicas: 1
selector: selector:
@ -40,7 +35,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: openwebui name: openwebui
namespace: ai namespace: {{ .Release.Namespace }}
spec: spec:
selector: selector:
app: openwebui app: openwebui
@ -53,7 +48,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: openwebui name: openwebui
namespace: ai namespace: {{ .Release.Namespace }}
annotations: annotations:
kubernetes.io/ingress.class: "traefik" kubernetes.io/ingress.class: "traefik"
external-dns.alpha.kubernetes.io/hostname: nc.hxme.net external-dns.alpha.kubernetes.io/hostname: nc.hxme.net

View file

@ -8,7 +8,7 @@ apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: authentik name: authentik
namespace: flux-system namespace: {{ .Release.Namespace }}
spec: spec:
url: https://charts.goauthentik.io/ url: https://charts.goauthentik.io/
interval: 1h interval: 1h
@ -17,7 +17,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: wildcard-hxme-net name: wildcard-hxme-net
namespace: authentik namespace: {{ .Release.Namespace }}
annotations: annotations:
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net
--- ---
@ -25,7 +25,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: authentik name: authentik
namespace: authentik namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -35,7 +35,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: authentik name: authentik
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: true createNamespace: true
upgrade: upgrade:

View file

@ -3,7 +3,7 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: bind-master-config name: bind-master-config
namespace: dns namespace: {{ .Release.Namespace }}
data: data:
named.conf: | named.conf: |
include "/etc/bind/externaldns-key.conf"; include "/etc/bind/externaldns-key.conf";
@ -52,7 +52,7 @@ apiVersion: apps/v1
kind: DaemonSet kind: DaemonSet
metadata: metadata:
name: bind-master name: bind-master
namespace: dns namespace: {{ .Release.Namespace }}
spec: spec:
selector: selector:
matchLabels: matchLabels:
@ -122,7 +122,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: bind-master name: bind-master
namespace: dns namespace: {{ .Release.Namespace }}
spec: spec:
selector: selector:
app: bind-master app: bind-master

View file

@ -26,19 +26,19 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: external-dns name: external-dns
namespace: dns namespace: {{ .Release.Namespace }}
--- ---
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: external-dns name: external-dns
namespace: dns namespace: {{ .Release.Namespace }}
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: external-dns name: external-dns
namespace: dns namespace: {{ .Release.Namespace }}
spec: spec:
replicas: 1 replicas: 1
selector: selector:

View file

@ -22,7 +22,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: nextcloud-pvc name: nextcloud-pvc
namespace: nextcloud namespace: {{ .Release.Namespace }}
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
@ -36,7 +36,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: nextcloud name: nextcloud
namespace: nextcloud namespace: {{ .Release.Namespace }}
spec: spec:
ports: ports:
- port: 80 - port: 80
@ -47,7 +47,7 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: nextcloud name: nextcloud
namespace: nextcloud namespace: {{ .Release.Namespace }}
spec: spec:
securityContext: securityContext:
runAsUser: 1000 runAsUser: 1000
@ -94,7 +94,7 @@ apiVersion: k8s.mariadb.com/v1alpha1
kind: MariaDB kind: MariaDB
metadata: metadata:
name: nextcloud-db name: nextcloud-db
namespace: nextcloud namespace: {{ .Release.Namespace }}
spec: spec:
rootPasswordSecretKeyRef: rootPasswordSecretKeyRef:
name: nextcloud-secrets name: nextcloud-secrets
@ -112,7 +112,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: wildcard-hxme-net name: wildcard-hxme-net
namespace: nextcloud namespace: {{ .Release.Namespace }}
annotations: annotations:
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net
--- ---
@ -120,7 +120,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: nextcloud name: nextcloud
namespace: nextcloud namespace: {{ .Release.Namespace }}
annotations: annotations:
external-dns.alpha.kubernetes.io/hostname: nc.hxme.net external-dns.alpha.kubernetes.io/hostname: nc.hxme.net
spec: spec:

View file

@ -8,7 +8,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: syncthing-data name: syncthing-data
namespace: syncthing namespace: {{ .Release.Namespace }}
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
@ -33,7 +33,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: syncthing-share name: syncthing-share
namespace: syncthing namespace: {{ .Release.Namespace }}
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
@ -46,7 +46,7 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: syncthing name: syncthing
namespace: syncthing namespace: {{ .Release.Namespace }}
spec: spec:
replicas: 1 replicas: 1
selector: selector:
@ -86,7 +86,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: syncthing name: syncthing
namespace: syncthing namespace: {{ .Release.Namespace }}
spec: spec:
selector: selector:
app: syncthing app: syncthing

View file

@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: grafana name: grafana
namespace: monitoring namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -13,7 +13,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: grafana name: grafana
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: true createNamespace: true
values: values:

View file

@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: loki name: loki
namespace: monitoring namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -13,7 +13,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: grafana name: grafana
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: true createNamespace: true
values: values:

View file

@ -3,7 +3,7 @@ apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: prometheus-community name: prometheus-community
namespace: flux-system namespace: {{ .Release.Namespace }}
spec: spec:
url: https://prometheus-community.github.io/helm-charts url: https://prometheus-community.github.io/helm-charts
interval: 1h interval: 1h
@ -12,7 +12,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: prometheus-operator name: prometheus-operator
namespace: monitoring namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -22,7 +22,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: prometheus-community name: prometheus-community
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: true createNamespace: true
upgrade: upgrade:

View file

@ -8,7 +8,7 @@ apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: grafana name: grafana
namespace: flux-system namespace: {{ .Release.Namespace }}
spec: spec:
url: https://grafana.github.io/helm-charts url: https://grafana.github.io/helm-charts
interval: 1h interval: 1h
@ -17,6 +17,6 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: wildcard-hxme-net name: wildcard-hxme-net
namespace: monitoring namespace: {{ .Release.Namespace }}
annotations: annotations:
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net

View file

@ -8,7 +8,7 @@ apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: mariadb-operator name: mariadb-operator
namespace: flux-system namespace: {{ .Release.Namespace }}
spec: spec:
url: https://helm.mariadb.com/mariadb-operator url: https://helm.mariadb.com/mariadb-operator
interval: 1h interval: 1h
@ -17,7 +17,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: mariadb-operator-crds name: mariadb-operator-crds
namespace: mariadb-system namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -27,7 +27,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: mariadb-operator name: mariadb-operator
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: true createNamespace: true
upgrade: upgrade:
@ -38,7 +38,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: mariadb-operator name: mariadb-operator
namespace: mariadb-system namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -48,12 +48,12 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: mariadb-operator name: mariadb-operator
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: true createNamespace: true
dependsOn: dependsOn:
- name: mariadb-operator-crds - name: mariadb-operator-crds
namespace: mariadb-system namespace: {{ .Release.Namespace }}
values: values:
metrics: metrics:
enabled: true enabled: true

View file

@ -3,7 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: kubernetes-replicator name: kubernetes-replicator
namespace: kube-system namespace: {{ .Release.Namespace }}
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
@ -63,13 +63,13 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: kubernetes-replicator name: kubernetes-replicator
namespace: kube-system namespace: {{ .Release.Namespace }}
--- ---
apiVersion: source.toolkit.fluxcd.io/v1beta2 apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: mittwald name: mittwald
namespace: flux-system namespace: {{ .Release.Namespace }}
spec: spec:
url: https://helm.mittwald.de url: https://helm.mittwald.de
interval: 1h interval: 1h
@ -78,7 +78,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: kubernetes-replicator name: kubernetes-replicator
namespace: kube-system namespace: {{ .Release.Namespace }}
spec: spec:
interval: 5m interval: 5m
chart: chart:
@ -87,7 +87,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: mittwald name: mittwald
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: false createNamespace: false
upgrade: upgrade:

View file

@ -8,7 +8,7 @@ apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: rustdesk-charts name: rustdesk-charts
namespace: flux-system namespace: {{ .Release.Namespace }}
spec: spec:
url: https://charts.rustdesk.com url: https://charts.rustdesk.com
interval: 1h interval: 1h
@ -17,7 +17,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: rustdesk-server name: rustdesk-server
namespace: rustdesk namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -27,7 +27,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: rustdesk-charts name: rustdesk-charts
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: true createNamespace: true
values: values:

View file

@ -3,7 +3,7 @@ apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: jetstack name: jetstack
namespace: flux-system namespace: {{ .Release.Namespace }}
spec: spec:
url: https://charts.jetstack.io url: https://charts.jetstack.io
interval: 1h interval: 1h
@ -12,7 +12,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: cert-manager name: cert-manager
namespace: cert-manager namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -22,7 +22,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: jetstack name: jetstack
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
crds: CreateReplace crds: CreateReplace
createNamespace: true createNamespace: true
@ -56,7 +56,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate kind: Certificate
metadata: metadata:
name: wildcard-hxme-net name: wildcard-hxme-net
namespace: cert-manager namespace: {{ .Release.Namespace }}
spec: spec:
secretName: wildcard-hxme-net secretName: wildcard-hxme-net
secretTemplate: secretTemplate:

View file

@ -8,7 +8,7 @@ apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: bjw-s-charts name: bjw-s-charts
namespace: flux-system namespace: {{ .Release.Namespace }}
spec: spec:
url: https://bjw-s.github.io/helm-charts/ url: https://bjw-s.github.io/helm-charts/
interval: 1h interval: 1h
@ -17,7 +17,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: vaultwarden name: vaultwarden
namespace: bitwarden namespace: {{ .Release.Namespace }}
spec: spec:
interval: 30m interval: 30m
chart: chart:
@ -27,7 +27,7 @@ spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s-charts name: bjw-s-charts
namespace: flux-system namespace: {{ .Release.Namespace }}
install: install:
createNamespace: true createNamespace: true
values: values: