add etherpad integration

pull/8/head
Wei He 4 years ago
parent 9a0fbf7f6a
commit d29db3d865
  1. 3
      deploy_jitsi.sh
  2. 30
      jitsi/templates/etherpad/deployment.yaml
  3. 17
      jitsi/templates/etherpad/service.yaml
  4. 5
      jitsi/values.yaml

@ -195,7 +195,8 @@ function do_app {
--helm-set fqdn=${FQDN} \
--helm-set jitsi-meet.publicURL=https://${FQDN} \
--helm-set jitsi-meet.jvb.publicIP=${PUBLIC_IP} \
--helm-set jitsi-meet.jvb.UDPPort=${JVB_PORT}
--helm-set jitsi-meet.jvb.UDPPort=${JVB_PORT} \
--helm-set jitsi-meet.web.extraEnvs.ETHERPAD_URL_BASE=http://${HELM_NAME}-etherpad.${NAMESPACE}.svc:9001
sleep 5 # there is a race if sync happens too quickly, so that it becomes a partial sync
argocd app sync ${HELM_NAME}

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-etherpad
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: etherpad
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: etherpad
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: etherpad
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
containers:
- name: etherpad
image: "etherpad/etherpad:1.8.6"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 9001
protocol: TCP
resources:
{{- toYaml .Values.etherpad.resources | nindent 12 }}

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-etherpad
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: etherpad
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
type: ClusterIP
ports:
- port: 9001
protocol: TCP
name: http
selector:
app.kubernetes.io/name: etherpad
app.kubernetes.io/instance: {{ .Release.Name }}

@ -3,12 +3,17 @@ certResolver: le-staging
fqdn: ""
etherpad:
resources: {}
jitsi-meet:
publicURL: ""
tz: Asia/Shanghai
web:
extraEnvs:
ETHERPAD_URL_BASE: http://etherpad.meet.jitsi:9001
ingress:
enabled: false

Loading…
Cancel
Save