-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add in cluster logs collector back, but with a different configmap na…
…me (#182) * Add in-cluster k0s logs collector * Limit host log collection to 2 days * update logs collector spec name
- Loading branch information
1 parent
33aecbd
commit dc49536
Showing
1 changed file
with
75 additions
and
0 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
charts/embedded-cluster-operator/templates/embedded-cluster-logs-collector.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: embedded-cluster-logs-collector | ||
labels: | ||
troubleshoot.sh/kind: support-bundle | ||
{{- with (include "embedded-cluster-operator.labels" $ | fromYaml) }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
data: | ||
support-bundle-spec: | | ||
apiVersion: troubleshoot.sh/v1beta2 | ||
kind: SupportBundle | ||
metadata: | ||
name: embedded-cluster-logs-collector | ||
labels: | ||
troubleshoot.sh/kind: support-bundle | ||
spec: | ||
collectors: | ||
- runDaemonSet: | ||
name: "k0scontroller" | ||
namespace: default | ||
podSpec: | ||
containers: | ||
- image: {{ .Values.utilsImage }} | ||
imagePullPolicy: Always | ||
args: ["chroot","/host","journalctl","-u","k0scontroller","--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: {} | ||
tolerations: | ||
- operator: Exists | ||
volumes: | ||
- hostPath: | ||
path: / | ||
type: "" | ||
name: host-root | ||
- runDaemonSet: | ||
name: "k0sworker" | ||
namespace: default | ||
podSpec: | ||
containers: | ||
- image: {{ .Values.utilsImage }} | ||
imagePullPolicy: Always | ||
args: ["chroot","/host","journalctl","-u","k0scontroller","--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: {} | ||
tolerations: | ||
- operator: Exists | ||
volumes: | ||
- hostPath: | ||
path: / | ||
type: "" | ||
name: host-root |