TrueChartsCatalogClone/stable/pinry/8.2.0/ix_values.yaml

64 lines
1.5 KiB
YAML

image:
repository: getpinry/pinry
tag: 2.1.12@sha256:b0f9eeb195d478d9a989e220861b4638f4fb489d02fdaac1e46bbacd46e90a96
pullPolicy: IfNotPresent
service:
main:
ports:
main:
port: 10213
targetPort: 80
persistence:
data:
enabled: true
mountPath: "/data"
targetSelectAll: true
portal:
open:
enabled: true
securityContext:
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0
workload:
main:
podSpec:
initContainers:
1-create-key-file:
type: install
enabled: true
imageSelector: "image"
env:
SECRET_KEY:
secretKeyRef:
name: secrets
key: SECRET_KEY
command:
- sh
- -c
args:
- |
keyfile="/data/production_secret_key.txt";
if [ ! -f ${keyfile} ]; then
echo "No ${keyfile} File...";
echo "Creating ${keyfile} file...";
echo "${SECRET_KEY}" > ${keyfile};
if [ -f ${keyfile} ];
then
echo "Success!";
else
echo "Failed.";
fi;
else
echo "${keyfile} File exists. Skipping...";
fi;
containers:
main:
env:
SECRET_KEY:
secretKeyRef:
name: secrets
key: SECRET_KEY