Semi working!
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ spec:
|
|||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
env:
|
env:
|
||||||
- name: DNS_A
|
- name: DNS_A
|
||||||
value: "*.{{ .Values.homey.url }}={{ .Values.homey.ip }}, {{ .Values.homey.url }}={{ .Values.homey.ip }}"
|
value: "*.{{ .Values.homey.url }}={{ .Values.homey.ip }}, {{ .Values.homey.url }}={{ .Values.homey.ip }}, *.{{ .Values.homey.internal_url }}={{ .Values.homey.ip }}, {{ .Values.homey.internal_url }}={{ .Values.homey.ip}}"
|
||||||
- name: DNS_FORWARDER
|
- name: DNS_FORWARDER
|
||||||
value: "8.8.8.8,8.8.4.4"
|
value: "8.8.8.8,8.8.4.4"
|
||||||
- name: ALLOW_RECURSION
|
- name: ALLOW_RECURSION
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: gitea
|
app: gitea
|
||||||
ports:
|
ports:
|
||||||
- name: ssh
|
- name: http-port
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 3000
|
port: 3000
|
||||||
targetPort: http
|
targetPort: http
|
||||||
@@ -81,8 +81,6 @@ metadata:
|
|||||||
name: gitea-ingress
|
name: gitea-ingress
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.allow-http: "false"
|
kubernetes.io/ingress.allow-http: "false"
|
||||||
ingress.kubernetes.io/auth-type: forward
|
|
||||||
ingress.kubernetes.io/auth-url: http://ldap-auth.{{ .Release.Namespace }}.svc.cluster.local:80
|
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: git.{{ .Values.homey.url }}
|
- host: git.{{ .Values.homey.url }}
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- jackett.{{ .Values.homey.url }}
|
- jackett.{{ .Values.homey.internal_url }}
|
||||||
rules:
|
rules:
|
||||||
- host: jackett.{{ .Values.homey.url }}
|
- host: jackett.{{ .Values.homey.internal_url }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: jellyfin.{{ .Values.homey.url }}
|
- host: jellyfin.{{ .Values.homey.internal_url }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -18,24 +18,22 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: ldap-auth
|
- name: ldap-auth
|
||||||
image: dignajar/another-ldap-auth:latest
|
image: linuxserver/ldap-auth
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: LDAP_ENDPOINT
|
- name: WERTHER_LDAP_ENDPOINTS
|
||||||
value: "ldap://openldap:389"
|
value: "openldap:389"
|
||||||
- name: LDAP_MANAGER_DN_USERNAME
|
- name: WERTHER_LDAP_BINDDN
|
||||||
value: "cn=readonly,{{ .Values.homey.url | replace "." ",dc=" | printf "dc=%s " | trim }}"
|
value: "cn=readonly,{{ .Values.homey.url | replace "." ",dc=" | printf "dc=%s " | trim }}"
|
||||||
- name: LDAP_MANAGER_PASSWORD
|
- name: WERTHER_LDAP_BINDPW
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: openldap-ro
|
name: openldap-ro
|
||||||
key: password
|
key: password
|
||||||
- name: LDAP_SEARCH_BASE
|
- name: WERTHER_LDAP_BASEDN
|
||||||
value: "ou=users,{{ .Values.homey.url | replace "." ",dc=" | printf "dc=%s " | trim }}"
|
value: "ou=users,{{ .Values.homey.url | replace "." ",dc=" | printf "dc=%s " | trim }}"
|
||||||
- name: LDAP_SEARCH_FILTER
|
# - name: LDAP_USER_FILTER
|
||||||
value: "(objectClass=inetOrgPerson)"
|
# value: "(objectClass=inetOrgPerson)"
|
||||||
- name: LDAP_BIND_DN
|
|
||||||
value: "uid={username},ou=users,{{ .Values.homey.url | replace "." ",dc=" | printf "dc=%s " | trim }}"
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
@@ -4,13 +4,7 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: nefarious-admin
|
name: nefarious-admin
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/resource-policy": "keep"
|
secret-generator.v1.mittwald.de/autogenerate: password
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace "nefarious-admin") | default dict }}
|
|
||||||
{{- $secretData := (get $secretObj "data") | default dict }}
|
|
||||||
{{- $pass := (get $secretData "password") | default (randAlphaNum 32 | b64enc) }}
|
|
||||||
password: {{ $pass | quote }}
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -133,7 +127,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: nefarious.{{ .Values.homey.url }}
|
- host: nefarious.{{ .Values.homey.internal_url }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ spec:
|
|||||||
- name: PHOTOPRISM_DATABASE_DRIVER
|
- name: PHOTOPRISM_DATABASE_DRIVER
|
||||||
value: "sqlite"
|
value: "sqlite"
|
||||||
- name: PHOTOPRISM_SITE_URL
|
- name: PHOTOPRISM_SITE_URL
|
||||||
value: "http://gallery.{{ .Values.homey.url }}"
|
value: "http://gallery.{{ .Values.homey.internal_url }}"
|
||||||
- name: PHOTOPRISM_SITE_TITLE
|
- name: PHOTOPRISM_SITE_TITLE
|
||||||
value: "PhotoPrism"
|
value: "PhotoPrism"
|
||||||
- name: PHOTOPRISM_SITE_CAPTION
|
- name: PHOTOPRISM_SITE_CAPTION
|
||||||
@@ -114,7 +114,7 @@ metadata:
|
|||||||
memrequestbodybytes: 62914560
|
memrequestbodybytes: 62914560
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: album.{{ .Values.homey.url }}
|
- host: album.{{ .Values.homey.internal_url }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ spec:
|
|||||||
value: "false"
|
value: "false"
|
||||||
- name: PHPLDAPADMIN_LDAP_HOSTS
|
- name: PHPLDAPADMIN_LDAP_HOSTS
|
||||||
value: ldap://openldap:389
|
value: ldap://openldap:389
|
||||||
image: osixia/phpldapadmin:0.7.1
|
image: osixia/phpldapadmin
|
||||||
name: phpldapadmin
|
name: phpldapadmin
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
@@ -47,7 +47,7 @@ metadata:
|
|||||||
kubernetes.io/ingress.allow-http: "false"
|
kubernetes.io/ingress.allow-http: "false"
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: ldapadmin.{{ .Values.homey.url }}
|
- host: ldapadmin.{{ .Values.homey.internal_url }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ metadata:
|
|||||||
ingress.kubernetes.io/auth-url: http://ldap-auth.{{ .Release.Namespace }}.svc.cluster.local:80
|
ingress.kubernetes.io/auth-url: http://ldap-auth.{{ .Release.Namespace }}.svc.cluster.local:80
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: torrent.{{ .Values.homey.url }}
|
- host: torrent.{{ .Values.homey.internal_url }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
+1
-22
@@ -2,12 +2,6 @@ replicaCount: 1
|
|||||||
|
|
||||||
homeyNamespace: homey
|
homeyNamespace: homey
|
||||||
|
|
||||||
image:
|
|
||||||
repository: nginx
|
|
||||||
pullPolicy: Always
|
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
|
||||||
tag: ""
|
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
nameOverride: "homey-app"
|
nameOverride: "homey-app"
|
||||||
fullnameOverride: "homey-chart"
|
fullnameOverride: "homey-chart"
|
||||||
@@ -38,22 +32,6 @@ service:
|
|||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
className: ""
|
|
||||||
annotations: {}
|
|
||||||
# kubernetes.io/ingress.class: nginx
|
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
hosts:
|
|
||||||
- host: chart-example.local
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
tls: []
|
|
||||||
# - secretName: chart-example-tls
|
|
||||||
# hosts:
|
|
||||||
# - chart-example.local
|
|
||||||
|
|
||||||
resources: {} # We usually recommend not to specify default resources and to leave this as a conscious
|
resources: {} # We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||||
@@ -84,5 +62,6 @@ homey:
|
|||||||
ip: "192.168.1.2"
|
ip: "192.168.1.2"
|
||||||
storageCapacity: 450Gi
|
storageCapacity: 450Gi
|
||||||
url: zakobar.com
|
url: zakobar.com
|
||||||
|
internal_url: zakobar.home
|
||||||
ip: 192.168.1.2
|
ip: 192.168.1.2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user