zalando-incubator / kube-metrics-adapter

General purpose metrics adapter for Kubernetes HPA metrics
MIT License
530 stars 112 forks source link

Kustomize support #420

Open rbounds opened 2 years ago

rbounds commented 2 years ago

I'd like to be able to install kube-metircs-adapter as a kustomize remote target.

It should be a small effort to add this support.

A very quick example. There is possibly a better order for resources:

# cd docs
# kustomize create --resources "*.yaml"
# cat kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster_scaling_schedules_crd.yaml
- custom-metrics-apiservice.yaml
- deployment.yaml
- external-metrics-apiservice.yaml
- rbac.yaml
- scaling_schedules_crd.yaml
- service.yaml
mikkeloscar commented 2 years ago

Contributions are welcome :)