chore(netdata): add pod/namespace/node env's (#2600)
* feat(netdata): try to add agent for k8s discovery * hell * remove sd agent, as it only supports a handful of services * try rootless * root * add gui options for cloud claim * we don't use sd currently
This commit is contained in:
@@ -18,7 +18,7 @@ maintainers:
|
|||||||
name: netdata
|
name: netdata
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/netdata
|
- https://github.com/netdata
|
||||||
version: 0.0.3
|
version: 0.0.4
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- utilities
|
- utilities
|
||||||
|
|||||||
@@ -74,7 +74,30 @@ questions:
|
|||||||
- value: "OnDelete"
|
- value: "OnDelete"
|
||||||
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
||||||
# Include{controllerExpert}
|
# Include{controllerExpert}
|
||||||
# Docker specific env
|
- variable: secret
|
||||||
|
group: "Container Configuration"
|
||||||
|
label: "Image Secrets"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: NETDATA_CLAIM_URL
|
||||||
|
label: "NETDATA_CLAIM_URL"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "https://app.netdata.cloud"
|
||||||
|
- variable: NETDATA_CLAIM_TOKEN
|
||||||
|
label: "NETDATA_CLAIM_TOKEN"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
private: true
|
||||||
|
default: ""
|
||||||
|
- variable: NETDATA_CLAIM_ROOMS
|
||||||
|
label: "NETDATA_CLAIM_ROOMS"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
private: true
|
||||||
|
default: ""
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
|
|
||||||
- variable: service
|
- variable: service
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ rbac:
|
|||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- "pods"
|
- "pods"
|
||||||
- "services"
|
# - "services" # used by sd
|
||||||
- "configmaps"
|
# - "configmaps" # used by sd
|
||||||
- "secrets"
|
# - "secrets" # used by sd
|
||||||
- "nodes"
|
- "nodes"
|
||||||
- "nodes/metrics"
|
- "nodes/metrics"
|
||||||
verbs:
|
verbs:
|
||||||
@@ -40,6 +40,22 @@ rbac:
|
|||||||
verbs:
|
verbs:
|
||||||
- "get"
|
- "get"
|
||||||
|
|
||||||
|
envValueFrom:
|
||||||
|
MY_NODE_NAME:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: spec.nodeName
|
||||||
|
MY_POD_NAMESPACE:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
MY_POD_NAME:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
|
||||||
|
secret:
|
||||||
|
NETDATA_CLAIM_URL: ""
|
||||||
|
NETDATA_CLAIM_TOKEN: ""
|
||||||
|
NETDATA_CLAIM_ROOMS: ""
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
@@ -106,9 +122,9 @@ initContainers:
|
|||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
echo "Creating config file...";
|
|
||||||
export configfile=/etc/netdata/netdata.conf;
|
export configfile=/etc/netdata/netdata.conf;
|
||||||
if [ ! -f $configfile ]; then
|
if [ ! -f $configfile ]; then
|
||||||
|
echo "Creating config file...";
|
||||||
echo '[global]' > $configfile;
|
echo '[global]' > $configfile;
|
||||||
echo ' memory mode = dbengine' >> $configfile;
|
echo ' memory mode = dbengine' >> $configfile;
|
||||||
echo ' dbengine multihost disk space = 4096' >> $configfile;
|
echo ' dbengine multihost disk space = 4096' >> $configfile;
|
||||||
|
|||||||
Reference in New Issue
Block a user