Files
netdata_kube/kustomization.yaml
T
2026-08-04 17:22:35 +01:00

52 lines
1.6 KiB
YAML
Executable File

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: netdata
resources:
- namespace.yaml
- rbac.yaml
- child/daemonset.yaml
- k8s-state/deployment.yaml
- k8s-state/pvc.yaml
- parent/deployment.yaml
- parent/service.yaml
- parent/pvc.yaml
- parent/ingress.yaml
# configMapGenerator content-hashes each ConfigMap's name (e.g. netdata-conf-child-a1b2c3d4).
# Kustomize automatically rewrites every Deployment/DaemonSet reference to the new hashed
# name whenever any file below changes. Since the pod template's volume spec then differs,
# Kubernetes rolls the pods automatically on `kubectl apply` — no manual checksum bump,
# no manual `rollout restart`, ever again.
configMapGenerator:
- name: netdata-conf-child
files:
- go.d=child/conf/go.d.yaml
- kubelet=child/conf/kubelet.yaml
- kubeproxy=child/conf/kubeproxy.yaml
- web_log=child/conf/web_log.yaml
- netdata=child/conf/netdata.conf
- stream=child/conf/stream.conf
- name: netdata-child-sd-config-map
files:
- config.yml=child/conf/sd-config.yml
- name: netdata-conf-k8s-state
files:
- go.d=k8s-state/conf/go.d.yaml
- go.d-k8s_state=k8s-state/conf/go.d-k8s_state.yaml
- netdata=k8s-state/conf/netdata.conf
- stream=k8s-state/conf/stream.conf
- httpcheck=k8s-state/conf/httpcheck.yaml
- dnsquery=k8s-state/conf/dnsquery.yaml
- x509check=k8s-state/conf/x509check.yaml
- name: netdata-conf-parent
files:
- health=parent/conf/health.conf
- netdata=parent/conf/netdata.conf
- stream=parent/conf/stream.conf
- otel=parent/conf/otel.yaml