<p>I've a use-case for my REST-API. I'm deploying my REST service to kubernetes. So for Autoscaling my pod, I want to build  Horizontal Pod Autoscaler based on custom-metrics like <strong>Request-Per-Second</strong>. So for that purpose we'll have to create a custom-metrics-adapter like this <a href="https://github.com/banzaicloud/banzai-charts/tree/master/kube-metrics-adapter" rel="nofollow noreferrer">https://github.com/banzaicloud/banzai-charts/tree/master/kube-metrics-adapter</a>. </p>

<p>But the problem that I'm facing, I don't have access to create any <strong>ClusterRole</strong> or creating <strong>APIService</strong>. I just want to know can we deploy this <strong>kube-metrics-adapter</strong> API at namespace level to which I've access, so that it can provide custom-metrics to HPA. Is it necessary to have this adapter at cluster level?</p>

abhishek chaurasiya
<p>Looking at the chart, the RBAC templates are hard-coded to use clusterroles. You can't install this chart if <code>tiller</code> doesn't have cluster-level access. You could try modifying the chart to be namespace scoped, but you'll probably need some level of permissions to the metrics API to register your custom metrics.</p>

<p>Ask a cluster admin if you can get the clusterroles put in?</p>
