Skip to content

Commit

Permalink
feat(apps/nextcloud): add sidecar printing nextcloud logs to k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
qlonik committed Jul 30, 2024
1 parent 378bd11 commit 28541e4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kubernetes/main/apps/default/nextcloud/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,22 @@ spec:
envFrom:
- secretRef:
name: nextcloud-secret
extraSidecarContainers:
- name: nextcloud-logger
image: public.ecr.aws/docker/library/busybox:latest
command:
- /bin/sh
- -c
- |
while ! test -f "/run/nextcloud/data/nextcloud.log"; do
echo "waiting for log file to appear..."
sleep 1
done
tail -n+1 -f /run/nextcloud/data/nextcloud.log
volumeMounts:
- name: nextcloud-data
mountPath: /run/nextcloud/data
subPath: data
persistence:
enabled: true
existingClaim: nextcloud-main
Expand Down

0 comments on commit 28541e4

Please sign in to comment.