Fix Gitea probes and backup dump user
This commit is contained in:
parent
06c963d8e6
commit
0cd2dca294
|
|
@ -66,13 +66,13 @@ spec:
|
|||
mountPath: /data
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /git/
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /git/
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 30
|
||||
|
|
|
|||
2
lab.sh
2
lab.sh
|
|
@ -468,7 +468,7 @@ trap cleanup EXIT
|
|||
|
||||
kubectl --kubeconfig "\${KUBECONFIG_PATH}" -n "\${GITEA_NAMESPACE}" exec "\${pod}" -c "\${GITEA_CONTAINER}" -- rm -f "\${REMOTE_ARCHIVE}" >/dev/null 2>&1 || true
|
||||
kubectl --kubeconfig "\${KUBECONFIG_PATH}" -n "\${GITEA_NAMESPACE}" exec "\${pod}" -c "\${GITEA_CONTAINER}" -- \
|
||||
gitea dump -c /data/gitea/conf/app.ini --file "\${REMOTE_ARCHIVE}"
|
||||
su-exec git gitea dump -c /data/gitea/conf/app.ini --file "\${REMOTE_ARCHIVE}"
|
||||
kubectl --kubeconfig "\${KUBECONFIG_PATH}" -n "\${GITEA_NAMESPACE}" cp -c "\${GITEA_CONTAINER}" \
|
||||
"\${GITEA_NAMESPACE}/\${pod}:\${REMOTE_ARCHIVE}" "\${tmp_archive}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue