Initial commit

This commit is contained in:
2025-05-30 00:45:17 +02:00
commit 45c0cbaff5
31 changed files with 5847 additions and 0 deletions

11
apps/znc/pvc.yaml Normal file
View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: znc-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 2Gi

19
apps/znc/services.yaml Normal file
View File

@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: znc-service
spec:
type: NodePort
selector:
app.kubernetes.io/name: znc
ports:
- protocol: TCP
port: 4921
targetPort: 4921
nodePort: 30004
name: https
- protocol: TCP
port: 4922
targetPort: 4922
nodePort: 30008
name: http

30
apps/znc/statefulset.yaml Normal file
View File

@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: znc
labels:
app.kubernetes.io/name: znc
spec:
replicas: 1
serviceName: "znc"
selector:
matchLabels:
app.kubernetes.io/name: znc
template:
metadata:
labels:
app.kubernetes.io/name: znc
spec:
volumes:
- name: znc-config
persistentVolumeClaim:
claimName: znc-pvc
containers:
- name: znc
image: znc:latest
imagePullPolicy: Always
ports:
- containerPort: 4921
volumeMounts:
- name: znc-config
mountPath: "/znc-data"