diff --git a/health.conf b/health.conf deleted file mode 100644 index ca10502..0000000 --- a/health.conf +++ /dev/null @@ -1,4 +0,0 @@ -SEND_EMAIL="NO" -SEND_SLACK="YES" -SLACK_WEBHOOK_URL="" -DEFAULT_RECIPIENT_SLACK="" diff --git a/ingress.yaml b/ingress.yaml deleted file mode 100644 index 1767b3a..0000000 --- a/ingress.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: netdata - labels: - app: netdata - annotations: - kubernetes.io/ingress.class: nginx - kubernetes.io/tls-acme: "true" -spec: - rules: - - host: netdata.k8s.local - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: netdata - port: - name: http diff --git a/kustomization.yaml b/kustomization.yaml deleted file mode 100644 index 16d3ab7..0000000 --- a/kustomization.yaml +++ /dev/null @@ -1,51 +0,0 @@ -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 - - otel=child/conf/otel.yaml - - - 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 diff --git a/namespace.yaml b/namespace.yaml deleted file mode 100644 index e5724c0..0000000 --- a/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: netdata diff --git a/netdata.conf b/netdata.conf deleted file mode 100644 index f681eed..0000000 --- a/netdata.conf +++ /dev/null @@ -1,18 +0,0 @@ -[global] - hostname = netdata-parent -[db] - mode = dbengine - -[plugins] - cgroups = no - tc = no - enable running new plugins = no - check for new plugins every = 72000 - python.d = no - charts.d = no - go.d = no - node.d = no - apps = no - proc = no - idlejitter = no - diskspace = no diff --git a/pvc.yaml b/pvc.yaml deleted file mode 100644 index 4855082..0000000 --- a/pvc.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: netdata-k8s-state-varlib - labels: - app: netdata - role: k8sState -spec: - storageClassName: nfs-storage-intelligent - accessModes: ["ReadWriteOnce"] - resources: - requests: - storage: 1Gi diff --git a/rbac.yaml b/rbac.yaml deleted file mode 100644 index 4adbeb4..0000000 --- a/rbac.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: netdata - labels: - app: netdata ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: netdata - labels: - app: netdata -rules: - - apiGroups: [""] - resources: - - "pods" - - "services" - - "configmaps" - - "secrets" - - "nodes" - - "nodes/metrics" - - "nodes/proxy" - verbs: ["get", "list", "watch"] - - apiGroups: ["apps"] - resources: ["deployments"] - verbs: ["get", "list", "watch"] - - apiGroups: ["batch"] - resources: ["cronjobs", "jobs"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["namespaces"] - verbs: ["get"] ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: netdata - labels: - app: netdata -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: netdata -subjects: - - kind: ServiceAccount - name: netdata - namespace: netdata diff --git a/service.yaml b/service.yaml deleted file mode 100644 index f37f5cc..0000000 --- a/service.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: netdata - labels: - app: netdata - role: parent -spec: - type: ClusterIP - ports: - - port: 19999 - targetPort: http - protocol: TCP - name: http - selector: - app: netdata - role: parent diff --git a/stream.conf b/stream.conf deleted file mode 100644 index 4a9af88..0000000 --- a/stream.conf +++ /dev/null @@ -1,6 +0,0 @@ -[11111111-2222-3333-4444-555555555555] - enabled = yes - history = 3600 - default memory mode = dbengine - health enabled by default = auto - allow from = *