From a942e64d70f875458922c4ff945031d18ef42935 Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Tue, 11 Dec 2018 20:03:54 +0100 Subject: [PATCH] change RBAC for Metrics API --- deploy/auth.yaml | 6 +++--- deploy/deployment.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/auth.yaml b/deploy/auth.yaml index 137258c..a9b5a63 100644 --- a/deploy/auth.yaml +++ b/deploy/auth.yaml @@ -13,11 +13,11 @@ rules: resources: ["nodes", "pods"] verbs: - list -- apiGroups: [""] - resources: ["services/proxy"] - resourceNames: ["heapster"] +- apiGroups: ["metrics.k8s.io"] + resources: ["nodes", "pods"] verbs: - get + - list --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1beta1 diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index d32b704..10a2264 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: labels: