diff --git a/src/main/resources/jitsi/jicofo-deployment.yaml b/src/main/resources/jitsi/jicofo-deployment.yaml new file mode 100644 index 0000000..64e9152 --- /dev/null +++ b/src/main/resources/jitsi/jicofo-deployment.yaml @@ -0,0 +1,30 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jicofo +spec: + selector: + matchLabels: + app: jicofo + strategy: + type: Recreate + template: + metadata: + labels: + app: jicofo + jitsi-network/meet.jitsi: "true" + spec: + containers: + - env: + - name: SENTRY_DSN + value: '"0"' + image: jitsi/jicofo:stable-6865 + imagePullPolicy: IfNotPresent + name: jicofo + volumeMounts: + - mountPath: /config + name: jicofo-claim-config + volumes: + - name: jicofo-claim-config + persistentVolumeClaim: + claimName: jicofo-claim-config diff --git a/src/main/resources/jitsi/jicofo-pvc.yaml b/src/main/resources/jitsi/jicofo-pvc.yaml new file mode 100644 index 0000000..c7584fa --- /dev/null +++ b/src/main/resources/jitsi/jicofo-pvc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: jicofo-claim-config + labels: + app: jicofo +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi diff --git a/src/main/resources/jitsi/jvb-deployment.yaml b/src/main/resources/jitsi/jvb-deployment.yaml new file mode 100644 index 0000000..3401231 --- /dev/null +++ b/src/main/resources/jitsi/jvb-deployment.yaml @@ -0,0 +1,41 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jvb +spec: + selector: + matchLabels: + app: jvb + strategy: + type: Recreate + template: + metadata: + labels: + app: jvb + jitsi-network/meet.jitsi: "true" + service: jvb-service + spec: + containers: + - env: + - name: JVB_PORT + value: "10000" + - name: JVB_TCP_MAPPED_PORT + value: "4443" + - name: JVB_TCP_PORT + value: "4443" + - name: SENTRY_DSN + value: '"0"' + image: jitsi/jvb:stable-6865 + imagePullPolicy: IfNotPresent + name: jvb + ports: + - containerPort: 10000 + protocol: UDP + - containerPort: 4443 + volumeMounts: + - mountPath: /config + name: jvb-claim-config + volumes: + - name: jvb-claim-config + persistentVolumeClaim: + claimName: jvb-claim-config diff --git a/src/main/resources/jitsi/jvb-pvc.yaml b/src/main/resources/jitsi/jvb-pvc.yaml new file mode 100644 index 0000000..c283a6e --- /dev/null +++ b/src/main/resources/jitsi/jvb-pvc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: jvb-claim-config + labels: + app: jvb +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi diff --git a/src/main/resources/jitsi/jvb-service.yaml b/src/main/resources/jitsi/jvb-service.yaml new file mode 100644 index 0000000..e033164 --- /dev/null +++ b/src/main/resources/jitsi/jvb-service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: jvb-service +spec: + ports: + - port: 10000 + protocol: UDP + - port: 4443 + selector: + app: jvb diff --git a/src/main/resources/jitsi/networkpolicy.yaml b/src/main/resources/jitsi/networkpolicy.yaml new file mode 100644 index 0000000..4328430 --- /dev/null +++ b/src/main/resources/jitsi/networkpolicy.yaml @@ -0,0 +1,13 @@ +apiVersion: extensions/v1beta1 +kind: NetworkPolicy +metadata: + name: meet.jitsi +spec: + ingress: + - from: + - podSelector: + matchLabels: + jitsi-network/meet.jitsi: "true" + podSelector: + matchLabels: + jitsi-network/meet.jitsi: "true" diff --git a/src/main/resources/jitsi/prosody-deployment.yaml b/src/main/resources/jitsi/prosody-deployment.yaml new file mode 100644 index 0000000..8807774 --- /dev/null +++ b/src/main/resources/jitsi/prosody-deployment.yaml @@ -0,0 +1,37 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: prosody +spec: + selector: + matchLabels: + app: prosody + strategy: + type: Recreate + template: + metadata: + labels: + app: prosody + jitsi-network/meet.jitsi: "true" + service: prosody-service + spec: + containers: + - image: jitsi/prosody:stable-6865 + imagePullPolicy: IfNotPresend + name: prosody + ports: + - containerPort: 5222 + - containerPort: 5347 + - containerPort: 5280 + volumeMounts: + - mountPath: /config + name: prosody-claim-config + - mountPath: /prosody-plugins-custom + name: prosody-claim-plugins + volumes: + - name: prosody-claim-config + persistentVolumeClaim: + claimName: prosody-claim-config + - name: prosody-claim-plugins + persistentVolumeClaim: + claimName: prosody-claim-plugins diff --git a/src/main/resources/jitsi/prosody-pvc.yaml b/src/main/resources/jitsi/prosody-pvc.yaml new file mode 100644 index 0000000..58abeb3 --- /dev/null +++ b/src/main/resources/jitsi/prosody-pvc.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: prosody-claim-config + labels: + app: prosody +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: prosody-claim-plugins + labels: + app: prosody +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi diff --git a/src/main/resources/jitsi/prosody-service.yaml b/src/main/resources/jitsi/prosody-service.yaml new file mode 100644 index 0000000..1aad686 --- /dev/null +++ b/src/main/resources/jitsi/prosody-service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: prosody-service +spec: + ports: + - port: 5222 + - port: 5347 + - port: 5280 + selector: + app: prosody diff --git a/src/main/resources/jitsi/web-deployment.yaml b/src/main/resources/jitsi/web-deployment.yaml new file mode 100644 index 0000000..c12e4ea --- /dev/null +++ b/src/main/resources/jitsi/web-deployment.yaml @@ -0,0 +1,41 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jitsi-web +spec: + selector: + matchLabels: + app: jitsi-web + strategy: + type: Recreate + template: + metadata: + labels: + app: jitsi + jitsi-network/meet.jitsi: "true" + service: jitsi-web-service + spec: + containers: + - image: jitsi/web:stable-6865 + imagePullPolicy: IfNotPresent + name: jitsi-web + ports: + - containerPort: 80 + - containerPort: 443 + volumeMounts: + - mountPath: /config + name: web-claim-config + - mountPath: /var/spool/cron/crontabs + name: web-claim-crontabs + - mountPath: /usr/share/jitsi-meet/transcripts + name: web-claim-transcripts + volumes: + - name: web-claim-config + persistentVolumeClaim: + claimName: web-claim-config + - name: web-claim-crontabs + persistentVolumeClaim: + claimName: web-claim-crontabs + - name: web-claim-transcripts + persistentVolumeClaim: + claimName: web-claim-transcripts diff --git a/src/main/resources/jitsi/web-pvc.yaml b/src/main/resources/jitsi/web-pvc.yaml new file mode 100644 index 0000000..88cfda3 --- /dev/null +++ b/src/main/resources/jitsi/web-pvc.yaml @@ -0,0 +1,38 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: web-claim-config + labels: + app: jitsi +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: web-claim-crontabs + labels: + app: jitsi +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: web-claim-transcripts + labels: + app: jitsi +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi diff --git a/src/main/resources/jitsi/web-service.yaml b/src/main/resources/jitsi/web-service.yaml new file mode 100644 index 0000000..4ea1c6e --- /dev/null +++ b/src/main/resources/jitsi/web-service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: jitsi-web-service +spec: + selector: + app: jitsi-web + ports: + - port: 8000 + - port: 8443 + selector: + service: jitsi-web-service