From f540312aa9d2a4bf3885fc93e50b1adb25a5fde5 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Wed, 1 Apr 2026 19:36:04 +1100 Subject: [PATCH] Apply links role binding --- adhoc-config/links-iam.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 adhoc-config/links-iam.yaml diff --git a/adhoc-config/links-iam.yaml b/adhoc-config/links-iam.yaml new file mode 100644 index 0000000..75c0d32 --- /dev/null +++ b/adhoc-config/links-iam.yaml @@ -0,0 +1,29 @@ +# Role in the ingress-nginx namespace granting read access to pod logs +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: links-log-reader + namespace: ingress-nginx +rules: + - apiGroups: [""] + resources: ["pods"] + verbs: ["list", "get"] + - apiGroups: [""] + resources: ["pods/log"] + verbs: ["get"] + +--- +# Bind the Role to the links ServiceAccount (cross-namespace) +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: links-log-reader + namespace: ingress-nginx +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: links-log-reader +subjects: + - kind: ServiceAccount + name: links + namespace: apps