apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: kube-system

resources:
  - ./base
  - https://github.com/kubernetes/kube-state-metrics/examples/autosharding
replicas:
  - name: kube-state-metrics
    count: 2
    
patches:
- path: extra/elastic-agent-managed-statefulset.yaml
  target:
    kind: StatefulSet