nextcloud-hpb added
This commit is contained in:
11
nextcloud-hpb/cm.yaml
Normal file
11
nextcloud-hpb/cm.yaml
Normal 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
75
nextcloud-hpb/deploy.yaml
Normal 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
|
||||||
7
nextcloud-hpb/kustomization.yaml
Normal file
7
nextcloud-hpb/kustomization.yaml
Normal 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
25
nextcloud-hpb/svc.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user