chart: backend volumeMount + TOWER_OPS_PERSIST_PATH env
This commit is contained in:
@@ -90,6 +90,15 @@ spec:
|
|||||||
name: {{ .Values.config.existingSecret }}
|
name: {{ .Values.config.existingSecret }}
|
||||||
key: VAULT_TOKEN
|
key: VAULT_TOKEN
|
||||||
optional: true
|
optional: true
|
||||||
|
# OpStore persistence — when the PVC is mounted, point
|
||||||
|
# the backend at a JSON file inside it. With this set, the
|
||||||
|
# bell + Activity history survive Tower-backend rollouts.
|
||||||
|
# When persistence is disabled, this stays empty and the
|
||||||
|
# store runs purely in-memory.
|
||||||
|
{{- if .Values.backend.persistence.enabled }}
|
||||||
|
- name: TOWER_OPS_PERSIST_PATH
|
||||||
|
value: /var/lib/tower/operations.json
|
||||||
|
{{- end }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
@@ -104,4 +113,15 @@ spec:
|
|||||||
periodSeconds: 15
|
periodSeconds: 15
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.backend.resources | nindent 12 }}
|
{{- toYaml .Values.backend.resources | nindent 12 }}
|
||||||
|
{{- if .Values.backend.persistence.enabled }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: tower-data
|
||||||
|
mountPath: /var/lib/tower
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.backend.persistence.enabled }}
|
||||||
|
volumes:
|
||||||
|
- name: tower-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: tower-data
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user