88 lines
3.2 KiB
YAML
88 lines
3.2 KiB
YAML
---
|
|
namePrefix: prod-
|
|
resources:
|
|
- ../minimal-base
|
|
|
|
# Prometheus, in a different namespace to the old cluster.
|
|
- inflated/prometheus/charts/prometheus-node-exporter/templates/daemonset.yaml
|
|
- inflated/prometheus/charts/prometheus-node-exporter/templates/serviceaccount.yaml
|
|
- inflated/prometheus/charts/prometheus-node-exporter/templates/service.yaml
|
|
- inflated/prometheus/charts/alertmanager/templates/serviceaccount.yaml
|
|
- inflated/prometheus/charts/alertmanager/templates/services.yaml
|
|
- inflated/prometheus/charts/alertmanager/templates/configmap.yaml
|
|
- inflated/prometheus/charts/alertmanager/templates/statefulset.yaml
|
|
- inflated/prometheus/charts/kube-state-metrics/templates/serviceaccount.yaml
|
|
- inflated/prometheus/charts/kube-state-metrics/templates/deployment.yaml
|
|
- inflated/prometheus/charts/kube-state-metrics/templates/role.yaml
|
|
- inflated/prometheus/charts/kube-state-metrics/templates/service.yaml
|
|
- inflated/prometheus/charts/kube-state-metrics/templates/clusterrolebinding.yaml
|
|
- inflated/prometheus/charts/prometheus-pushgateway/templates/serviceaccount.yaml
|
|
- inflated/prometheus/charts/prometheus-pushgateway/templates/deployment.yaml
|
|
- inflated/prometheus/charts/prometheus-pushgateway/templates/service.yaml
|
|
- inflated/prometheus/templates/serviceaccount.yaml
|
|
- inflated/prometheus/templates/service.yaml
|
|
- inflated/prometheus/templates/clusterrole.yaml
|
|
- inflated/prometheus/templates/cm.yaml
|
|
- inflated/prometheus/templates/deploy.yaml
|
|
- inflated/prometheus/templates/clusterrolebinding.yaml
|
|
- inflated/prometheus/templates/pvc.yaml
|
|
|
|
# Tailscale
|
|
- inflated/tailscale-operator/templates/apiserverproxy-rbac.yaml
|
|
- inflated/tailscale-operator/templates/connector.yaml
|
|
- inflated/tailscale-operator/templates/deployment.yaml
|
|
- inflated/tailscale-operator/templates/dnsconfig.yaml
|
|
- inflated/tailscale-operator/templates/ingressclass.yaml
|
|
- inflated/tailscale-operator/templates/oauth-secret.yaml
|
|
- inflated/tailscale-operator/templates/operator-rbac.yaml
|
|
- inflated/tailscale-operator/templates/proxy-rbac.yaml
|
|
- inflated/tailscale-operator/templates/proxyclass.yaml
|
|
- inflated/tailscale-operator/templates/proxygroup.yaml
|
|
- inflated/tailscale-operator/templates/recorder.yaml
|
|
|
|
- clusterissuer.yaml
|
|
- cert-ingress-tls.yaml
|
|
- ingress.yaml
|
|
|
|
configMapGenerator:
|
|
- name: prometheus-server
|
|
namespace: prometheus
|
|
behavior: merge
|
|
files:
|
|
- prometheus.yml=resources/prometheus.yaml
|
|
- alerting_rules.yml=resources/prometheus-alerting-rules.yaml
|
|
options:
|
|
labels:
|
|
app: prometheus
|
|
- name: prometheus-alertmanager
|
|
namespace: prometheus
|
|
behavior: merge
|
|
files:
|
|
- alertmanager.yml=secrets/prometheus-alertmanager.yaml
|
|
options:
|
|
labels:
|
|
app: prometheus
|
|
- name: grafana
|
|
behavior: merge
|
|
files:
|
|
- grafana.ini=secrets/grafana-config.ini
|
|
- datasources.yaml=secrets/grafana-datasources.yaml
|
|
- contactpoints.yaml=resources/grafana-contactpoints.yaml
|
|
- rules.yaml=resources/grafana-rules.yaml
|
|
|
|
secretGenerator:
|
|
- name: prometheus-credentials
|
|
files:
|
|
- secrets/exporter-password
|
|
- name: grafana-credentials
|
|
files:
|
|
- admin-user=secrets/grafana-admin-user
|
|
- admin-password=secrets/grafana-admin-password
|
|
|
|
patches:
|
|
# Patch Grafana deployment to inject PostgreSQL credentials:
|
|
# - target:
|
|
# kind: Deployment
|
|
# name: grafana
|
|
# path: deploy-grafana.yaml
|