Skip to content

Commit

Permalink
collect local-artifact-mirror service logs (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Oct 16, 2024
1 parent e378a70 commit 5f31997
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,32 @@ data:
path: /
type: ""
name: host-root
- runDaemonSet:
name: "local-artifact-mirror"
namespace: embedded-cluster
podSpec:
containers:
- image: {{ .Values.utilsImage }}
imagePullPolicy: Always
args: ["chroot","/host","journalctl","-u","local-artifact-mirror","--no-pager","--since","2 days ago"]
name: debugger
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /host
name: host-root
dnsPolicy: ClusterFirst
enableServiceLinks: true
hostIPC: true
hostNetwork: true
hostPID: true
securityContext:
runAsUser: 0
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /
type: ""
name: host-root
8 changes: 8 additions & 0 deletions pkg/goods/support/host-support-bundle.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ spec:
collectorName: k0scontroller-logs
command: journalctl
args: [ "--since", "2 days ago", "--no-pager", "-u", "k0scontroller.service" ]
- run:
collectorName: k0sworker-logs
command: journalctl
args: [ "--since", "2 days ago", "--no-pager", "-u", "k0sworker.service" ]
- run:
collectorName: local-artifact-mirror-logs
command: journalctl
args: [ "--since", "2 days ago", "--no-pager", "-u", "local-artifact-mirror.service" ]
- run:
collectorName: k0s-images-dir
command: ls
Expand Down

0 comments on commit 5f31997

Please sign in to comment.