diff --git a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml index f7a8290aeb22..ffeb5f23bb43 100644 --- a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml +++ b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml @@ -42,7 +42,7 @@ rules: resources: ["poddisruptionbudgets"] verbs: ["watch","list"] - apiGroups: ["apps"] - resources: ["statefulsets"] + resources: ["statefulsets", "replicasets"] verbs: ["watch","list","get"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] diff --git a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-multi-asg.yaml b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-multi-asg.yaml index e047f32b43e3..e27248bbba33 100644 --- a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-multi-asg.yaml +++ b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-multi-asg.yaml @@ -42,7 +42,7 @@ rules: resources: ["poddisruptionbudgets"] verbs: ["watch","list"] - apiGroups: ["apps"] - resources: ["statefulsets"] + resources: ["statefulsets", "replicasets"] verbs: ["watch","list","get"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] diff --git a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml index 7c9f387eecd8..36476e65b76b 100644 --- a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml +++ b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml @@ -42,7 +42,7 @@ rules: resources: ["poddisruptionbudgets"] verbs: ["watch","list"] - apiGroups: ["apps"] - resources: ["statefulsets"] + resources: ["statefulsets", "replicasets"] verbs: ["watch","list","get"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] diff --git a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-run-on-master.yaml b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-run-on-master.yaml index b4f5c65fcbe1..41d6e6b07d87 100644 --- a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-run-on-master.yaml +++ b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-run-on-master.yaml @@ -42,7 +42,7 @@ rules: resources: ["poddisruptionbudgets"] verbs: ["watch","list"] - apiGroups: ["apps"] - resources: ["statefulsets"] + resources: ["statefulsets", "replicasets"] verbs: ["watch","list","get"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"]