Comments (6)
Found that this workaround works:
podAnnotations:
checksum/config: {{ tpl "configmap.yaml" . | sha256sum }}
from helm-charts.
I mean, it works it we put it into the values.yaml
.
Feel free to use it as a default or as one of the possible solutions.
from helm-charts.
It seems to me that idea with annotation with config checksum is a good way to resolve this.
from helm-charts.
@freehck-codefresh @invidian i am trying to achieve integration host for redis. I commented out intergations_config part for redis is values.yaml
And deployed with helm upgrade --install --reuse-values values.yaml newrelic-bundle newrelic/nri-bundle
But i don't see any configmap created and also no metrics
from helm-charts.
@invidian @freehck-codefresh I have also tried yaml manifest
apiVersion: v1
kind: ConfigMap
metadata:
name: nri-integration-cfg
namespace: newrelic
data:
redis-config.yml: |
---
# Run auto discovery to find pods with label "app=redis"
# https://docs.newrelic.com/docs/integrations/host-integrations/installation/container-auto-discovery
discovery:
command:
# Use the following optional arguments:
# --namespaces: Comma separated list of namespaces to discover pods on
# --tls: Use secure (TLS) connection
# --port: Port used to connect to the kubelet. Default is 10255
exec: /var/db/newrelic-infra/nri-discovery-kubernetes --namespaces redis --tls --port 10250
match:
label.app: redis
integrations:
- name: nri-redis
env:
# using the discovered IP as the hostname address
HOSTNAME: ${discovery.ip}
PORT: 6379
PASSWORD: '***'
REMOTE_MONITORING: true
use_unix_socket: true
labels:
type: cache
env: staging
and mounted volume in newrelic-infra daemonset as well
volumeMounts:
- name: dev
mountPath: /dev
- name: host-docker-socket
mountPath: /var/run/docker.sock
- name: log
mountPath: /var/log
- name: host-volume
mountPath: /host
readOnly: true
- name: integration-config
mountPath: /etc/newrelic-infra/redis-config.yml
subPath: redis-config.yml
resources:
limits:
memory: 300M
requests:
cpu: 100m
memory: 150M
volumes:
- name: dev
hostPath:
path: /dev
- name: host-docker-socket
hostPath:
path: /var/run/docker.sock
- name: log
hostPath:
path: /var/log
- name: host-volume
hostPath:
path: /
- name: integration-config
configMap:
name: nri-integration-cfg
when i checked in pod log
./nri-redist throws[FATAL] can't continue: Redis connection through TCP failed, got error: dial tcp 192.168.1.41:6379: connect: connection refused
but i manually run it with
./nri-redis -hostname redis-master.redis.svc.cluster.local -port 6379 -password '***'
it connects
any help is really appreciated !
from helm-charts.
Fixed with the release of nri-kubernetes
v3: https://github.com/newrelic/nri-kubernetes/blob/aa3e8c09a57317b45d97cce733b29074650fb25d/charts/newrelic-infrastructure/templates/kubelet/daemonset.yaml#L24-L29
from helm-charts.
Related Issues (20)
- [newrelic/nri-bundle] <enable Mongodb monitoring?> HOT 3
- [nri-bundle] <support to monitor tomcat container> HOT 2
- [helm-charts/nri-bundle] <mapping NR installation to ori-bundle values.yaml fields> HOT 1
- [newrelic-logging] 1.17.1 fails with parser 'cri,docker' is not registered HOT 2
- [newrelic-logging] invalid record parameters, expects ‘KEY VALUE’ HOT 2
- [nri-bundle:5.0.22][newrelic-logging] logs sometimes are not shipped - no DNS resolution possible in newrelic-logging pods HOT 5
- [nri-bundle] noisy logs from `newrelic-bundle-nrk8s-kubelet-*` HOT 3
- [nri-bundle-5.0.25][newrelic-logging] log parser causing noisy warning in logs with stderr F ... HOT 3
- [nri-bundle:5.0.26] Logs not parsing as CRI but parsing as Docker HOT 3
- [newrelic-pixie] newrelic-pixie init container not running on arm64 HOT 9
- Action Required: Fix Renovate Configuration HOT 1
- Include info about newrelic-logging updates in nri-bundle chart release notes HOT 3
- [ri-bundle] how to input newrelic license key to value.yaml HOT 3
- [newrelic-logging] hostPath on OpenShift 4.13 HOT 2
- Support templated [cluster] value HOT 1
- [nri-bundle] <nri-mongodb3 integration is not working> HOT 2
- [nri-bundle:5.0.69] Update Docs: "fluentBit.k8sLoggingExclude" needs to be 'true' and not 'On' HOT 1
- [newrelic] Unable to install charts HOT 2
- Support `customSecretName` for `nri-statsd` HOT 1
- Modify Synthetics Job Manager Containers to Support Non-Root Execution HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.