2022-04-16 09:15:43 +00:00
|
|
|
image:
|
2022-04-18 19:57:07 +00:00
|
|
|
repository: tccr.io/truecharts/pinry
|
2022-07-25 18:36:51 +00:00
|
|
|
tag: v2.1.12@sha256:fc1ddce0a4cdd0ce567db0bb6514a62880c50fcb5f1826b0bde3f3660c54123a
|
2022-04-16 09:15:43 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
|
2022-06-07 17:41:19 +00:00
|
|
|
env:
|
2022-04-16 09:15:43 +00:00
|
|
|
SECRET_KEY:
|
|
|
|
secretKeyRef:
|
|
|
|
name: pinry-secrets
|
|
|
|
key: SECRET_KEY
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 10213
|
|
|
|
targetPort: 80
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/data"
|
|
|
|
|
|
|
|
installContainers:
|
|
|
|
1-create-key-file:
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
volumeMounts:
|
|
|
|
- name: data
|
|
|
|
mountPath: "/data"
|
|
|
|
env:
|
|
|
|
- name: SECRET_KEY
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: pinry-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;
|
2022-08-08 21:25:02 +00:00
|
|
|
|
|
|
|
portal:
|
|
|
|
enabled: true
|