update proper commands
This commit is contained in:
@@ -1,8 +1,19 @@
|
|||||||
# netdata_kube
|
# 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 using the following command
|
File generated using the following command
|
||||||
```
|
```
|
||||||
helm template -n netdata netdata netdata/netdata >> netdata_helm.yml
|
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=cd70f310-47a2-4b24-b7d3-0fc4205450d4 \
|
||||||
|
--set child.claiming.enabled="true" \
|
||||||
|
--set child.claiming.token=CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU \
|
||||||
|
--set child.claiming.rooms=cd70f310-47a2-4b24-b7d3-0fc4205450d4 > /opt/kubernetes/netdata_kube/netdata_helm.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
I had to manually add a namespace block
|
I had to manually add a namespace block
|
||||||
|
|||||||
+121
-104
@@ -1,16 +1,11 @@
|
|||||||
---
|
---
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: netdata
|
|
||||||
---
|
|
||||||
# Source: netdata/templates/serviceaccount.yaml
|
# Source: netdata/templates/serviceaccount.yaml
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
name: netdata
|
name: netdata
|
||||||
@@ -24,7 +19,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
data:
|
data:
|
||||||
@@ -37,17 +32,22 @@ data:
|
|||||||
update_every: 1
|
update_every: 1
|
||||||
autodetection_retry: 0
|
autodetection_retry: 0
|
||||||
jobs:
|
jobs:
|
||||||
- url: http://127.0.0.1:10255/metrics
|
- name: local
|
||||||
- url: https://localhost:10250/metrics
|
url: http://127.0.0.1:10255/metrics
|
||||||
|
- name: local
|
||||||
|
url: https://localhost:10250/metrics
|
||||||
tls_skip_verify: yes
|
tls_skip_verify: yes
|
||||||
kubeproxy: |
|
kubeproxy: |
|
||||||
update_every: 1
|
update_every: 1
|
||||||
autodetection_retry: 0
|
autodetection_retry: 0
|
||||||
jobs:
|
jobs:
|
||||||
- url: http://127.0.0.1:10249/metrics
|
- name: local
|
||||||
|
url: http://127.0.0.1:10249/metrics
|
||||||
netdata: |
|
netdata: |
|
||||||
[db]
|
[db]
|
||||||
mode = ram
|
mode = ram
|
||||||
|
[web]
|
||||||
|
bind to = localhost:19999
|
||||||
[health]
|
[health]
|
||||||
enabled = no
|
enabled = no
|
||||||
[ml]
|
[ml]
|
||||||
@@ -70,18 +70,23 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
data:
|
data:
|
||||||
config.yml: |
|
config.yml: |
|
||||||
name: kubernetes
|
disabled: no
|
||||||
discovery:
|
|
||||||
k8s:
|
name: 'kubernetes'
|
||||||
- tags: unknown
|
|
||||||
role: pod
|
discover:
|
||||||
local_mode: true
|
- discoverer: k8s
|
||||||
tag:
|
k8s:
|
||||||
|
- tags: unknown
|
||||||
|
role: pod
|
||||||
|
pod:
|
||||||
|
local_mode: yes
|
||||||
|
classify:
|
||||||
- name: "Control-Plane"
|
- name: "Control-Plane"
|
||||||
selector: unknown
|
selector: unknown
|
||||||
tags: -unknown control_plane
|
tags: -unknown control_plane
|
||||||
@@ -95,49 +100,49 @@ data:
|
|||||||
tags: -unknown applications
|
tags: -unknown applications
|
||||||
match:
|
match:
|
||||||
- tags: activemq
|
- tags: activemq
|
||||||
expr: '{{ and (eq .Port "8161") (glob .Image "**/activemq*") }}'
|
expr: '{{ and (eq .Port "8161") (glob .Image "*/activemq*") }}'
|
||||||
- tags: apache
|
- tags: apache
|
||||||
expr: '{{ and (eq .Port "80" "8080") (glob .Image "httpd*" "**/httpd*") }}'
|
expr: '{{ and (eq .Port "80" "8080") (glob .Image "httpd*" "*/httpd*") }}'
|
||||||
- tags: bind
|
- tags: bind
|
||||||
expr: '{{ and (eq .Port "8653") (glob .Image "**/bind*") }}'
|
expr: '{{ and (eq .Port "8653") (glob .Image "*/bind*") }}'
|
||||||
- tags: cockroachdb
|
- tags: cockroachdb
|
||||||
expr: '{{ and (eq .Port "8080") (glob .Image "**/cockroach*") }}'
|
expr: '{{ and (eq .Port "8080") (glob .Image "*/cockroach*") }}'
|
||||||
- tags: consul
|
- tags: consul
|
||||||
expr: '{{ and (eq .Port "8500") (glob .Image "consul*" "**/consul*") }}'
|
expr: '{{ and (eq .Port "8500") (glob .Image "consul*" "*/consul*") }}'
|
||||||
- tags: coredns
|
- tags: coredns
|
||||||
expr: '{{ and (eq .Port "9153") (glob .Image "**/coredns*") }}'
|
expr: '{{ and (eq .Port "9153") (glob .Image "*/coredns*") }}'
|
||||||
- tags: elasticsearch
|
- tags: elasticsearch
|
||||||
expr: '{{ and (eq .Port "9200") (glob .Image "elasticsearch:*" "**/elasticsearch:*") }}'
|
expr: '{{ and (eq .Port "9200") (glob .Image "elasticsearch:*" "*/elasticsearch:*") }}'
|
||||||
- tags: fluentd
|
- tags: fluentd
|
||||||
expr: '{{ and (eq .Port "24220") (glob .Image "fluentd*" "**/fluentd*") }}'
|
expr: '{{ and (eq .Port "24220") (glob .Image "fluentd*" "*/fluentd*") }}'
|
||||||
- tags: freeradius
|
- tags: freeradius
|
||||||
expr: '{{ and (eq .Port "18121") (glob .Image "**/freeradius*") }}'
|
expr: '{{ and (eq .Port "18121") (glob .Image "*/freeradius*") }}'
|
||||||
- tags: hdfs
|
- tags: hdfs
|
||||||
expr: '{{ and (eq .Port "50070") (glob .Image "**/hdfs*") }}'
|
expr: '{{ and (eq .Port "50070") (glob .Image "*/hdfs*") }}'
|
||||||
- tags: lighttpd
|
- tags: lighttpd
|
||||||
expr: '{{ and (eq .Port "80" "8080") (glob .Image "**/lighttpd*") }}'
|
expr: '{{ and (eq .Port "80" "8080") (glob .Image "*/lighttpd*") }}'
|
||||||
- tags: logstash
|
- tags: logstash
|
||||||
expr: '{{ and (eq .Port "9600") (glob .Image "logstash*" "**/logstash*") }}'
|
expr: '{{ and (eq .Port "9600") (glob .Image "logstash*" "*/logstash*") }}'
|
||||||
- tags: mysql
|
- tags: mysql
|
||||||
expr: '{{ and (eq .Port "3306") (glob .Image "mysql*" "**/mysql*" "mariadb*" "**/mariadb*") }}'
|
expr: '{{ and (eq .Port "3306") (glob .Image "mysql*" "*/mysql*" "mariadb*" "*/mariadb*") }}'
|
||||||
- tags: nginx
|
- tags: nginx
|
||||||
expr: '{{ and (eq .Port "80" "8080") (glob .Image "nginx*" "**/nginx*") }}'
|
expr: '{{ and (eq .Port "80" "8080") (glob .Image "nginx*" "*/nginx*") }}'
|
||||||
- tags: openvpn
|
- tags: openvpn
|
||||||
expr: '{{ and (eq .Port "7505") (glob .Image "**/openvpn") }}'
|
expr: '{{ and (eq .Port "7505") (glob .Image "*/openvpn") }}'
|
||||||
- tags: phpfpm
|
- tags: phpfpm
|
||||||
expr: '{{ and (eq .Port "80" "8080") (glob .Image "**/phpfpm*" "**/php-fpm*") }}'
|
expr: '{{ and (eq .Port "80" "8080") (glob .Image "*/phpfpm*" "*/php-fpm*") }}'
|
||||||
- tags: rabbitmq
|
- tags: rabbitmq
|
||||||
expr: '{{ and (eq .Port "15672") (glob .Image "rabbitmq*" "**/rabbitmq*") }}'
|
expr: '{{ and (eq .Port "15672") (glob .Image "rabbitmq*" "*/rabbitmq*") }}'
|
||||||
- tags: solr
|
- tags: solr
|
||||||
expr: '{{ and (eq .Port "8983") (glob .Image "solr*" "**/solr*") }}'
|
expr: '{{ and (eq .Port "8983") (glob .Image "solr*" "*/solr*") }}'
|
||||||
- tags: tengine
|
- tags: tengine
|
||||||
expr: '{{ and (eq .Port "80" "8080") (glob .Image "**/tengine*") }}'
|
expr: '{{ and (eq .Port "80" "8080") (glob .Image "*/tengine*") }}'
|
||||||
- tags: unbound
|
- tags: unbound
|
||||||
expr: '{{ and (eq .Port "8953") (glob .Image "**/unbound*") }}'
|
expr: '{{ and (eq .Port "8953") (glob .Image "*/unbound*") }}'
|
||||||
- tags: vernemq
|
- tags: vernemq
|
||||||
expr: '{{ and (eq .Port "8888") (glob .Image "**/vernemq*") }}'
|
expr: '{{ and (eq .Port "8888") (glob .Image "*/vernemq*") }}'
|
||||||
- tags: zookeeper
|
- tags: zookeeper
|
||||||
expr: '{{ and (eq .Port "2181") (glob .Image "zookeeper*" "**/zookeeper*") }}'
|
expr: '{{ and (eq .Port "2181") (glob .Image "zookeeper*" "*/zookeeper*") }}'
|
||||||
- tags: consul_envoy
|
- tags: consul_envoy
|
||||||
expr: |
|
expr: |
|
||||||
{{ $imageOK := glob .Image "*/consul-dataplane*" -}}
|
{{ $imageOK := glob .Image "*/consul-dataplane*" -}}
|
||||||
@@ -154,13 +159,12 @@ data:
|
|||||||
expr: |
|
expr: |
|
||||||
{{ $scrapeOK := eq (get .Annotations "prometheus.io/scrape") "true" -}}
|
{{ $scrapeOK := eq (get .Annotations "prometheus.io/scrape") "true" -}}
|
||||||
{{ $portOK := eq (default .Port (get .Annotations "prometheus.io/port")) .Port -}}
|
{{ $portOK := eq (default .Port (get .Annotations "prometheus.io/port")) .Port -}}
|
||||||
{{ $imageOK := not (glob .Image "netdata/netdata*" "**pulsar*" "**telegraf*") -}}
|
{{ $imageOK := not (glob .Image "netdata/netdata*" "*pulsar*" "*telegraf*") -}}
|
||||||
{{ and $scrapeOK $portOK $imageOK }}
|
{{ and $scrapeOK $portOK $imageOK }}
|
||||||
build:
|
compose:
|
||||||
- name: "Control-Plane"
|
- name: "Control-Plane"
|
||||||
selector: '!unknown control_plane'
|
selector: '!unknown control_plane'
|
||||||
tags: file
|
config:
|
||||||
apply:
|
|
||||||
- selector: kube_scheduler
|
- selector: kube_scheduler
|
||||||
template: |
|
template: |
|
||||||
- module: prometheus
|
- module: prometheus
|
||||||
@@ -179,8 +183,7 @@ data:
|
|||||||
max_time_series: 2000
|
max_time_series: 2000
|
||||||
- name: "Prometheus Generic Applications"
|
- name: "Prometheus Generic Applications"
|
||||||
selector: '!unknown prometheus_generic'
|
selector: '!unknown prometheus_generic'
|
||||||
tags: file
|
config:
|
||||||
apply:
|
|
||||||
- selector: prometheus_generic
|
- selector: prometheus_generic
|
||||||
template: |
|
template: |
|
||||||
{{ $path := default "/metrics" (get .Annotations "prometheus.io/path") -}}
|
{{ $path := default "/metrics" (get .Annotations "prometheus.io/path") -}}
|
||||||
@@ -193,7 +196,7 @@ data:
|
|||||||
- name: "Applications"
|
- name: "Applications"
|
||||||
selector: '!unknown applications'
|
selector: '!unknown applications'
|
||||||
tags: file
|
tags: file
|
||||||
apply:
|
config:
|
||||||
- selector: activemq
|
- selector: activemq
|
||||||
template: |
|
template: |
|
||||||
- module: activemq
|
- module: activemq
|
||||||
@@ -314,10 +317,6 @@ data:
|
|||||||
- module: zookeeper
|
- module: zookeeper
|
||||||
name: zookeeper-{{.TUID}}
|
name: zookeeper-{{.TUID}}
|
||||||
address: {{.Address}}
|
address: {{.Address}}
|
||||||
export:
|
|
||||||
file:
|
|
||||||
- selector: file
|
|
||||||
filename: "/export/go.d.yml"
|
|
||||||
---
|
---
|
||||||
# Source: netdata/templates/k8s-state/configmap.yaml
|
# Source: netdata/templates/k8s-state/configmap.yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -327,7 +326,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
data:
|
data:
|
||||||
@@ -345,6 +344,8 @@ data:
|
|||||||
hostname = netdata-k8s-state
|
hostname = netdata-k8s-state
|
||||||
[db]
|
[db]
|
||||||
mode = ram
|
mode = ram
|
||||||
|
[web]
|
||||||
|
bind to = localhost:19999
|
||||||
[health]
|
[health]
|
||||||
enabled = no
|
enabled = no
|
||||||
[ml]
|
[ml]
|
||||||
@@ -385,7 +386,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
data:
|
data:
|
||||||
@@ -430,7 +431,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
role: k8sState
|
role: k8sState
|
||||||
@@ -448,7 +449,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
role: parent
|
role: parent
|
||||||
@@ -456,7 +457,7 @@ spec:
|
|||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 5Gi
|
storage: 15Gi
|
||||||
---
|
---
|
||||||
# Source: netdata/templates/parent/persistentvolumeclaim.yaml
|
# Source: netdata/templates/parent/persistentvolumeclaim.yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -466,7 +467,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
role: parent
|
role: parent
|
||||||
@@ -483,7 +484,7 @@ metadata:
|
|||||||
name: netdata
|
name: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
rules:
|
rules:
|
||||||
@@ -500,6 +501,21 @@ rules:
|
|||||||
- "get"
|
- "get"
|
||||||
- "list"
|
- "list"
|
||||||
- "watch"
|
- "watch"
|
||||||
|
- apiGroups: ["apps"]
|
||||||
|
resources:
|
||||||
|
- "deployments"
|
||||||
|
verbs:
|
||||||
|
- "get"
|
||||||
|
- "list"
|
||||||
|
- "watch"
|
||||||
|
- apiGroups: ["batch"]
|
||||||
|
resources:
|
||||||
|
- "cronjobs"
|
||||||
|
- "jobs"
|
||||||
|
verbs:
|
||||||
|
- "get"
|
||||||
|
- "list"
|
||||||
|
- "watch"
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources:
|
resources:
|
||||||
- "namespaces" # used by go.d/k8s_state, netdata (cgroup-name.sh, get-kubernetes-labels.sh)
|
- "namespaces" # used by go.d/k8s_state, netdata (cgroup-name.sh, get-kubernetes-labels.sh)
|
||||||
@@ -513,7 +529,7 @@ metadata:
|
|||||||
name: netdata
|
name: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
roleRef:
|
roleRef:
|
||||||
@@ -533,7 +549,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
role: parent
|
role: parent
|
||||||
@@ -558,7 +574,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
role: child
|
role: child
|
||||||
@@ -572,7 +588,7 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
container.apparmor.security.beta.kubernetes.io/netdata: unconfined
|
container.apparmor.security.beta.kubernetes.io/netdata: unconfined
|
||||||
checksum/config: 9fb8c023847faf4c2c98561afaf796d0de060016b1ceedc43055a7a15e0b9a71
|
checksum/config: 8a146c7f2aa937bbdd19b8ad73ddf059040663eb3ae88046b343003a4fa089e3
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
release: netdata
|
release: netdata
|
||||||
@@ -602,9 +618,15 @@ spec:
|
|||||||
'
|
'
|
||||||
containers:
|
containers:
|
||||||
- name: netdata
|
- name: netdata
|
||||||
image: "netdata/netdata:v1.47.4"
|
image: "netdata/netdata:edge"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
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: "cd70f310-47a2-4b24-b7d3-0fc4205450d4"
|
||||||
- name: MY_POD_NAME
|
- name: MY_POD_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
@@ -619,8 +641,6 @@ spec:
|
|||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: NETDATA_LISTENER_PORT
|
- name: NETDATA_LISTENER_PORT
|
||||||
value: '19999'
|
value: '19999'
|
||||||
- name: NETDATA_PLUGINS_GOD_WATCH_PATH
|
|
||||||
value: "/etc/netdata/go.d/sd/go.d.yml"
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 19999
|
containerPort: 19999
|
||||||
@@ -672,8 +692,9 @@ spec:
|
|||||||
subPath: stream
|
subPath: stream
|
||||||
- name: persistencevarlibdir
|
- name: persistencevarlibdir
|
||||||
mountPath: /var/lib/netdata
|
mountPath: /var/lib/netdata
|
||||||
- name: sd-shared
|
- name: sdconfigmap
|
||||||
mountPath: "/etc/netdata/go.d/sd/"
|
mountPath: "/etc/netdata/go.d/sd/k8s.conf"
|
||||||
|
subPath: config.yml
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
@@ -681,30 +702,6 @@ spec:
|
|||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
resources:
|
resources:
|
||||||
{}
|
{}
|
||||||
- name: sd
|
|
||||||
image: "netdata/agent-sd:v0.2.10"
|
|
||||||
imagePullPolicy: Always
|
|
||||||
volumeMounts:
|
|
||||||
- name: sd-shared
|
|
||||||
mountPath: "/export/"
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 50m
|
|
||||||
memory: 150Mi
|
|
||||||
requests:
|
|
||||||
cpu: 50m
|
|
||||||
memory: 100Mi
|
|
||||||
env:
|
|
||||||
- name: NETDATA_SD_CONFIG_MAP
|
|
||||||
value: "netdata-child-sd-config-map:config.yml"
|
|
||||||
- name: MY_POD_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
- name: MY_NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
operator: Exists
|
operator: Exists
|
||||||
@@ -734,8 +731,10 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/netdata-k8s-child/var/lib/netdata
|
path: /var/lib/netdata-k8s-child/var/lib/netdata
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
- name: sd-shared
|
- name: sdconfigmap
|
||||||
emptyDir: { }
|
configMap:
|
||||||
|
name: netdata-child-sd-config-map
|
||||||
|
optional: true
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
---
|
---
|
||||||
# Source: netdata/templates/k8s-state/deployment.yaml
|
# Source: netdata/templates/k8s-state/deployment.yaml
|
||||||
@@ -746,7 +745,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
role: k8sState
|
role: k8sState
|
||||||
@@ -762,7 +761,7 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
container.apparmor.security.beta.kubernetes.io/netdata: unconfined
|
container.apparmor.security.beta.kubernetes.io/netdata: unconfined
|
||||||
checksum/config: f4cd1a58dfbd50f877fadfa490af5351d5700abd512e9561f910bf541855cf3b
|
checksum/config: 695eec71873af73b22884232dbacc2917e0b13dad40de683b317b1105911c469
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
release: netdata
|
release: netdata
|
||||||
@@ -775,9 +774,17 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
containers:
|
containers:
|
||||||
- name: netdata
|
- name: netdata
|
||||||
image: "netdata/netdata:v1.47.4"
|
image: "netdata/netdata:edge"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
|
- name: MY_POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: MY_POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
- name: NETDATA_LISTENER_PORT
|
- name: NETDATA_LISTENER_PORT
|
||||||
value: '19999'
|
value: '19999'
|
||||||
ports:
|
ports:
|
||||||
@@ -787,8 +794,8 @@ spec:
|
|||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- /usr/sbin/netdatacli
|
- /usr/sbin/netdatacli
|
||||||
- ping
|
- ping
|
||||||
initialDelaySeconds: 0
|
initialDelaySeconds: 0
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
@@ -797,8 +804,8 @@ spec:
|
|||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- /usr/sbin/netdatacli
|
- /usr/sbin/netdatacli
|
||||||
- ping
|
- ping
|
||||||
initialDelaySeconds: 0
|
initialDelaySeconds: 0
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
@@ -849,7 +856,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
role: parent
|
role: parent
|
||||||
@@ -869,17 +876,24 @@ spec:
|
|||||||
release: netdata
|
release: netdata
|
||||||
role: parent
|
role: parent
|
||||||
annotations:
|
annotations:
|
||||||
checksum/config: 460d438925c1eed3ec4af1f762f106b7bdf0e79e888e5dfa58020de5d75ec818
|
checksum/config: 7ae6d956c6b1ddf923e6d707aecca99fc502fa2fba6feb22b7845f5840edd58e
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 201
|
fsGroup: 201
|
||||||
serviceAccountName: netdata
|
serviceAccountName: netdata
|
||||||
initContainers:
|
initContainers:
|
||||||
|
[]
|
||||||
containers:
|
containers:
|
||||||
- name: netdata
|
- name: netdata
|
||||||
image: "netdata/netdata:v1.47.4"
|
image: "netdata/netdata:edge"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
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: "cd70f310-47a2-4b24-b7d3-0fc4205450d4"
|
||||||
- name: MY_POD_NAME
|
- name: MY_POD_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
@@ -914,6 +928,9 @@ spec:
|
|||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 201
|
||||||
|
runAsGroup: 201
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: os-release
|
- name: os-release
|
||||||
mountPath: /host/etc/os-release
|
mountPath: /host/etc/os-release
|
||||||
@@ -961,7 +978,7 @@ metadata:
|
|||||||
namespace: netdata
|
namespace: netdata
|
||||||
labels:
|
labels:
|
||||||
app: netdata
|
app: netdata
|
||||||
chart: netdata-3.7.108
|
chart: netdata-3.7.170
|
||||||
release: netdata
|
release: netdata
|
||||||
heritage: Helm
|
heritage: Helm
|
||||||
annotations:
|
annotations:
|
||||||
|
|||||||
Reference in New Issue
Block a user