diff --git a/charts/crane/templates/metrics-apiservice.yaml b/charts/crane/templates/metrics-apiservice.yaml index 2159b91..fa67247 100644 --- a/charts/crane/templates/metrics-apiservice.yaml +++ b/charts/crane/templates/metrics-apiservice.yaml @@ -28,4 +28,19 @@ spec: version: v1beta2 insecureSkipTLSVerify: true groupPriorityMinimum: 100 - versionPriority: 200 \ No newline at end of file + versionPriority: 200 + +--- +apiVersion: apiregistration.k8s.io/v1 +kind: APIService +metadata: + name: v1beta1.external.metrics.k8s.io +spec: + service: + name: metric-adapter + namespace: crane-system + group: external.metrics.k8s.io + version: v1beta1 + insecureSkipTLSVerify: true + groupPriorityMinimum: 100 + versionPriority: 100 \ No newline at end of file diff --git a/charts/crane/templates/metrics-rbac.yaml b/charts/crane/templates/metrics-rbac.yaml index 0e8ae66..653db3c 100644 --- a/charts/crane/templates/metrics-rbac.yaml +++ b/charts/crane/templates/metrics-rbac.yaml @@ -5,40 +5,9 @@ metadata: labels: {{- include "crane.labels" . | nindent 4 }} rules: - - apiGroups: - - "prediction.crane.io" - resources: - - '*' - verbs: - - '*' - - apiGroups: - - "autoscaling.crane.io" - resources: - - '*' - verbs: - - '*' - - apiGroups: - - "" - resources: - - 'configmaps' - verbs: - - '*' - - apiGroups: - - "" - resources: - - pods - verbs: - - get - - list - - patch - - update - - watch - - apiGroups: - - "custom.metrics.k8s.io" - resources: - - '*' - verbs: - - '*' + - apiGroups: [ '*' ] + resources: [ '*' ] + verbs: [ "*" ] --- apiVersion: rbac.authorization.k8s.io/v1