summaryrefslogtreecommitdiff
path: root/roles/apps/gotify/instance/templates/pod-spec.yml.j2
blob: 441a6adbe41b592a80da23720d6cda5f061ee77e (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
securityContext:
  allowPrivilegeEscalation: false
  runAsUser: {{ gotify_uid }}
  runAsGroup: {{ gotify_gid }}
containers:
- name: gotify
  image: "gotify/server:{{ gotify_instances[gotify_instance].version }}"
  env:
  - name: TZ
    value: "{{ gotify_instances[gotify_instance].timezone }}"
  - name: GOTIFY_SERVER_PORT
    value: "8080"
  resources:
    limits:
      memory: "512Mi"
  volumeMounts:
  - name: config
    mountPath: /etc/gotify/config.yml
    readOnly: true
  - name: data
    mountPath: /app/data
volumes:
- name: config
  hostPath:
    path: "{{ gotify_base_path }}/{{ gotify_instance }}/config.yml"
    type: File
- name: data
  hostPath:
    path: "{{ gotify_base_path }}/{{ gotify_instance }}/data"
    type: Directory