28 lines
888 B
YAML
28 lines
888 B
YAML
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||
|
|
kind: Kustomization
|
||
|
|
|
||
|
|
# No top-level `namespace:` on purpose: the Grafana datasource ConfigMap must
|
||
|
|
# land in `monitoring` (the sidecar's namespace) while everything else lives in
|
||
|
|
# `logging`. Each resource declares its own namespace explicitly.
|
||
|
|
resources:
|
||
|
|
- namespace.yaml
|
||
|
|
- loki.yaml
|
||
|
|
- alloy.yaml
|
||
|
|
- datasource.yaml
|
||
|
|
- monitoring.yaml
|
||
|
|
|
||
|
|
configMapGenerator:
|
||
|
|
- name: loki-config
|
||
|
|
namespace: logging
|
||
|
|
files:
|
||
|
|
- config.yaml=loki/config.yaml
|
||
|
|
- name: alloy-config
|
||
|
|
namespace: logging
|
||
|
|
files:
|
||
|
|
- config.alloy=alloy/config.alloy
|
||
|
|
|
||
|
|
# Keep the content hash on the generated ConfigMaps: a config edit then changes
|
||
|
|
# the pod template and actually rolls the Deployment/DaemonSet. Without it, Flux
|
||
|
|
# updates the ConfigMap and the running process keeps the old config forever.
|
||
|
|
generatorOptions:
|
||
|
|
disableNameSuffixHash: false
|