summaryrefslogtreecommitdiff
path: root/roles/apps/bluespice/templates/pod-spec.yml.j2
blob: 67493dc02a7e9772c270f03b22ffc7ad8dda55c3 (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
34
35
terminationGracePeriodSeconds: 120
containers:
- name: bluespice
  image: "bluespice/bluespice-free:{{ item.value.version }}"
  resources:
    limits:
      memory: "4Gi"
  env:
  - name: "BS_NAME"
    value: "{{ item.key }}"
  - name: "BS_URL"
    value: "https://{{ item.value.hostname }}"
  - name: "BS_LANG"
    value: "{{ item.value.language }}"
  - name: "BS_USER"
    value: "{{ item.value.admin.username }}"
  - name: "BS_PASSWORD"
    value: "{{ item.value.admin.password }}"
  - name: "BS_DB_PASSWORD"
    value: "{{ item.value.db_password }}"
  - name: "DISABLE_PINGBACK"
    value: "yes"
  volumeMounts:
  - name: data
    mountPath: /data
  ports:
  - containerPort: 80
    hostPort: {{ item.value.port }}
    hostIP: 127.0.0.1

volumes:
- name: data
  hostPath:
    path: "{{ bluespice_base_path }}/{{ item.key }}/data"
    type: Directory