jitsi-k8s/02-deployments.yml

440 lines
12 KiB
YAML
Raw Normal View History

2024-07-03 07:54:32 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
2024-07-10 10:57:37 +00:00
name: jitsi-web-conf
namespace: external-app-development
2024-07-03 07:54:32 +00:00
data:
20-use-env: |-
#!/bin/bash
sed -i "s|xmpp.meet.jitsi|XMPP_SERVER|" /config/nginx/meet.conf
---
kind: Deployment
apiVersion: apps/v1
metadata:
2024-07-10 10:57:37 +00:00
name: jitsi-web
namespace: external-app-development
2024-07-03 07:54:32 +00:00
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
2024-07-10 10:57:37 +00:00
app: jitsi-web
2024-07-03 07:54:32 +00:00
template:
metadata:
labels:
2024-07-10 10:57:37 +00:00
app: jitsi-web
2024-07-03 07:54:32 +00:00
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
- amd64
initContainers:
2024-07-10 10:57:37 +00:00
- name: jitsi-web-conf
2024-07-03 07:54:32 +00:00
image: busybox
args: ["sh", "-c", "cat /20-use-env | sed \"s/XMPP_SERVER/$XMPP_SERVER/\" > /config/20-use-env && chmod +x /config/20-use-env"]
volumeMounts:
- mountPath: /config
2024-07-10 10:57:37 +00:00
name: jitsi-web
2024-07-03 07:54:32 +00:00
- mountPath: /20-use-env
2024-07-10 10:57:37 +00:00
name: jitsi-web-conf
2024-07-03 07:54:32 +00:00
subPath: 20-use-env
envFrom:
- configMapRef:
2024-07-10 10:57:37 +00:00
name: jitsi-env
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
2024-07-03 07:54:32 +00:00
containers:
2024-07-10 10:57:37 +00:00
- name: jitsi-web
2024-07-03 07:54:32 +00:00
image: jitsi/web:stable-9457-2
ports:
- containerPort: 80
protocol: TCP
- containerPort: 443
protocol: TCP
envFrom:
- configMapRef:
2024-07-10 10:57:37 +00:00
name: jitsi-env
2024-07-03 07:54:32 +00:00
env:
- name: JICOFO_AUTH_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JICOFO_AUTH_PASSWORD
- name: JVB_AUTH_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JVB_AUTH_PASSWORD
- name: JIGASI_XMPP_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIGASI_XMPP_PASSWORD
- name: JIBRI_RECORDER_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIBRI_RECORDER_PASSWORD
- name: JIBRI_XMPP_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIBRI_XMPP_PASSWORD
volumeMounts:
- mountPath: /config
2024-07-10 10:57:37 +00:00
name: jitsi-web
2024-07-03 07:54:32 +00:00
- mountPath: /var/spool/cron/crontabs
2024-07-10 10:57:37 +00:00
name: jitsi-web
2024-07-03 07:54:32 +00:00
subPath: crontabs
- mountPath: /usr/share/jitsi-meet/transcripts
2024-07-10 10:57:37 +00:00
name: jitsi-web
2024-07-03 07:54:32 +00:00
subPath: transcripts
- mountPath: /etc/cont-init.d/20-use-env
2024-07-10 10:57:37 +00:00
name: jitsi-web
subPath: 20-use-env
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
2024-07-03 07:54:32 +00:00
resources:
limits:
cpu: "500m"
memory: "512Mi"
requests:
cpu: "10m"
memory: "10Mi"
# readinessProbe:
# tcpSocket:
# port: 80
# initialDelaySeconds: 15
# periodSeconds: 10
# livenessProbe:
# tcpSocket:
# port: 80
# initialDelaySeconds: 15
# periodSeconds: 10
volumes:
2024-07-10 10:57:37 +00:00
- name: jitsi-web
2024-07-03 07:54:32 +00:00
persistentVolumeClaim:
2024-07-10 10:57:37 +00:00
claimName: jitsi-web
- name: jitsi-web-conf
2024-07-03 07:54:32 +00:00
configMap:
2024-07-10 10:57:37 +00:00
name: jitsi-web-conf
2024-07-03 07:54:32 +00:00
items:
- key: 20-use-env
path: 20-use-env
---
kind: Deployment
apiVersion: apps/v1
metadata:
2024-07-10 10:57:37 +00:00
name: jitsi-prosody
namespace: external-app-development
2024-07-03 07:54:32 +00:00
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
2024-07-10 10:57:37 +00:00
app: jitsi-prosody
2024-07-03 07:54:32 +00:00
template:
metadata:
labels:
2024-07-10 10:57:37 +00:00
app: jitsi-prosody
2024-07-03 07:54:32 +00:00
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
- amd64
containers:
2024-07-10 10:57:37 +00:00
- name: jitsi-prosody
2024-07-03 07:54:32 +00:00
image: jitsi/prosody:stable-9457-2
ports:
- containerPort: 5222
protocol: TCP
- containerPort: 5269
protocol: TCP
- containerPort: 5347
protocol: TCP
- containerPort: 5280
protocol: TCP
envFrom:
- configMapRef:
2024-07-10 10:57:37 +00:00
name: jitsi-env
2024-07-03 07:54:32 +00:00
env:
- name: JICOFO_AUTH_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JICOFO_AUTH_PASSWORD
- name: JVB_AUTH_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JVB_AUTH_PASSWORD
- name: JIGASI_XMPP_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIGASI_XMPP_PASSWORD
- name: JIBRI_RECORDER_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIBRI_RECORDER_PASSWORD
- name: JIBRI_XMPP_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIBRI_XMPP_PASSWORD
2024-07-10 10:57:37 +00:00
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
2024-07-03 07:54:32 +00:00
volumeMounts:
- mountPath: /config
2024-07-10 10:57:37 +00:00
name: jitsi-prosody
2024-07-03 07:54:32 +00:00
- mountPath: /prosody-plugins-custom
2024-07-10 10:57:37 +00:00
name: jitsi-prosody
2024-07-03 07:54:32 +00:00
subPath: prosody-plugins-custom
resources:
limits:
cpu: "500m"
memory: "512Mi"
requests:
cpu: "10m"
memory: "10Mi"
# readinessProbe:
# tcpSocket:
# port: 5280
# initialDelaySeconds: 15
# periodSeconds: 10
# livenessProbe:
# tcpSocket:
# port: 5280
# initialDelaySeconds: 15
# periodSeconds: 10
volumes:
2024-07-10 10:57:37 +00:00
- name: jitsi-prosody
2024-07-03 07:54:32 +00:00
persistentVolumeClaim:
2024-07-10 10:57:37 +00:00
claimName: jitsi-prosody
2024-07-03 07:54:32 +00:00
---
kind: Deployment
apiVersion: apps/v1
metadata:
2024-07-10 10:57:37 +00:00
name: jitsi-jicofo
namespace: external-app-development
2024-07-03 07:54:32 +00:00
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
2024-07-10 10:57:37 +00:00
app: jitsi-jicofo
2024-07-03 07:54:32 +00:00
template:
metadata:
labels:
2024-07-10 10:57:37 +00:00
app: jitsi-jicofo
2024-07-03 07:54:32 +00:00
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
- amd64
containers:
2024-07-10 10:57:37 +00:00
- name: jitsi-jicofo
2024-07-03 07:54:32 +00:00
image: jitsi/jicofo:stable-9457-2
ports:
- containerPort: 8888
protocol: TCP
envFrom:
- configMapRef:
2024-07-10 10:57:37 +00:00
name: jitsi-env
2024-07-03 07:54:32 +00:00
env:
- name: JICOFO_AUTH_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JICOFO_AUTH_PASSWORD
- name: JVB_AUTH_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JVB_AUTH_PASSWORD
- name: JIGASI_XMPP_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIGASI_XMPP_PASSWORD
- name: JIBRI_RECORDER_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIBRI_RECORDER_PASSWORD
- name: JIBRI_XMPP_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIBRI_XMPP_PASSWORD
2024-07-10 10:57:37 +00:00
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
2024-07-03 07:54:32 +00:00
volumeMounts:
- mountPath: /config
2024-07-10 10:57:37 +00:00
name: jitsi-jicofo
2024-07-03 07:54:32 +00:00
resources:
limits:
cpu: "500m"
memory: "512Mi"
requests:
cpu: "10m"
memory: "10Mi"
# readinessProbe:
# tcpSocket:
# port: 8888
# initialDelaySeconds: 15
# periodSeconds: 10
# livenessProbe:
# tcpSocket:
# port: 8888
# initialDelaySeconds: 15
# periodSeconds: 10
volumes:
2024-07-10 10:57:37 +00:00
- name: jitsi-jicofo
2024-07-03 07:54:32 +00:00
persistentVolumeClaim:
2024-07-10 10:57:37 +00:00
claimName: jitsi-jicofo
2024-07-03 07:54:32 +00:00
---
kind: Deployment
apiVersion: apps/v1
metadata:
2024-07-10 10:57:37 +00:00
name: jitsi-jvb
namespace: external-app-development
2024-07-03 07:54:32 +00:00
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
2024-07-10 10:57:37 +00:00
app: jitsi-jvb
2024-07-03 07:54:32 +00:00
template:
metadata:
labels:
2024-07-10 10:57:37 +00:00
app: jitsi-jvb
2024-07-03 07:54:32 +00:00
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
- amd64
containers:
2024-07-10 10:57:37 +00:00
- name: jitsi-jvb
2024-07-03 07:54:32 +00:00
image: jitsi/jvb:stable-9457-2
ports:
- containerPort: 10000
protocol: UDP
- containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
2024-07-10 10:57:37 +00:00
name: jitsi-env
2024-07-03 07:54:32 +00:00
env:
- name: JICOFO_AUTH_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JICOFO_AUTH_PASSWORD
- name: JVB_AUTH_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JVB_AUTH_PASSWORD
- name: JIGASI_XMPP_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIGASI_XMPP_PASSWORD
- name: JIBRI_RECORDER_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIBRI_RECORDER_PASSWORD
- name: JIBRI_XMPP_PASSWORD
valueFrom:
secretKeyRef:
2024-07-10 10:57:37 +00:00
name: jitsi-passwords
2024-07-03 07:54:32 +00:00
key: JIBRI_XMPP_PASSWORD
2024-07-10 10:57:37 +00:00
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
2024-07-03 07:54:32 +00:00
volumeMounts:
- mountPath: /config
2024-07-10 10:57:37 +00:00
name: jitsi-jvb
2024-07-03 07:54:32 +00:00
resources:
limits:
cpu: "500m"
memory: "512Mi"
requests:
cpu: "10m"
memory: "10Mi"
# readinessProbe:
# tcpSocket:
# port: 8080
# initialDelaySeconds: 15
# periodSeconds: 10
# livenessProbe:
# tcpSocket:
# port: 8080
# initialDelaySeconds: 15
# periodSeconds: 10
volumes:
2024-07-10 10:57:37 +00:00
- name: jitsi-jvb
2024-07-03 07:54:32 +00:00
persistentVolumeClaim:
2024-07-10 10:57:37 +00:00
claimName: jitsi-jvb