Skip to content

Commit 0284242

Browse files
Add log basic support bundle specs (#72)
add support bundle specs with basic log collectors
1 parent ae3ecbf commit 0284242

File tree

6 files changed

+78
-0
lines changed

6 files changed

+78
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- define "cert-manager.supportbundle" -}}
2+
apiVersion: troubleshoot.sh/v1beta2
3+
kind: SupportBundle
4+
metadata:
5+
name: cert-manager-supportbundle
6+
spec:
7+
collectors:
8+
- logs:
9+
namespace: {{ .Release.Namespace }}
10+
selector:
11+
- app.kubernetes.io/instance=cert-manager
12+
{{- end -}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: cert-manager-supportbundle
5+
labels:
6+
troubleshoot.sh/kind: support-bundle
7+
type: Opaque
8+
stringData:
9+
support-bundle-spec: |
10+
{{ include "cert-manager.supportbundle" . | indent 4 }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- define "traefik.supportbundle" -}}
2+
apiVersion: troubleshoot.sh/v1beta2
3+
kind: SupportBundle
4+
metadata:
5+
name: traefik-supportbundle
6+
spec:
7+
collectors:
8+
- logs:
9+
namespace: {{ .Release.Namespace }}
10+
selector:
11+
- app.kubernetes.io/name=traefik
12+
{{- end -}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: traefik-supportbundle
5+
labels:
6+
troubleshoot.sh/kind: support-bundle
7+
type: Opaque
8+
stringData:
9+
support-bundle-spec: |
10+
{{ include "traefik.supportbundle" . | indent 4 }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{- define "wg-easy.supportbundle" -}}
2+
apiVersion: troubleshoot.sh/v1beta2
3+
kind: SupportBundle
4+
metadata:
5+
name: wg-easy-supportbundle
6+
spec:
7+
collectors:
8+
- logs:
9+
namespace: {{ .Release.Namespace }}
10+
selector:
11+
- app.kubernetes.io/name=wg-easy
12+
- sysctl:
13+
image: debian:buster-slim
14+
analyzers:
15+
- sysctl:
16+
checkName: IP forwarding enabled
17+
outcomes:
18+
- fail:
19+
when: 'net.ipv4.ip_forward == 0'
20+
message: "IP forwarding must be enabled. To enable it, edit /etc/sysctl.conf, add or uncomment the line 'net.ipv4.ip_forward=1', and run 'sudo sysctl -p'."
21+
- pass:
22+
when: 'net.ipv4.ip_forward == 1'
23+
message: "IP forwarding is enabled."
24+
{{- end -}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: wg-easy-supportbundle
5+
labels:
6+
troubleshoot.sh/kind: support-bundle
7+
type: Opaque
8+
stringData:
9+
support-bundle-spec: |
10+
{{ include "wg-easy.supportbundle" . | indent 4 }}

0 commit comments

Comments
 (0)