moving to kustomize

This commit is contained in:
2026-08-04 15:45:40 +01:00
parent 3f34e7b3f5
commit 594a66de6d
28 changed files with 962 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
SEND_EMAIL="NO"
SEND_SLACK="YES"
SLACK_WEBHOOK_URL=""
DEFAULT_RECIPIENT_SLACK=""
+18
View File
@@ -0,0 +1,18 @@
[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
+6
View File
@@ -0,0 +1,6 @@
[11111111-2222-3333-4444-555555555555]
enabled = yes
history = 3600
default memory mode = dbengine
health enabled by default = auto
allow from = *
+101
View File
@@ -0,0 +1,101 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: netdata-parent
labels:
app: netdata
role: parent
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: netdata
role: parent
template:
metadata:
labels:
app: netdata
role: parent
spec:
securityContext:
fsGroup: 201
serviceAccountName: netdata
containers:
- name: netdata
image: "netdata/netdata:edge"
imagePullPolicy: Always
env:
- name: NETDATA_CLAIM_URL
value: "https://api.netdata.cloud"
- name: NETDATA_CLAIM_TOKEN
value: "CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU"
- name: NETDATA_CLAIM_ROOMS
value: "e15a4f12-89d7-4d5b-b588-6658fa835473"
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NETDATA_LISTENER_PORT
value: '19999'
ports:
- name: http
containerPort: 19999
protocol: TCP
livenessProbe:
exec:
command: ["/usr/sbin/netdatacli", "ping"]
initialDelaySeconds: 0
failureThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
exec:
command: ["/usr/sbin/netdatacli", "ping"]
initialDelaySeconds: 0
failureThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
securityContext:
runAsUser: 201
runAsGroup: 201
volumeMounts:
- name: os-release
mountPath: /host/etc/os-release
- name: configmap
mountPath: /etc/netdata/health_alarm_notify.conf
subPath: health
- name: configmap
mountPath: /etc/netdata/netdata.conf
subPath: netdata
- name: configmap
mountPath: /etc/netdata/stream.conf
subPath: stream
- name: database
mountPath: /var/cache/netdata
- name: alarms
mountPath: /var/lib/netdata
resources: {}
terminationGracePeriodSeconds: 300
volumes:
- name: os-release
hostPath:
path: /etc/os-release
- name: configmap
configMap:
name: netdata-conf-parent
optional: true
- name: database
persistentVolumeClaim:
claimName: netdata-parent-database
- name: alarms
persistentVolumeClaim:
claimName: netdata-parent-alarms
dnsPolicy: Default
+21
View File
@@ -0,0 +1,21 @@
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
+27
View File
@@ -0,0 +1,27 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: netdata-parent-database
labels:
app: netdata
role: parent
spec:
storageClassName: nfs-storage-intelligent
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 15Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: netdata-parent-alarms
labels:
app: netdata
role: parent
spec:
storageClassName: nfs-storage-intelligent
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
+17
View File
@@ -0,0 +1,17 @@
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