Skip to content

Instantly share code, notes, and snippets.

@x95castle1
Created April 15, 2025 13:22
Show Gist options
  • Select an option

  • Save x95castle1/1233880bb1de3e6b3d3838a0c81840b5 to your computer and use it in GitHub Desktop.

Select an option

Save x95castle1/1233880bb1de3e6b3d3838a0c81840b5 to your computer and use it in GitHub Desktop.
Enable Sidecar Logging for Tekton
tekton_pipelines:
feature_flags:
enable_api_fields: "alpha"
results_from: "sidecar-logs"
max_result_size: "8192"
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: tekton-pipelines-controller-pod-log-access
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-pipelines
rules:
- apiGroups: [""]
# Controller needs to get the logs of the results sidecar created by TaskRuns to extract results.
resources: ["pods/log"]
verbs: ["get"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: tekton-pipelines-controller-pod-log-access
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-pipelines
subjects:
- kind: ServiceAccount
name: tekton-pipelines-controller
namespace: tekton-pipelines
roleRef:
kind: ClusterRole
name: tekton-pipelines-controller-pod-log-access
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment