Longhorndified a ton of stuff.
This commit is contained in:
+15
-2
@@ -1,4 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: ldap-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
||||||
|
storageClassName: longhorn
|
||||||
|
---
|
||||||
{{- define "homey.auth.ingress.annotations" }}
|
{{- define "homey.auth.ingress.annotations" }}
|
||||||
# nginx.ingress.kubernetes.io/auth-signin: "https://auth.zakobar.com"
|
# nginx.ingress.kubernetes.io/auth-signin: "https://auth.zakobar.com"
|
||||||
nginx.ingress.kubernetes.io/auth-url: "http://ldap-auth-internal.{{ .Release.Namespace }}.svc.cluster.local:80"
|
nginx.ingress.kubernetes.io/auth-url: "http://ldap-auth-internal.{{ .Release.Namespace }}.svc.cluster.local:80"
|
||||||
@@ -89,7 +101,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: openldap-volume
|
- name: openldap-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homey-pvc-nfs
|
claimName: ldap-pvc
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -159,7 +171,7 @@ spec:
|
|||||||
# volumes:
|
# volumes:
|
||||||
# - name: keycloak-postgresdb
|
# - name: keycloak-postgresdb
|
||||||
# persistentVolumeClaim:
|
# persistentVolumeClaim:
|
||||||
# claimName: homey-pvc-nfs
|
# claimName: homey-pvc-longhorn
|
||||||
# ---
|
# ---
|
||||||
# apiVersion: v1
|
# apiVersion: v1
|
||||||
# kind: Service
|
# kind: Service
|
||||||
@@ -268,3 +280,4 @@ spec:
|
|||||||
# name: keycloak-web
|
# name: keycloak-web
|
||||||
# port:
|
# port:
|
||||||
# number: 8080
|
# number: 8080
|
||||||
|
---
|
||||||
|
|||||||
+14
-1
@@ -1,5 +1,17 @@
|
|||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: gitea-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
storageClassName: longhorn
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: gitea-admin-pass
|
name: gitea-admin-pass
|
||||||
@@ -39,7 +51,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: gitea-persistent-storage
|
- name: gitea-persistent-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homey-pvc-nfs
|
claimName: gitea-pvc
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -77,3 +89,4 @@ spec:
|
|||||||
name: gitea-svc
|
name: gitea-svc
|
||||||
port:
|
port:
|
||||||
number: 3000
|
number: 3000
|
||||||
|
---
|
||||||
|
|||||||
@@ -1,5 +1,41 @@
|
|||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 30Gi
|
||||||
|
storageClassName: longhorn
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-postgres-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
storageClassName: longhorn
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-data-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 30Gi
|
||||||
|
storageClassName: longhorn
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-postgres-pass
|
name: nextcloud-postgres-pass
|
||||||
@@ -62,7 +98,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: nextcloud-postgredb
|
- name: nextcloud-postgredb
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homey-pvc-nfs
|
claimName: nextcloud-postgres-pvc
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -101,6 +137,9 @@ spec:
|
|||||||
- name: nextcloud-volume
|
- name: nextcloud-volume
|
||||||
mountPath: "/var/www/html"
|
mountPath: "/var/www/html"
|
||||||
subPath: nextcloud/html
|
subPath: nextcloud/html
|
||||||
|
- name: nextcloud-media
|
||||||
|
mountPath: "/var/www/html/data"
|
||||||
|
subPath: nextcloud/html/data
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: nextcloud-postgres-config
|
name: nextcloud-postgres-config
|
||||||
@@ -117,7 +156,10 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: nextcloud-volume
|
- name: nextcloud-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homey-pvc-nfs
|
claimName: nextcloud-pvc
|
||||||
|
- name: nextcloud-media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nextcloud-data-pvc
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -136,6 +178,7 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-ingress
|
name: nextcloud-ingress
|
||||||
annotations:
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/proxy-body-size: 5g
|
||||||
nginx.ingress.kubernetes.io/server-snippet: |
|
nginx.ingress.kubernetes.io/server-snippet: |
|
||||||
# Make a regex exception for `/.well-known` so that clients can still
|
# Make a regex exception for `/.well-known` so that clients can still
|
||||||
# access it despite the existence of the regex rule
|
# access it despite the existence of the regex rule
|
||||||
@@ -160,3 +203,4 @@ spec:
|
|||||||
name: nextcloud
|
name: nextcloud
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
---
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: phpldapadmin
|
name: phpldapadmin
|
||||||
annotations:
|
|
||||||
{{ template "homey.auth.ingress.annotations" $ }}
|
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: {{ .Values.homey.ingress_class }}
|
ingressClassName: {{ .Values.homey.ingress_class }}
|
||||||
tls:
|
tls:
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
name: homey-pv-nfs
|
|
||||||
labels:
|
|
||||||
isbackup: "true"
|
|
||||||
spec:
|
|
||||||
capacity:
|
|
||||||
storage: {{ .Values.homey.storage.storageCapacity }}
|
|
||||||
storageClassName: standard
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
persistentVolumeReclaimPolicy: Recycle
|
|
||||||
nfs:
|
|
||||||
path: /
|
|
||||||
server: {{ .Values.homey.storage.ip }}
|
|
||||||
readOnly: false
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: homey-pvc-nfs
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.homey.storage.storageCapacity }}
|
|
||||||
storageClassName: standard
|
|
||||||
@@ -61,6 +61,7 @@ homey:
|
|||||||
storage:
|
storage:
|
||||||
ip: "10.0.0.100"
|
ip: "10.0.0.100"
|
||||||
storageCapacity: 30Gi
|
storageCapacity: 30Gi
|
||||||
|
mediaStorageCapacity: 30Gi
|
||||||
url: zakobar.com
|
url: zakobar.com
|
||||||
ip: 10.0.0.100
|
ip: 10.0.0.100
|
||||||
certname: zakobarcert
|
certname: zakobarcert
|
||||||
|
|||||||
Reference in New Issue
Block a user