Just ignore commits please
This commit is contained in:
parent
4e20bdd8db
commit
8e62b66b97
25 changed files with 781 additions and 108 deletions
11
Chart.yaml
11
Chart.yaml
|
@ -4,14 +4,3 @@ description: A Helm chart for deploying the home-server application
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
appVersion: "1.0.0"
|
appVersion: "1.0.0"
|
||||||
|
|
||||||
dependencies:
|
|
||||||
- name: subcharts
|
|
||||||
version: 0.1.0
|
|
||||||
repository: "file://charts/subcharts"
|
|
||||||
- name: dns
|
|
||||||
version: 0.1.0
|
|
||||||
repository: "file://charts/dns"
|
|
||||||
- name: nextcloud
|
|
||||||
version: 0.1.0
|
|
||||||
repository: "file://charts/nextcloud"
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
apiVersion: v2
|
|
||||||
name: home-server-dns
|
|
||||||
description: Deploys the DNS setup
|
|
||||||
type: application
|
|
||||||
version: 0.1.0
|
|
|
@ -1,2 +0,0 @@
|
||||||
domain: "auth.dev.hxme.net"
|
|
||||||
certSecretName: "wildcard-hxme-net"
|
|
|
@ -1,5 +0,0 @@
|
||||||
apiVersion: v2
|
|
||||||
name: home-server-nextcloud
|
|
||||||
description: Deploys the Nextcloud setup
|
|
||||||
type: application
|
|
||||||
version: 0.1.0
|
|
|
@ -1,9 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- name: mariadb-operator-crds
|
|
||||||
repository: https://helm.mariadb.com/mariadb-operator
|
|
||||||
version: 0.38.1
|
|
||||||
- name: mariadb-operator
|
|
||||||
repository: https://helm.mariadb.com/mariadb-operator
|
|
||||||
version: 0.38.1
|
|
||||||
digest: sha256:488ca12800fb05f4a89dd178558f544c44f0d7af11bb07010031e45e38df3a28
|
|
||||||
generated: "2025-07-05T14:11:03.425098652Z"
|
|
|
@ -1,7 +0,0 @@
|
||||||
apiVersion: v2
|
|
||||||
name: home-server-subcharts
|
|
||||||
version: 0.1.0
|
|
||||||
dependencies:
|
|
||||||
- name: cert-manager
|
|
||||||
version: v1.18.2
|
|
||||||
repository: https://charts.jetstack.io
|
|
|
@ -1,40 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: ClusterIssuer
|
|
||||||
metadata:
|
|
||||||
name: {{ .Values.global.issuerName }}
|
|
||||||
spec:
|
|
||||||
acme:
|
|
||||||
email: {{ .Values.global.email | quote }}
|
|
||||||
server: https://acme-v02.api.letsencrypt.org/directory
|
|
||||||
privateKeySecretRef:
|
|
||||||
name: {{ .Values.global.issuerName }}
|
|
||||||
solvers:
|
|
||||||
- dns01:
|
|
||||||
rfc2136:
|
|
||||||
nameserver: {{ .Values.global.rfc2136.nameserver | quote }}
|
|
||||||
tsigKeyName: {{ .Values.global.rfc2136.tsigKeyName | quote }}
|
|
||||||
tsigAlgorithm: {{ .Values.global.rfc2136.tsigAlgorithm | quote }}
|
|
||||||
tsigSecretSecretRef:
|
|
||||||
name: {{ .Values.global.rfc2136.tsigSecretName | quote }}
|
|
||||||
key: {{ .Values.global.rfc2136.tsigSecretKey | quote }}
|
|
||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: Certificate
|
|
||||||
metadata:
|
|
||||||
name: {{ .Values.global.ssl_secret_name }}
|
|
||||||
namespace: {{ .Values.global.namespace }}
|
|
||||||
spec:
|
|
||||||
secretName: {{ .Values.global.ssl_secret_name }}
|
|
||||||
secretTemplate:
|
|
||||||
annotations:
|
|
||||||
replicator.v1.mittwald.de/replication-allowed: "true"
|
|
||||||
replicator.v1.mittwald.de/replicate-to: "{{ .Values.global.replicatorNamespaces }}"
|
|
||||||
issuerRef:
|
|
||||||
name: {{ .Values.global.issuerName }}
|
|
||||||
kind: ClusterIssuer
|
|
||||||
commonName: {{ .Values.global.domain | quote }}
|
|
||||||
dnsNames:
|
|
||||||
- {{ .Values.global.domain | quote }}
|
|
||||||
- "*.{{ .Values.global.domain }}"
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
mariadbNamespace: mariadb-system-dev
|
|
||||||
|
|
||||||
mariadb-operator:
|
|
||||||
fullnameOverride: mariadb-operator
|
|
||||||
namespaceOverride: mariadb-system
|
|
||||||
metrics:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
mariadb-operator-crds: {}
|
|
76
templates/ai-openweb.yaml
Normal file
76
templates/ai-openweb.yaml
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: ai
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: openwebui
|
||||||
|
namespace: ai
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: openwebui
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: openwebui
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: openwebui
|
||||||
|
image: ghcr.io/open-webui/open-webui:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
env:
|
||||||
|
- name: OLLAMA_BASE_URL
|
||||||
|
value: http://ollama:11434
|
||||||
|
volumeMounts:
|
||||||
|
- name: ai-storage
|
||||||
|
mountPath: /app/backend/data
|
||||||
|
volumes:
|
||||||
|
- name: ai-storage
|
||||||
|
hostPath:
|
||||||
|
path: /dpool/files/ai/
|
||||||
|
type: Directory
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: openwebui
|
||||||
|
namespace: ai
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: openwebui
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8080
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: openwebui
|
||||||
|
namespace: ai
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "traefik"
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: nc.hxme.net
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: ai.hxme.net
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: openwebui
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- ai.hxme.net
|
||||||
|
secretName: openwebui-tls
|
||||||
|
|
54
templates/auth-authentik.yaml
Normal file
54
templates/auth-authentik.yaml
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: authentik
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: authentik
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://charts.goauthentik.io/
|
||||||
|
interval: 1h
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: wildcard-hxme-net
|
||||||
|
namespace: authentik
|
||||||
|
annotations:
|
||||||
|
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: authentik
|
||||||
|
namespace: authentik
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: authentik
|
||||||
|
version: 2024.4.2
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: authentik
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
upgrade:
|
||||||
|
disableWait: false
|
||||||
|
timeout: 10m
|
||||||
|
valuesFrom:
|
||||||
|
- kind: Secret
|
||||||
|
name: authentik-values
|
||||||
|
values:
|
||||||
|
ingress:
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: auth.hxme.net
|
||||||
|
tls:
|
||||||
|
- secretName: wildcard-hxme-net
|
||||||
|
hosts:
|
||||||
|
- auth.hxme.net
|
|
@ -3,7 +3,7 @@ apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: bind-master-config
|
name: bind-master-config
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: dns
|
||||||
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: {{ .Release.Namespace }}
|
namespace: dns
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
@ -122,9 +122,8 @@ apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: bind-master
|
name: bind-master
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: dns
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
selector:
|
||||||
app: bind-master
|
app: bind-master
|
||||||
ports:
|
ports:
|
|
@ -3,7 +3,6 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: external-dns
|
name: external-dns
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["services","endpoints","pods"]
|
resources: ["services","endpoints","pods"]
|
||||||
|
@ -14,15 +13,12 @@ rules:
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["nodes"]
|
resources: ["nodes"]
|
||||||
verbs: ["list","watch"]
|
verbs: ["list","watch"]
|
||||||
- apiGroups: ["discovery.k8s.io"]
|
# Add DNS provider specific rules here if needed (e.g., for AWS IAM, GCP etc.)
|
||||||
resources: ["endpointslices"]
|
|
||||||
verbs: ["get", "watch", "list"]
|
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: external-dns-viewer
|
name: external-dns-viewer
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
@ -30,19 +26,19 @@ roleRef:
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: external-dns
|
name: external-dns
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: dns
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: external-dns
|
name: external-dns
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: dns
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: external-dns
|
name: external-dns
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: dns
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
@ -77,4 +73,3 @@ spec:
|
||||||
name: dns-secrets
|
name: dns-secrets
|
||||||
key: externaldns-secret
|
key: externaldns-secret
|
||||||
|
|
||||||
|
|
5
templates/dns-namespace.yaml
Normal file
5
templates/dns-namespace.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: dns
|
|
@ -1,9 +1,13 @@
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: nextcloud
|
||||||
|
---
|
||||||
|
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
|
||||||
|
@ -18,7 +22,7 @@ apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-pvc
|
name: nextcloud-pvc
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: nextcloud
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
|
@ -32,7 +36,7 @@ apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: nextcloud
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
|
@ -43,7 +47,7 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: nextcloud
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
|
@ -90,7 +94,7 @@ apiVersion: k8s.mariadb.com/v1alpha1
|
||||||
kind: MariaDB
|
kind: MariaDB
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-db
|
name: nextcloud-db
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: nextcloud
|
||||||
spec:
|
spec:
|
||||||
rootPasswordSecretKeyRef:
|
rootPasswordSecretKeyRef:
|
||||||
name: nextcloud-secrets
|
name: nextcloud-secrets
|
||||||
|
@ -108,7 +112,7 @@ apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: wildcard-hxme-net
|
name: wildcard-hxme-net
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: nextcloud
|
||||||
annotations:
|
annotations:
|
||||||
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net
|
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net
|
||||||
---
|
---
|
||||||
|
@ -116,7 +120,7 @@ apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: nextcloud
|
||||||
annotations:
|
annotations:
|
||||||
external-dns.alpha.kubernetes.io/hostname: nc.hxme.net
|
external-dns.alpha.kubernetes.io/hostname: nc.hxme.net
|
||||||
spec:
|
spec:
|
||||||
|
@ -135,3 +139,4 @@ spec:
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
|
109
templates/files-syncthing.yaml
Normal file
109
templates/files-syncthing.yaml
Normal file
|
@ -0,0 +1,109 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: syncthing
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: syncthing-data
|
||||||
|
namespace: syncthing
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: syncthing-share-pv
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1000Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
hostPath:
|
||||||
|
path: /dpool/files
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: syncthing-share
|
||||||
|
namespace: syncthing
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1000Gi
|
||||||
|
volumeName: syncthing-share-pv
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: syncthing
|
||||||
|
namespace: syncthing
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: syncthing
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: syncthing
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: syncthing
|
||||||
|
image: syncthing/syncthing:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 8384
|
||||||
|
- containerPort: 22000
|
||||||
|
- containerPort: 21027
|
||||||
|
protocol: UDP
|
||||||
|
volumeMounts:
|
||||||
|
- name: syncthing-data
|
||||||
|
mountPath: /var/syncthing
|
||||||
|
- name: syncthing-share
|
||||||
|
mountPath: /shared
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
fsGroup: 1000
|
||||||
|
volumes:
|
||||||
|
- name: syncthing-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: syncthing-data
|
||||||
|
- name: syncthing-share
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: syncthing-share
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: syncthing
|
||||||
|
namespace: syncthing
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: syncthing
|
||||||
|
ports:
|
||||||
|
- name: web-ui
|
||||||
|
port: 8384
|
||||||
|
targetPort: 8384
|
||||||
|
- name: sync-tcp
|
||||||
|
port: 22000
|
||||||
|
targetPort: 22000
|
||||||
|
- name: sync-udp
|
||||||
|
port: 22000
|
||||||
|
protocol: UDP
|
||||||
|
targetPort: 22000
|
||||||
|
- name: discovery
|
||||||
|
port: 21027
|
||||||
|
protocol: UDP
|
||||||
|
targetPort: 21027
|
||||||
|
type: ClusterIP
|
||||||
|
|
37
templates/monitoring-grafana.yaml
Normal file
37
templates/monitoring-grafana.yaml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: grafana
|
||||||
|
version: 7.3.0
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: grafana
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
values:
|
||||||
|
admin:
|
||||||
|
existingSecret: grafana-admin-secret
|
||||||
|
userKey: admin-user
|
||||||
|
passwordKey: admin-password
|
||||||
|
service:
|
||||||
|
type: LoadBalancer
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: "grafana.hxme.net"
|
||||||
|
datasources:
|
||||||
|
datasources.yaml:
|
||||||
|
apiVersion: 1
|
||||||
|
datasources:
|
||||||
|
- name: Loki
|
||||||
|
type: loki
|
||||||
|
access: proxy
|
||||||
|
url: http://loki:3100
|
||||||
|
isDefault: true
|
||||||
|
|
33
templates/monitoring-loki.yaml
Normal file
33
templates/monitoring-loki.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: loki
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: loki
|
||||||
|
version: 6.6.4
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: grafana
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
values:
|
||||||
|
loki:
|
||||||
|
auth_enabled: false
|
||||||
|
singleBinary:
|
||||||
|
replicas: 1
|
||||||
|
service:
|
||||||
|
type: LoadBalancer
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: "loki.hxme.net"
|
||||||
|
write:
|
||||||
|
replicas: 1
|
||||||
|
read:
|
||||||
|
replicas: 1
|
||||||
|
backend:
|
||||||
|
replicas: 1
|
40
templates/monitoring-prometheus.yaml
Normal file
40
templates/monitoring-prometheus.yaml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: prometheus-community
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://prometheus-community.github.io/helm-charts
|
||||||
|
interval: 1h
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: prometheus-operator
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: kube-prometheus-stack
|
||||||
|
version: 58.1.2
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: prometheus-community
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
upgrade:
|
||||||
|
disableWait: true
|
||||||
|
timeout: 5m
|
||||||
|
values:
|
||||||
|
prometheus:
|
||||||
|
prometheusSpec:
|
||||||
|
serviceMonitorSelectorNilUsesHelmValues: false
|
||||||
|
# Optional: expose Prometheus/Grafana via NodePort, Ingress, etc.
|
||||||
|
grafana:
|
||||||
|
enabled: false
|
||||||
|
alertmanager:
|
||||||
|
enabled: true
|
||||||
|
|
22
templates/monitoring-provider.yaml
Normal file
22
templates/monitoring-provider.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: monitoring
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://grafana.github.io/helm-charts
|
||||||
|
interval: 1h
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: wildcard-hxme-net
|
||||||
|
namespace: monitoring
|
||||||
|
annotations:
|
||||||
|
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net
|
60
templates/operators-mariadb.yaml
Normal file
60
templates/operators-mariadb.yaml
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: mariadb-system
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: mariadb-operator
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://helm.mariadb.com/mariadb-operator
|
||||||
|
interval: 1h
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: mariadb-operator-crds
|
||||||
|
namespace: mariadb-system
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: mariadb-operator-crds
|
||||||
|
version: 0.38.1
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: mariadb-operator
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
upgrade:
|
||||||
|
disableWait: true
|
||||||
|
timeout: 5m
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: mariadb-operator
|
||||||
|
namespace: mariadb-system
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: mariadb-operator
|
||||||
|
version: 0.38.1
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: mariadb-operator
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
dependsOn:
|
||||||
|
- name: mariadb-operator-crds
|
||||||
|
namespace: mariadb-system
|
||||||
|
values:
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
|
98
templates/operators-replicator.yaml
Normal file
98
templates/operators-replicator.yaml
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: kubernetes-replicator
|
||||||
|
namespace: kube-system
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: kubernetes-replicator
|
||||||
|
rules:
|
||||||
|
- apiGroups: ["", "apps", "extensions"]
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
- configmaps
|
||||||
|
- roles
|
||||||
|
- rolebindings
|
||||||
|
- cronjobs
|
||||||
|
- deployments
|
||||||
|
- events
|
||||||
|
- ingresses
|
||||||
|
- jobs
|
||||||
|
- pods
|
||||||
|
- pods/attach
|
||||||
|
- pods/exec
|
||||||
|
- pods/log
|
||||||
|
- pods/portforward
|
||||||
|
- services
|
||||||
|
- namespaces
|
||||||
|
- serviceaccounts
|
||||||
|
verbs: ["*"]
|
||||||
|
- apiGroups: ["batch"]
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
|
- cronjobs
|
||||||
|
- deployments
|
||||||
|
- events
|
||||||
|
- ingresses
|
||||||
|
- jobs
|
||||||
|
- pods
|
||||||
|
- pods/attach
|
||||||
|
- pods/exec
|
||||||
|
- pods/log
|
||||||
|
- pods/portforward
|
||||||
|
- services
|
||||||
|
verbs: ["*"]
|
||||||
|
- apiGroups: ["rbac.authorization.k8s.io"]
|
||||||
|
resources:
|
||||||
|
- roles
|
||||||
|
- rolebindings
|
||||||
|
- clusterrolebindings
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: kubernetes-replicator
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: kubernetes-replicator
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: kubernetes-replicator
|
||||||
|
namespace: kube-system
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: mittwald
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://helm.mittwald.de
|
||||||
|
interval: 1h
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: kubernetes-replicator
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
interval: 5m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: kubernetes-replicator
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: mittwald
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: false
|
||||||
|
upgrade:
|
||||||
|
disableWait: false
|
||||||
|
values:
|
||||||
|
serviceAccount:
|
||||||
|
create: false
|
||||||
|
name: kubernetes-replicator
|
77
templates/remote-access-rustdesk.yaml
Normal file
77
templates/remote-access-rustdesk.yaml
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: rustdesk
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: rustdesk-charts
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://charts.rustdesk.com
|
||||||
|
interval: 1h
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: rustdesk-server
|
||||||
|
namespace: rustdesk
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: rustdesk-server
|
||||||
|
version: 0.5.0
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: rustdesk-charts
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
values:
|
||||||
|
hbbs:
|
||||||
|
enabled: true
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- name: tcp
|
||||||
|
port: 21115
|
||||||
|
targetPort: 21115
|
||||||
|
- name: tcp-hbbs
|
||||||
|
port: 21116
|
||||||
|
targetPort: 21116
|
||||||
|
- name: udp
|
||||||
|
port: 21116
|
||||||
|
targetPort: 21116
|
||||||
|
protocol: UDP
|
||||||
|
|
||||||
|
hbbr:
|
||||||
|
enabled: true
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- name: tcp-hbbr
|
||||||
|
port: 21117
|
||||||
|
targetPort: 21117
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: "traefik" # or nginx or your ingress class
|
||||||
|
annotations: {}
|
||||||
|
hosts:
|
||||||
|
- host: rd.hxme.net
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- rd.hxme.net
|
||||||
|
secretName: rustdesk-tls
|
||||||
|
|
||||||
|
# Optional admin password – change this in production
|
||||||
|
env:
|
||||||
|
ENCRYPTED_ONLY: "false"
|
||||||
|
ENABLE_LOG: "true"
|
||||||
|
|
72
templates/ssl-certmanager.yaml
Normal file
72
templates/ssl-certmanager.yaml
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: jetstack
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://charts.jetstack.io
|
||||||
|
interval: 1h
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: cert-manager
|
||||||
|
namespace: cert-manager
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: cert-manager
|
||||||
|
version: v1.18.2
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: jetstack
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
crds: CreateReplace
|
||||||
|
createNamespace: true
|
||||||
|
values:
|
||||||
|
installCRDs: true
|
||||||
|
extraArgs:
|
||||||
|
- --dns01-recursive-nameservers-only
|
||||||
|
- --dns01-recursive-nameservers=8.8.8.8:53,1.1.1.1:53
|
||||||
|
---
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: ClusterIssuer
|
||||||
|
metadata:
|
||||||
|
name: letsencrypt-rfc2136
|
||||||
|
spec:
|
||||||
|
acme:
|
||||||
|
email: admin@hxme.net
|
||||||
|
server: https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
privateKeySecretRef:
|
||||||
|
name: letsencrypt-rfc2136
|
||||||
|
solvers:
|
||||||
|
- dns01:
|
||||||
|
rfc2136:
|
||||||
|
nameserver: hawke.hxst.com.au:53
|
||||||
|
tsigKeyName: "hxme-update-key"
|
||||||
|
tsigAlgorithm: HMACSHA512
|
||||||
|
tsigSecretSecretRef:
|
||||||
|
name: hxme-update-key
|
||||||
|
key: hxme-update-key
|
||||||
|
---
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: wildcard-hxme-net
|
||||||
|
namespace: cert-manager
|
||||||
|
spec:
|
||||||
|
secretName: wildcard-hxme-net
|
||||||
|
secretTemplate:
|
||||||
|
annotations:
|
||||||
|
replicator.v1.mittwald.de/replication-allowed: "true"
|
||||||
|
replicator.v1.mittwald.de/replicate-to: "monitoring,authentik,nextcloud"
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-rfc2136
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "hxme.net"
|
||||||
|
dnsNames:
|
||||||
|
- "hxme.net"
|
||||||
|
- "*.hxme.net"
|
79
templates/synctools-vaultwarden.yaml
Normal file
79
templates/synctools-vaultwarden.yaml
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: bitwarden
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: bjw-s-charts
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://bjw-s.github.io/helm-charts/
|
||||||
|
interval: 1h
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: vaultwarden
|
||||||
|
namespace: bitwarden
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: app-template
|
||||||
|
version: 2.4.0
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: bjw-s-charts
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
values:
|
||||||
|
# Basic container config
|
||||||
|
image:
|
||||||
|
repository: vaultwarden/server
|
||||||
|
tag: 1.30.5
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
env:
|
||||||
|
WEBSOCKET_ENABLED: "true"
|
||||||
|
SIGNUPS_ALLOWED: "false"
|
||||||
|
DOMAIN: "https://vw.hxme.net"
|
||||||
|
ADMIN_TOKEN: "CHANGEME_SUPER_SECRET"
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "traefik" # Or nginx or your ingress class
|
||||||
|
hosts:
|
||||||
|
- host: vw.hxme.net
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- vw.hxme.net
|
||||||
|
secretName: bitwarden-tls
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: bitwarden-data # You must create a PVC or a StorageClass dynamic claim
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
cpu: 250m
|
||||||
|
memory: 512Mi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue