Adding kustomization files for remote bases

Closes #2391

Adds support to allow kustomize users to point to a [remote
base](https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md) of the prometheus-operator and kube-prometheus. Now that kustomize is a part of kubectl, this is provides a very simple way of installing prometheus-operator and kube-prometheus with no additional tools besides kubectl.

* [Added] kustomization.yaml: hardcoded kustomization base for prometheus-operator
bundle.yaml
* [Added] kustomization generation from kube-prometheus example jsonnet
This commit is contained in:
Cory O'Daniel
2019-03-18 14:53:56 -07:00
parent d5f7b2232e
commit 5fcf652cbf
2 changed files with 91 additions and 8 deletions

View File

@@ -0,0 +1,66 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- 00namespace-namespace.yaml
- 0prometheus-operator-0alertmanagerCustomResourceDefinition.yaml
- 0prometheus-operator-0prometheusCustomResourceDefinition.yaml
- 0prometheus-operator-0prometheusruleCustomResourceDefinition.yaml
- 0prometheus-operator-0servicemonitorCustomResourceDefinition.yaml
- 0prometheus-operator-clusterRole.yaml
- 0prometheus-operator-clusterRoleBinding.yaml
- 0prometheus-operator-deployment.yaml
- 0prometheus-operator-service.yaml
- 0prometheus-operator-serviceAccount.yaml
- 0prometheus-operator-serviceMonitor.yaml
- node-exporter-clusterRole.yaml
- node-exporter-clusterRoleBinding.yaml
- node-exporter-daemonset.yaml
- node-exporter-service.yaml
- node-exporter-serviceAccount.yaml
- node-exporter-serviceMonitor.yaml
- kube-state-metrics-clusterRole.yaml
- kube-state-metrics-clusterRoleBinding.yaml
- kube-state-metrics-deployment.yaml
- kube-state-metrics-role.yaml
- kube-state-metrics-roleBinding.yaml
- kube-state-metrics-service.yaml
- kube-state-metrics-serviceAccount.yaml
- kube-state-metrics-serviceMonitor.yaml
- alertmanager-alertmanager.yaml
- alertmanager-secret.yaml
- alertmanager-service.yaml
- alertmanager-serviceAccount.yaml
- alertmanager-serviceMonitor.yaml
- prometheus-clusterRole.yaml
- prometheus-clusterRoleBinding.yaml
- prometheus-prometheus.yaml
- prometheus-roleBindingConfig.yaml
- prometheus-roleBindingSpecificNamespaces.yaml
- prometheus-roleConfig.yaml
- prometheus-roleSpecificNamespaces.yaml
- prometheus-rules.yaml
- prometheus-service.yaml
- prometheus-serviceAccount.yaml
- prometheus-serviceMonitor.yaml
- prometheus-serviceMonitorApiserver.yaml
- prometheus-serviceMonitorCoreDNS.yaml
- prometheus-serviceMonitorKubeControllerManager.yaml
- prometheus-serviceMonitorKubeScheduler.yaml
- prometheus-serviceMonitorKubelet.yaml
- prometheus-adapter-apiService.yaml
- prometheus-adapter-clusterRole.yaml
- prometheus-adapter-clusterRoleBinding.yaml
- prometheus-adapter-clusterRoleBindingDelegator.yaml
- prometheus-adapter-clusterRoleServerResources.yaml
- prometheus-adapter-configMap.yaml
- prometheus-adapter-deployment.yaml
- prometheus-adapter-roleBindingAuthReader.yaml
- prometheus-adapter-service.yaml
- prometheus-adapter-serviceAccount.yaml
- grafana-dashboardDatasources.yaml
- grafana-dashboardDefinitions.yaml
- grafana-dashboardSources.yaml
- grafana-deployment.yaml
- grafana-service.yaml
- grafana-serviceAccount.yaml
- grafana-serviceMonitor.yaml