From eaa395c73ec0ff1b9c61fa3a79a2806ed9b891ac Mon Sep 17 00:00:00 2001 From: Hyunsoo Kim <884273+movence@users.noreply.github.com> Date: Fri, 10 May 2024 11:34:05 -0400 Subject: [PATCH] Add services resource rule to agent cluster role (#168) --- .../deployment-mode/daemonset/combination/combination.yaml | 3 +++ .../quickstart/cwagent-fluent-bit-quickstart-enhanced.yaml | 3 +++ .../quickstart/cwagent-fluent-bit-quickstart.yaml | 3 +++ .../quickstart/cwagent-fluentd-quickstart-enhanced.yaml | 3 +++ .../quickstart/cwagent-fluentd-quickstart.yaml | 3 +++ .../cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml | 3 +++ k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml | 3 +++ 7 files changed, 21 insertions(+) diff --git a/k8s-deployment-manifest-templates/deployment-mode/daemonset/combination/combination.yaml b/k8s-deployment-manifest-templates/deployment-mode/daemonset/combination/combination.yaml index 9c060c4..a36769d 100644 --- a/k8s-deployment-manifest-templates/deployment-mode/daemonset/combination/combination.yaml +++ b/k8s-deployment-manifest-templates/deployment-mode/daemonset/combination/combination.yaml @@ -26,6 +26,9 @@ rules: - apiGroups: ["apps"] resources: ["replicasets", "daemonsets", "deployments", "statefulsets"] verbs: ["list", "watch"] + - apiGroups: [ "" ] + resources: [ "services" ] + verbs: [ "list", "watch" ] - apiGroups: ["batch"] resources: ["jobs"] verbs: ["list", "watch"] diff --git a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart-enhanced.yaml b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart-enhanced.yaml index 5b1e47b..b379367 100644 --- a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart-enhanced.yaml +++ b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart-enhanced.yaml @@ -26,6 +26,9 @@ rules: - apiGroups: ["apps"] resources: ["replicasets", "daemonsets", "deployments", "statefulsets"] verbs: ["list", "watch"] + - apiGroups: [ "" ] + resources: [ "services" ] + verbs: [ "list", "watch" ] - apiGroups: ["batch"] resources: ["jobs"] verbs: ["list", "watch"] diff --git a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart.yaml b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart.yaml index 924d3cf..569063e 100644 --- a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart.yaml +++ b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluent-bit-quickstart.yaml @@ -26,6 +26,9 @@ rules: - apiGroups: ["apps"] resources: ["replicasets", "daemonsets", "deployments", "statefulsets"] verbs: ["list", "watch"] + - apiGroups: [ "" ] + resources: [ "services" ] + verbs: [ "list", "watch" ] - apiGroups: ["batch"] resources: ["jobs"] verbs: ["list", "watch"] diff --git a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart-enhanced.yaml b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart-enhanced.yaml index c612df8..6026ed0 100644 --- a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart-enhanced.yaml +++ b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart-enhanced.yaml @@ -26,6 +26,9 @@ rules: - apiGroups: ["apps"] resources: ["replicasets", "daemonsets", "deployments", "statefulsets"] verbs: ["list", "watch"] + - apiGroups: [ "" ] + resources: [ "services" ] + verbs: [ "list", "watch" ] - apiGroups: ["batch"] resources: ["jobs"] verbs: ["list", "watch"] diff --git a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml index ce74c70..5727ad5 100644 --- a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml +++ b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml @@ -26,6 +26,9 @@ rules: - apiGroups: ["apps"] resources: ["replicasets", "daemonsets", "deployments", "statefulsets"] verbs: ["list", "watch"] + - apiGroups: [ "" ] + resources: [ "services" ] + verbs: [ "list", "watch" ] - apiGroups: ["batch"] resources: ["jobs"] verbs: ["list", "watch"] diff --git a/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml b/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml index 7d7aef8..b810943 100644 --- a/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml +++ b/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml @@ -17,6 +17,9 @@ rules: - apiGroups: ["apps"] resources: ["replicasets", "daemonsets", "deployments", "statefulsets"] verbs: ["list", "watch"] + - apiGroups: [ "" ] + resources: [ "services" ] + verbs: [ "list", "watch" ] - apiGroups: ["batch"] resources: ["jobs"] verbs: ["list", "watch"] diff --git a/k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml b/k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml index e2143af..e012330 100644 --- a/k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml +++ b/k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml @@ -26,6 +26,9 @@ rules: - apiGroups: ["apps"] resources: ["replicasets", "daemonsets", "deployments", "statefulsets"] verbs: ["list", "watch"] + - apiGroups: [ "" ] + resources: [ "services" ] + verbs: [ "list", "watch" ] - apiGroups: ["batch"] resources: ["jobs"] verbs: ["list", "watch"]