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 a36769d..a71ad48 100644 --- a/k8s-deployment-manifest-templates/deployment-mode/daemonset/combination/combination.yaml +++ b/k8s-deployment-manifest-templates/deployment-mode/daemonset/combination/combination.yaml @@ -44,6 +44,9 @@ rules: verbs: ["get","update"] - nonResourceURLs: ["/metrics"] verbs: ["get", "list", "watch"] + - apiGroups: [ "discovery.k8s.io" ] + resources: [ "endpointslices" ] + verbs: [ "list", "watch", "get" ] --- kind: ClusterRoleBinding diff --git a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/cwagent/cwagent-serviceaccount.yaml b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/cwagent/cwagent-serviceaccount.yaml index fe20f9c..b896430 100644 --- a/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/cwagent/cwagent-serviceaccount.yaml +++ b/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/cwagent/cwagent-serviceaccount.yaml @@ -35,6 +35,9 @@ rules: verbs: ["get","update"] - nonResourceURLs: ["/metrics"] verbs: ["get", "list", "watch"] + - apiGroups: [ "discovery.k8s.io" ] + resources: [ "endpointslices" ] + verbs: [ "list", "watch", "get" ] --- kind: ClusterRoleBinding 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 f9c4cf4..5417628 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 @@ -44,6 +44,9 @@ rules: verbs: ["get","update"] - nonResourceURLs: ["/metrics"] verbs: ["get", "list", "watch"] + - apiGroups: [ "discovery.k8s.io" ] + resources: [ "endpointslices" ] + verbs: [ "list", "watch", "get" ] --- kind: ClusterRoleBinding 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 421b9d5..1a5c855 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 @@ -44,6 +44,9 @@ rules: verbs: ["get","update"] - nonResourceURLs: ["/metrics"] verbs: ["get", "list", "watch"] + - apiGroups: [ "discovery.k8s.io" ] + resources: [ "endpointslices" ] + verbs: [ "list", "watch", "get" ] --- kind: ClusterRoleBinding 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 6026ed0..299ad68 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 @@ -44,6 +44,9 @@ rules: verbs: ["get","update"] - nonResourceURLs: ["/metrics"] verbs: ["get", "list", "watch"] + - apiGroups: [ "discovery.k8s.io" ] + resources: [ "endpointslices" ] + verbs: [ "list", "watch", "get" ] --- kind: ClusterRoleBinding 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 c636183..5dc7cb4 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 @@ -44,6 +44,9 @@ rules: verbs: ["get","update"] - nonResourceURLs: ["/metrics"] verbs: ["get", "list", "watch"] + - apiGroups: [ "discovery.k8s.io" ] + resources: [ "endpointslices" ] + verbs: [ "list", "watch", "get" ] --- kind: ClusterRoleBinding diff --git a/k8s-quickstart/cwagent-operator-rendered.yaml b/k8s-quickstart/cwagent-operator-rendered.yaml index a6b96f8..404a7db 100644 --- a/k8s-quickstart/cwagent-operator-rendered.yaml +++ b/k8s-quickstart/cwagent-operator-rendered.yaml @@ -420,6 +420,9 @@ rules: verbs: [ "update" ] - nonResourceURLs: [ "/metrics" ] verbs: [ "get", "list", "watch" ] +- apiGroups: ["discovery.k8s.io"] + resources: ["endpointslices"] + verbs: ["list", "watch", "get"] --- apiVersion: rbac.authorization.k8s.io/v1 diff --git a/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml b/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml index b810943..2041091 100644 --- a/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml +++ b/k8s-yaml-templates/cwagent-kubernetes-monitoring/cwagent-serviceaccount.yaml @@ -35,6 +35,9 @@ rules: verbs: ["get","update"] - nonResourceURLs: ["/metrics"] verbs: ["get", "list", "watch"] + - apiGroups: [ "discovery.k8s.io" ] + resources: [ "endpointslices" ] + verbs: [ "list", "watch", "get" ] --- kind: ClusterRoleBinding diff --git a/k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml b/k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml index e012330..465372c 100644 --- a/k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml +++ b/k8s-yaml-templates/quickstart/cwagent-fluentd-quickstart.yaml @@ -44,6 +44,9 @@ rules: verbs: ["get","update"] - nonResourceURLs: ["/metrics"] verbs: ["get", "list", "watch"] + - apiGroups: [ "discovery.k8s.io" ] + resources: [ "endpointslices" ] + verbs: [ "list", "watch", "get" ] --- kind: ClusterRoleBinding