summaryrefslogtreecommitdiff
path: root/roles/apps/collabora/code/templates/pod-spec.yml.j2
blob: 22dfaf490d5c834e081cf270a14823b6aad3fcce (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
containers:
- name: collabora-code
  image: "collabora/code{% if 'custom_image' in item.value %}/{{ item.key }}{% endif %}:{{ item.value.version }}"
  resources:
    limits:
      memory: "4Gi"
  env:
  - name: "DONT_GEN_SSL_CERT"
    value: "1"
  - name: "extra_params"
    value: "--o:ssl.enable=false --o:ssl.termination=true"
  volumeMounts:
  - name: config
{% if item.value.version | collabora_code_loolvcool %}
    mountPath: /etc/loolwsd/loolwsd.xml
    subPath: loolwsd.xml
{% else %}
    mountPath: /etc/coolwsd/coolwsd.xml
    subPath: coolwsd.xml
{% endif %}
    readOnly: true
  ports:
  - containerPort: 9980
    hostPort: {{ item.value.port }}
    hostIP: 127.0.0.1
volumes:
- name: config
  hostPath:
    path: "{{ collabora_code_base_path }}/{{ item.key }}/config/"
    type: Directory