diff --git a/k8s/jicofo-deployment.yaml b/k8s/jicofo-deployment.yaml new file mode 100644 index 0000000..09cd1cf --- /dev/null +++ b/k8s/jicofo-deployment.yaml @@ -0,0 +1,36 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + service: jicofo + name: jicofo +spec: + replicas: 1 + strategy: + type: Recreate + template: + metadata: + labels: + service: jicofo + spec: + containers: + - env: + - name: XMPP_SERVER + value: + - name: XMPP_DOMAIN + value: meet.jitsi + - name: XMPP_AUTH_DOMAIN + value: auth.meet.jitsi + - name: JICOFO_COMPONENT_SECRET + value: s3cr37 + - name: JICOFO_AUTH_USER + value: focus + - name: JICOFO_AUTH_PASSWORD + value: passw0rd + - name: TZ + value: Europe/Paris + image: jitsi/jicofo + name: jicofo + resources: {} + restartPolicy: Always +status: {} diff --git a/k8s/jvb-deployment.yaml b/k8s/jvb-deployment.yaml new file mode 100644 index 0000000..bd0640f --- /dev/null +++ b/k8s/jvb-deployment.yaml @@ -0,0 +1,42 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + service: jvb + name: jvb +spec: + replicas: 1 + strategy: + type: Recreate + template: + metadata: + labels: + service: jvb + spec: + containers: + - env: + - name: XMPP_SERVER + value: + - name: DOCKER_HOST_ADDRESS + value: + - name: XMPP_DOMAIN + value: meet.jitsi + - name: XMPP_AUTH_DOMAIN + value: auth.meet.jitsi + - name: JVB_COMPONENT_SECRET + value: s3cr3t + - name: JVB_STUN_SERVERS + value: stun.l.google.com:19302,stun1.l.google.com:19302,stun2.l.google.com:19302 + - name: JICOFO_AUTH_USER + value: focus + - name: TZ + value: Europe/Paris + image: jitsi/jvb + name: jvb + ports: + - containerPort: 10000 + protocol: UDP + - containerPort: 4443 + resources: {} + restartPolicy: Always +status: {} diff --git a/k8s/jvb-service-lb.yaml b/k8s/jvb-service-lb.yaml new file mode 100644 index 0000000..e8b32e7 --- /dev/null +++ b/k8s/jvb-service-lb.yaml @@ -0,0 +1,36 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + service: jvb + name: jvb-tcp +spec: + type: LoadBalancer + loadBalancerIP: + ports: + - name: "4443" + port: 4443 + targetPort: 4443 + selector: + service: jvb +status: + loadBalancer: {} +--- +apiVersion: v1 +kind: Service +metadata: + labels: + service: jvb + name: jvb-udp +spec: + type: LoadBalancer + loadBalancerIP: + ports: + - name: "10000" + port: 10000 + protocol: UDP + targetPort: 10000 + selector: + service: jvb +status: + loadBalancer: {} diff --git a/k8s/prosody-deployment.yaml b/k8s/prosody-deployment.yaml new file mode 100644 index 0000000..943c568 --- /dev/null +++ b/k8s/prosody-deployment.yaml @@ -0,0 +1,42 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + service: prosody + name: prosody +spec: + replicas: 1 + strategy: + type: Recreate + template: + metadata: + labels: + service: prosody + spec: + containers: + - env: + - name: XMPP_DOMAIN + value: meet.jitsi + - name: XMPP_AUTH_DOMAIN + value: auth.meet.jitsi + - name: XMPP_MUC_DOMAIN + value: muc.meet.jitsi + - name: JICOFO_COMPONENT_SECRET + value: s3cr37 + - name: JVB_COMPONENT_SECRET + value: s3cr3t + - name: JICOFO_AUTH_USER + value: focus + - name: JICOFO_AUTH_PASSWORD + value: passw0rd + - name: TZ + value: Europe/Paris + image: jitsi/prosody + name: prosody + ports: + - containerPort: 5222 + - containerPort: 5280 + - containerPort: 5347 + resources: {} + restartPolicy: Always +status: {} diff --git a/k8s/prosody-service.yaml b/k8s/prosody-service.yaml new file mode 100644 index 0000000..a4e6d6d --- /dev/null +++ b/k8s/prosody-service.yaml @@ -0,0 +1,21 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + service: prosody + name: prosody +spec: + ports: + - name: "5222" + port: 5222 + targetPort: 5222 + - name: "5280" + port: 5280 + targetPort: 5280 + - name: "5347" + port: 5347 + targetPort: 5347 + selector: + service: prosody +status: + loadBalancer: {} diff --git a/k8s/web-deployment.yaml b/k8s/web-deployment.yaml new file mode 100644 index 0000000..4f05d30 --- /dev/null +++ b/k8s/web-deployment.yaml @@ -0,0 +1,36 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + service: web + name: web +spec: + replicas: 1 + strategy: + type: Recreate + template: + metadata: + labels: + service: web + spec: + containers: + - env: + - name: JICOFO_AUTH_USER + value: focus + - name: XMPP_DOMAIN + value: meet.jitsi + - name: XMPP_AUTH_DOMAIN + value: auth.meet.jitsi + - name: XMPP_BOSH_URL_BASE + value: http://prosody:5280 + - name: XMPP_MUC_DOMAIN + value: muc.meet.jitsi + - name: TZ + value: Europe/Paris + image: jitsi/web + name: web + ports: + - containerPort: 80 + - containerPort: 443 + resources: {} +status: {} diff --git a/k8s/web-ingress.yaml b/k8s/web-ingress.yaml new file mode 100644 index 0000000..e1dc956 --- /dev/null +++ b/k8s/web-ingress.yaml @@ -0,0 +1,17 @@ + apiVersion: extensions/v1beta1 + kind: Ingress + metadata: + name: webingress + spec: + tls: + - hosts: + - + secretName: + rules: + - host: + http: + paths: + - path: / + backend: + serviceName: web + servicePort: 80 \ No newline at end of file diff --git a/k8s/web-service.yaml b/k8s/web-service.yaml new file mode 100644 index 0000000..a907bba --- /dev/null +++ b/k8s/web-service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + service: web + name: web +spec: + ports: + - name: "http" + port: 80 + targetPort: 80 + - name: "https" + port: 443 + targetPort: 443 + selector: + service: web