added mounting

This commit is contained in:
Ariel Sosnovsky committed 2023-11-13 16:04:23 -05:00
1 parent 1331387ac5
commit 681d8f2dee
1 file changed
+14 -2
+14 -2
View File
@@ -18,13 +18,13 @@ kind: ExternalSecret
metadata:
name: "{{$k}}-config"
spec:
refreshInterval: 1h
refreshInterval: 1d
secretStoreRef:
kind: ClusterSecretStore
name: chart-database
target:
name: "{{$k}}-config"
creationPolicy: Owned
creationPolicy: Owner
template:
engineVersion: v2
data:
@@ -145,6 +145,15 @@ spec:
mountPath: /config
- name: torrents
mountPath: /torrents
- name: configxml
mountPath: /configxml
lifecycle:
postStart:
exec:
command:
- /bin/sh
- -c
- cp /configxml/config.xml /config/config.xml
livenessProbe:
httpGet:
path: "/ping"
@@ -168,6 +177,9 @@ spec:
failureThreshold: 10
timeoutSeconds: 30
volumes:
- name: configxml
secret:
secretName: "{{$k}}-config"
- name: torrents
nfs:
server: "{{ $.Values.global.nfs.server }}"