initial commit

This commit is contained in:
2026-01-17 08:40:50 -05:00
parent 6eae4c6fa1
commit 6c0c269520
6 changed files with 134 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./thelounge
# - ./znc
+19
View File
@@ -0,0 +1,19 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: thelounge
namespace: irc
spec:
parentRefs:
- name: external
namespace: istio-system
hostnames:
- ${THELOUNGE_HOSTNAME}
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: thelounge
port: 9000
+14
View File
@@ -0,0 +1,14 @@
## Service
---
apiVersion: v1
kind: Service
metadata:
name: thelounge
labels:
app.kubernetes.io/name: thelounge
spec:
type: ClusterIP
ports:
- port: 9000
selector:
app.kubernetes.io/name: thelounge
+40
View File
@@ -0,0 +1,40 @@
## StatefulSet
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: thelounge
spec:
selector:
matchLabels:
app.kubernetes.io/name: thelounge
serviceName: "thelounge"
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: thelounge
spec:
containers:
- name: thelounge
image: ghcr.io/thelounge/thelounge:latest
ports:
- containerPort: 9000
name: http-9000
volumeMounts:
- name: config
mountPath: "/var/opt/thelounge"
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
volumeClaimTemplates:
- metadata:
name: config
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 4Gi
+16
View File
@@ -0,0 +1,16 @@
## Service
---
apiVersion: v1
kind: Service
metadata:
name: znc
labels:
app.kubernetes.io/name: znc
annotations:
external-dns.alpha.kubernetes.io/hostname: ${ZNC_HOSTNAME}
spec:
type: LoadBalancer
ports:
- port: 6501
selector:
app.kubernetes.io/name: znc
+40
View File
@@ -0,0 +1,40 @@
## StatefulSet
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: znc
spec:
selector:
matchLabels:
app.kubernetes.io/name: znc
serviceName: "znc"
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: znc
spec:
containers:
- name: znc
image: lscr.io/linuxserver/znc:latest
ports:
- containerPort: 6501
name: irc-6501
volumeMounts:
- name: config
mountPath: "/app/config"
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
volumeClaimTemplates:
- metadata:
name: config
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 4Gi