From 96dae4818a43545ca563907a4800b3ae957a2fba Mon Sep 17 00:00:00 2001 From: Pengfei Ni Date: Tue, 13 Feb 2018 13:47:05 +0800 Subject: [PATCH] storageclass permission is required --- .../azure/cluster-autoscaler-standard-master.yaml | 3 +++ .../cloudprovider/azure/cluster-autoscaler-standard.yaml | 3 +++ .../cloudprovider/azure/cluster-autoscaler-vmss-master.yaml | 3 +++ .../cloudprovider/azure/cluster-autoscaler-vmss.yaml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-standard-master.yaml b/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-standard-master.yaml index b172c2359ceb..38c1dae7706c 100644 --- a/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-standard-master.yaml +++ b/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-standard-master.yaml @@ -44,6 +44,9 @@ rules: - apiGroups: ["apps"] resources: ["statefulsets"] verbs: ["watch","list","get"] +- apiGroups: ["storage.k8s.io"] + resources: ["storageclasses"] + verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1beta1 diff --git a/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-standard.yaml b/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-standard.yaml index 420232f4e058..9c3a9f39c3cd 100644 --- a/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-standard.yaml +++ b/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-standard.yaml @@ -44,6 +44,9 @@ rules: - apiGroups: ["apps"] resources: ["statefulsets"] verbs: ["watch","list","get"] +- apiGroups: ["storage.k8s.io"] + resources: ["storageclasses"] + verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1beta1 diff --git a/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-vmss-master.yaml b/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-vmss-master.yaml index eb3eee79fd0b..646862e692a4 100644 --- a/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-vmss-master.yaml +++ b/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-vmss-master.yaml @@ -44,6 +44,9 @@ rules: - apiGroups: ["apps"] resources: ["statefulsets"] verbs: ["watch","list","get"] +- apiGroups: ["storage.k8s.io"] + resources: ["storageclasses"] + verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1beta1 diff --git a/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-vmss.yaml b/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-vmss.yaml index 323465fec91c..056dd5d01feb 100644 --- a/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-vmss.yaml +++ b/cluster-autoscaler/cloudprovider/azure/cluster-autoscaler-vmss.yaml @@ -44,6 +44,9 @@ rules: - apiGroups: ["apps"] resources: ["statefulsets"] verbs: ["watch","list","get"] +- apiGroups: ["storage.k8s.io"] + resources: ["storageclasses"] + verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1beta1