moving to kustomize
This commit is contained in:
Executable
+14
@@ -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
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
jobs:
|
||||
- name: k8s_state
|
||||
update_every: 1
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
default_run: no
|
||||
modules:
|
||||
k8s_state: yes
|
||||
httpcheck: yes
|
||||
dnsquery: yes
|
||||
x509check: yes
|
||||
Executable
+11
@@ -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
|
||||
Executable
+28
@@ -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
|
||||
Executable
+8
@@ -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
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
jobs:
|
||||
- name: my_site_cert
|
||||
source: https://gitea.tryton.geeraert.eu:443
|
||||
Executable
+101
@@ -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
|
||||
Executable
+13
@@ -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
|
||||
Reference in New Issue
Block a user