nextcloud-hpb added

This commit is contained in:
Philip Haupt
2026-03-07 14:50:44 +01:00
parent b166e5865e
commit 55d83976a0
4 changed files with 118 additions and 0 deletions

11
nextcloud-hpb/cm.yaml Normal file
View File

@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nextcloud-hpb-config
namespace: nextcloud-hpb
data:
NC_DOMAIN: cloud.borninpain.de
TALK_HOST: signal.borninpain.de
TALK_PORT: "3478"
TZ: "Europe/Berlin"

75
nextcloud-hpb/deploy.yaml Normal file
View File

@@ -0,0 +1,75 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud-hpb
namespace: nextcloud-hpb
labels:
app: nextcloud-hpb
spec:
replicas: 1
selector:
matchLabels:
app: nextcloud-hpb
template:
metadata:
labels:
app: nextcloud-hpb
spec:
containers:
- name: nextcloud-hpb
image: ghcr.io/nextcloud-releases/aio-talk:latest
imagePullPolicy: IfNotPresent
ports:
- name: turn-tcp
containerPort: 3478
protocol: TCP
- name: turn-udp
containerPort: 3478
protocol: UDP
- name: signaling
containerPort: 8081
protocol: TCP
# Domain/Host aus ConfigMap, Secrets separat
envFrom:
- configMapRef:
name: nextcloud-hpb-config
env:
- name: TURN_SECRET
valueFrom:
secretKeyRef:
name: nextcloud-hpb-secrets
key: TURN_SECRET
- name: SIGNALING_SECRET
valueFrom:
secretKeyRef:
name: nextcloud-hpb-secrets
key: SIGNALING_SECRET
- name: INTERNAL_SECRET
valueFrom:
secretKeyRef:
name: nextcloud-hpb-secrets
key: INTERNAL_SECRET
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: "1"
memory: 1Gi
# Probes (TCP auf Signaling-Port 8081)
livenessProbe:
tcpSocket:
port: signaling
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readinessProbe:
tcpSocket:
port: signaling
failureThreshold: 3

View File

@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cm.yaml
- deploy.yaml
- svc.yaml

25
nextcloud-hpb/svc.yaml Normal file
View File

@@ -0,0 +1,25 @@
---
apiVersion: v1
kind: Service
metadata:
name: nextcloud-hpb
namespace: nextcloud-hpb
labels:
app: nextcloud-hpb
spec:
selector:
app: nextcloud-hpb
type: ClusterIP
ports:
- name: signaling
port: 8081
targetPort: signaling
protocol: TCP
- name: turn-tcp
port: 3478
targetPort: turn-tcp
protocol: TCP
- name: turn-udp
port: 3478
targetPort: turn-udp
protocol: UDP