63 lines
1.4 KiB
Markdown
63 lines
1.4 KiB
Markdown
# netdata_kube
|
|
|
|
If you plan to connect the node to Netdata Cloud, you can find the command with the right parameters by clicking the "Add Nodes" button in your Space's Nodes tab.
|
|
|
|
File generated by Claude
|
|
|
|
To apply:
|
|
```
|
|
kubectl apply -k .
|
|
```
|
|
|
|
|
|
|
|
File generated using the following command
|
|
```
|
|
helm repo add netdata https://netdata.github.io/helmchart/ && helm repo update
|
|
|
|
helm template -n netdata netdata netdata/netdata \
|
|
--set image.tag=edge \
|
|
--set parent.claiming.enabled="true" \
|
|
--set parent.claiming.token=CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU \
|
|
--set parent.claiming.rooms=e15a4f12-89d7-4d5b-b588-6658fa835473 \
|
|
--set child.claiming.enabled="true" \
|
|
--set child.claiming.token=CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU \
|
|
--set child.claiming.rooms=e15a4f12-89d7-4d5b-b588-6658fa835473 > /opt/kubernetes/netdata_kube/netdata_helm.yml
|
|
```
|
|
|
|
I had to manually add a namespace block
|
|
```
|
|
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: netdata
|
|
```
|
|
|
|
|
|
Also modify the PersistentVolumeClaim
|
|
```
|
|
spec:
|
|
storageClassName: nfs-storage-intelligent
|
|
```
|
|
|
|
example :
|
|
|
|
```
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: paperless-media
|
|
spec:
|
|
storageClassName: nfs-storage-intelligent
|
|
accessModes:
|
|
- ReadWriteMany
|
|
resources:
|
|
requests:
|
|
storage: 20Gi
|
|
```
|
|
|
|
|
|
|
|
|