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
+14
View File
@@ -0,0 +1,14 @@
update_every: 3600
autodetection_retry: 0
jobs:
- name: job1
record_types:
- A
- AAAA
domains:
- google.com
- github.com
- gitea.tryton.geeraert.eu
servers:
- 8.8.8.8
- 8.8.4.4
+3
View File
@@ -0,0 +1,3 @@
jobs:
- name: k8s_state
update_every: 1
+6
View File
@@ -0,0 +1,6 @@
default_run: no
modules:
k8s_state: yes
httpcheck: yes
dnsquery: yes
x509check: yes
+11
View File
@@ -0,0 +1,11 @@
update_every: 1
autodetection_retry: 0
jobs:
- name: gitea
url: https://gitea.tryton.geeraert.eu:443
headers:
Host: localhost:8080
User-Agent: netdata/go.d.plugin
Accept: "*/*"
- name: bitwarden
url: https://bitwarden.tryton.geeraert.eu:443
+28
View File
@@ -0,0 +1,28 @@
[global]
hostname = netdata-k8s-state
[db]
mode = ram
[web]
bind to = localhost:19999
[health]
enabled = no
[ml]
enabled = no
[plugins]
timex = no
checks = no
idlejitter = no
tc = no
diskspace = no
proc = no
cgroups = no
enable running new plugins = no
slabinfo = no
perf = no
go.d = yes
ioping = no
ebpf = no
charts.d = no
apps = no
python.d = no
fping = no
+8
View File
@@ -0,0 +1,8 @@
[stream]
enabled = yes
destination = netdata:19999
api key = 11111111-2222-3333-4444-555555555555
timeout seconds = 60
buffer size bytes = 1048576
reconnect delay seconds = 5
initial clock resync iterations = 60
+3
View File
@@ -0,0 +1,3 @@
jobs:
- name: my_site_cert
source: https://gitea.tryton.geeraert.eu:443
+101
View File
@@ -0,0 +1,101 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: netdata-k8s-state
labels:
app: netdata
role: k8sState
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: netdata
role: k8sState
template:
metadata:
annotations:
container.apparmor.security.beta.kubernetes.io/netdata: unconfined
labels:
app: netdata
role: k8sState
spec:
securityContext:
fsGroup: 201
serviceAccountName: netdata
restartPolicy: Always
containers:
- name: netdata
image: "netdata/netdata:edge"
imagePullPolicy: Always
env:
- 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
volumeMounts:
- name: os-release
mountPath: /host/etc/os-release
- name: configmap
mountPath: /etc/netdata/go.d.conf
subPath: go.d
- name: configmap
mountPath: /etc/netdata/go.d/httpcheck.conf
subPath: httpcheck
- name: configmap
mountPath: /etc/netdata/go.d/dns_query.conf
subPath: dnsquery
- name: configmap
mountPath: /etc/netdata/go.d/x509check.conf
subPath: x509check
- name: configmap
mountPath: /etc/netdata/go.d/k8s_state.conf
subPath: go.d-k8s_state
- name: configmap
mountPath: /etc/netdata/netdata.conf
subPath: netdata
- name: configmap
mountPath: /etc/netdata/stream.conf
subPath: stream
- name: varlib
mountPath: /var/lib/netdata
resources: {}
terminationGracePeriodSeconds: 30
volumes:
- name: os-release
hostPath:
path: /etc/os-release
- name: configmap
configMap:
name: netdata-conf-k8s-state
optional: true
- name: varlib
persistentVolumeClaim:
claimName: netdata-k8s-state-varlib
dnsPolicy: ClusterFirstWithHostNet
+13
View File
@@ -0,0 +1,13 @@
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