Fixed stuff, changed storage. Need to find backup solution.
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
charts
|
||||||
|
*.lock
|
||||||
@@ -12,4 +12,3 @@ dependencies:
|
|||||||
- name: ingress-nginx
|
- name: ingress-nginx
|
||||||
repository: "https://kubernetes.github.io/ingress-nginx"
|
repository: "https://kubernetes.github.io/ingress-nginx"
|
||||||
version: ">= 1.12.0"
|
version: ">= 1.12.0"
|
||||||
|
|
||||||
|
|||||||
+12
@@ -1,3 +1,15 @@
|
|||||||
#+title: Homey
|
#+title: Homey
|
||||||
|
|
||||||
A home environment for everyone!
|
A home environment for everyone!
|
||||||
|
|
||||||
|
* Installation
|
||||||
|
|
||||||
|
Install using
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
* Backing up
|
||||||
|
|
||||||
|
We must find a better solution
|
||||||
|
|||||||
+61
-167
@@ -3,7 +3,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: homey-pv-nfs-a
|
name: homey-pv-nfs
|
||||||
labels:
|
labels:
|
||||||
isbackup: "true"
|
isbackup: "true"
|
||||||
spec:
|
spec:
|
||||||
@@ -14,57 +14,22 @@ spec:
|
|||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
persistentVolumeReclaimPolicy: Recycle
|
persistentVolumeReclaimPolicy: Recycle
|
||||||
nfs:
|
nfs:
|
||||||
path: /homey-backup
|
path: /
|
||||||
server: {{ .Values.homey.storage.ip }}
|
server: {{ .Values.homey.storage.ip }}
|
||||||
readOnly: false
|
readOnly: false
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: homey-pvc-nfs-a
|
name: homey-pvc-nfs
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.homey.storage.backupStorageCapacity }}
|
storage: {{ .Values.homey.storage.storageCapacity }}
|
||||||
storageClassName: standard
|
storageClassName: standard
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
isbackup: "true"
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
name: homey-pv-nfs-b
|
|
||||||
labels:
|
|
||||||
isbackup: "false"
|
|
||||||
spec:
|
|
||||||
capacity:
|
|
||||||
storage: {{ .Values.homey.storage.nobackupStorageCapacity }}
|
|
||||||
storageClassName: standard
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
persistentVolumeReclaimPolicy: Recycle
|
|
||||||
nfs:
|
|
||||||
path: /homey-nobackup
|
|
||||||
server: {{ .Values.homey.storage.ip }}
|
|
||||||
readOnly: false
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: homey-pvc-nfs-b
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.homey.storage.nobackupStorageCapacity }}
|
|
||||||
storageClassName: standard
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
isbackup: "false"
|
|
||||||
#_DNS_
|
#_DNS_
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
@@ -185,15 +150,15 @@ spec:
|
|||||||
containerPort: 636
|
containerPort: 636
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /etc/ldap/slapd.d
|
- mountPath: /etc/ldap/slapd.d
|
||||||
subPath: openldap/etc/ldap/slapd.d
|
subPath: backup/openldap/etc/ldap/slapd.d
|
||||||
name: openldap-volume
|
name: openldap-volume
|
||||||
- mountPath: /var/lib/ldap
|
- mountPath: /var/lib/ldap
|
||||||
subPath: openldap/var/lib/ldap
|
subPath: backup/openldap/var/lib/ldap
|
||||||
name: openldap-volume
|
name: openldap-volume
|
||||||
volumes:
|
volumes:
|
||||||
- name: openldap-volume
|
- name: openldap-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homey-pvc-nfs-a
|
claimName: homey-pvc-nfs
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -212,57 +177,56 @@ spec:
|
|||||||
targetPort: ssl-ldap
|
targetPort: ssl-ldap
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: openldap
|
app.kubernetes.io/name: openldap
|
||||||
#---
|
---
|
||||||
# apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
# kind: Deployment
|
kind: Deployment
|
||||||
# metadata:
|
metadata:
|
||||||
# name: ldap-auth
|
name: ldap-auth
|
||||||
# namespace: homecenter
|
labels:
|
||||||
# labels:
|
app: ldap-auth
|
||||||
# app: ldap-auth
|
spec:
|
||||||
# spec:
|
replicas: 1
|
||||||
# replicas: 1
|
selector:
|
||||||
# selector:
|
matchLabels:
|
||||||
# matchLabels:
|
app: ldap-auth
|
||||||
# app: ldap-auth
|
template:
|
||||||
# template:
|
metadata:
|
||||||
# metadata:
|
labels:
|
||||||
# labels:
|
app: ldap-auth
|
||||||
# app: ldap-auth
|
name: ldap-auth
|
||||||
# name: ldap-auth
|
spec:
|
||||||
# spec:
|
containers:
|
||||||
# containers:
|
- name: ldap-auth
|
||||||
# - name: ldap-auth
|
image: dignajar/another-ldap-auth:latest
|
||||||
# image: dignajar/another-ldap-auth:latest
|
imagePullPolicy: Always
|
||||||
# imagePullPolicy: Always
|
env:
|
||||||
# env:
|
- name: LDAP_ENDPOINT
|
||||||
# - name: LDAP_ENDPOINT
|
value: "ldap://openldap:389"
|
||||||
# value: "ldap://openldap:389"
|
- name: LDAP_MANAGER_DN_USERNAME
|
||||||
# - name: LDAP_MANAGER_DN_USERNAME
|
value: "cn=readonly,{{ .Values.homey.url | replace "." ",dc=" | printf "dc=%s " | trim }}"
|
||||||
# value: "cn=readonly,dc=homecenter,dc=zakobar,dc=io"
|
- name: LDAP_MANAGER_PASSWORD
|
||||||
# - name: LDAP_MANAGER_PASSWORD
|
valueFrom:
|
||||||
# valueFrom:
|
secretKeyRef:
|
||||||
# secretKeyRef:
|
name: openldap-ro
|
||||||
# name: openldap-ro-pass
|
key: password
|
||||||
# key: password
|
- name: LDAP_SEARCH_BASE
|
||||||
# - name: LDAP_SEARCH_BASE
|
value: "ou=users,{{ .Values.homey.url | replace "." ",dc=" | printf "dc=%s " | trim }}"
|
||||||
# value: "ou=users,dc=homecenter,dc=zakobar,dc=io"
|
- name: LDAP_SEARCH_FILTER
|
||||||
# - name: LDAP_SEARCH_FILTER
|
value: "(objectClass=inetOrgPerson)"
|
||||||
# value: "(objectClass=inetOrgPerson)"
|
- name: LDAP_BIND_DN
|
||||||
# - name: LDAP_BIND_DN
|
value: "uid={username},ou=users,{{ .Values.homey.url | replace "." ",dc=" | printf "dc=%s " | trim }}"
|
||||||
# value: "uid={username},ou=users,dc=homecenter,dc=zakobar,dc=io"
|
---
|
||||||
# ---
|
apiVersion: v1
|
||||||
# apiVersion: v1
|
kind: Service
|
||||||
# kind: Service
|
metadata:
|
||||||
# metadata:
|
name: ldap-auth
|
||||||
# name: ldap-auth
|
spec:
|
||||||
# spec:
|
selector:
|
||||||
# selector:
|
app: ldap-auth
|
||||||
# app: ldap-auth
|
ports:
|
||||||
# ports:
|
- port: 80
|
||||||
# - port: 80
|
targetPort: 9000
|
||||||
# targetPort: 9000
|
name: ldap-auth-port
|
||||||
# name: ldap-auth-port
|
|
||||||
---
|
---
|
||||||
#_PHPADMIN________
|
#_PHPADMIN________
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
@@ -372,12 +336,12 @@ spec:
|
|||||||
key: password
|
key: password
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/postgresql/data
|
- mountPath: /var/lib/postgresql/data
|
||||||
subPath: gitea/db
|
subPath: backup/gitea/db
|
||||||
name: gitea-postgredb
|
name: gitea-postgredb
|
||||||
volumes:
|
volumes:
|
||||||
- name: gitea-postgredb
|
- name: gitea-postgredb
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homey-pvc-nfs-a
|
claimName: homey-pvc-nfs
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -430,11 +394,11 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: gitea-persistent-storage
|
- name: gitea-persistent-storage
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
subPath: gitea/gitea/data
|
subPath: backup/gitea/gitea/data
|
||||||
volumes:
|
volumes:
|
||||||
- name: gitea-persistent-storage
|
- name: gitea-persistent-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homey-pvc-nfs-a
|
claimName: homey-pvc-nfs
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -473,73 +437,3 @@ spec:
|
|||||||
port:
|
port:
|
||||||
number: 3000
|
number: 3000
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: gitea-postgres-pass
|
|
||||||
annotations:
|
|
||||||
secret-generator.v1.mittwald.de/autogenerate: password
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: gitea-postgres-config
|
|
||||||
labels:
|
|
||||||
app: gitea-postgres
|
|
||||||
data:
|
|
||||||
POSTGRES_DB: gitea
|
|
||||||
POSTGRES_USER: gitea
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: gitea-postgres
|
|
||||||
labels:
|
|
||||||
app: gitea-postgres
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: gitea-postgres
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: gitea-postgres
|
|
||||||
name: gitea-postgres
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: gitea-postgres
|
|
||||||
image: postgres:10.4
|
|
||||||
imagePullPolicy: "IfNotPresent"
|
|
||||||
ports:
|
|
||||||
- containerPort: 5432
|
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: gitea-postgres-config
|
|
||||||
env:
|
|
||||||
- name: POSTGRES_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gitea-postgres-pass
|
|
||||||
key: password
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/lib/postgresql/data
|
|
||||||
subPath: gitea/db
|
|
||||||
name: gitea-postgredb
|
|
||||||
volumes:
|
|
||||||
- name: gitea-postgredb
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: homey-pvc-nfs-a
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: gitea-postgres-service
|
|
||||||
labels:
|
|
||||||
app: gitea-postgres
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- port: 5432
|
|
||||||
selector:
|
|
||||||
app: gitea-postgres
|
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -83,8 +83,7 @@ homey:
|
|||||||
organization: "Zakobar Home Server"
|
organization: "Zakobar Home Server"
|
||||||
storage:
|
storage:
|
||||||
ip: "192.168.0.101"
|
ip: "192.168.0.101"
|
||||||
backupStorageCapacity: 30Gi
|
storageCapacity: 500Gi
|
||||||
nobackupStorageCapacity: 400Gi
|
url: home.zakobar.io
|
||||||
url: "home.zakobar.io"
|
|
||||||
ip: 192.168.0.101
|
ip: 192.168.0.101
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user