2022-04-16 09:15:43 +00:00
|
|
|
image:
|
2023-11-17 10:22:57 +00:00
|
|
|
repository: getpinry/pinry
|
|
|
|
tag: 2.1.12@sha256:b0f9eeb195d478d9a989e220861b4638f4fb489d02fdaac1e46bbacd46e90a96
|
2022-04-16 09:15:43 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 10213
|
|
|
|
targetPort: 80
|
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/data"
|
2023-04-14 16:11:04 +00:00
|
|
|
targetSelectAll: true
|
2022-08-08 21:25:02 +00:00
|
|
|
portal:
|
2023-04-14 16:11:04 +00:00
|
|
|
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
|
2023-05-23 08:26:41 +00:00
|
|
|
command:
|
|
|
|
- sh
|
|
|
|
- -c
|
2023-04-14 16:11:04 +00:00
|
|
|
args:
|
|
|
|
- |
|
2023-05-23 08:26:41 +00:00
|
|
|
keyfile="/data/production_secret_key.txt";
|
|
|
|
if [ ! -f ${keyfile} ]; then
|
2023-04-14 16:11:04 +00:00
|
|
|
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
|