title: Changing the group name and version of k8s API
body: <p>I am using custom metrics API for autoscaling. I have used an external REST API service to handle the get request from HPA. I wanted to change the group and version name in the standard structure of URL mentioned in <a href="https://kubernetes.io/docs/reference/using-api/api-concepts/" rel="nofollow noreferrer">k8s doc</a>.</p>
  <p>structure:</p>
  <pre><code>GET /apis/GROUP/VERSION/namespaces/NAMESPACE/RESOURCETYPE/NAME
  </code></pre>
  <p>my url:</p>
  <pre><code>/apis/***custom.metrics.k8s.io/v1beta1***/namespaces/default/services/my-API/metric-value
  </code></pre>
  <p>I wanted to change the group name <code>custom.metrics.k8s.io</code> to some <code>mycustom.metrics.k8s.io</code>.
  As this group name and version is there in <code>custom-metrics-api-service.yaml</code> (in the end I have attached the yaml file). I tried to change the group name but then HPA was not able to retrieve the metrics value. Looks like HPA was still looking for that custom.metrics group.</p>
  <p>So is it possible to change that group and version name in standard url? If yes then what all the files that I need to change?</p>
  <pre><code>apiVersion: apiregistration.k8s.io/v1
  kind: APIService
  metadata:
    name: v1beta1.custom.metrics.k8s.io
  spec:
    insecureSkipTLSVerify: true
    group: custom.metrics.k8s.io
    groupPriorityMinimum: 1000
    versionPriority: 5
    service:
      name: my-API
      namespace: default
    version: v1beta1
   
  </code></pre>