Nextcloud to target namespace

This commit is contained in:
j 2025-07-10 11:57:00 +10:00
parent 9a4a80792c
commit 464135d975

View file

@ -3,6 +3,7 @@ apiVersion: v1
kind: PersistentVolume kind: PersistentVolume
metadata: metadata:
name: nextcloud-pv name: nextcloud-pv
namespace: {{ .Release.Namespace }}
spec: spec:
capacity: capacity:
storage: 10Gi storage: 10Gi
@ -17,7 +18,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
@ -31,7 +32,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
@ -42,7 +43,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
@ -89,7 +90,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
@ -107,7 +108,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
--- ---
@ -115,7 +116,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: