summaryrefslogtreecommitdiff
path: root/roles/apps/collabora/code/templates/pod.yml.j2
blob: ee4651a1d0d58f6e1aa30b888c594edc95f952b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: v1
kind: Pod
metadata:
  name: "collabora-code-{{ item.key }}"
spec:
  containers:
  - name: collabora-code
    image: "collabora/code:{{ item.value.version }}"
    resources:
      limits:
        memory: "4Gi"
    env:
    - name: "DONT_GEN_SSL_CERT"
      value: "1"
    - name: "username"
      value: "{{ item.value.admin_user }}"
    - name: "password"
      value: "{{ item.value.admin_password }}"
    - name: "extra_params"
      value: "--o:ssl.enable=false --o:ssl.termination=true"
    volumeMounts:
    - name: config
      mountPath: /etc/loolwsd/loolwsd.xml
      subPath: loolwsd.xml
      readOnly: true
    ports:
    - containerPort: 9980
      hostPort: {{ item.value.port }}
  volumes:
  - name: config
    hostPath:
      path: "{{ collabora_code_base_path }}/{{ item.key }}/config/"
      type: Directory