Giter Site home page Giter Site logo

Comments (6)

freehck-codefresh avatar freehck-codefresh commented on July 16, 2024 1

Found that this workaround works:

podAnnotations:
   checksum/config: {{ tpl "configmap.yaml" . | sha256sum }}

from helm-charts.

freehck-codefresh avatar freehck-codefresh commented on July 16, 2024

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.

invidian avatar invidian commented on July 16, 2024

It seems to me that idea with annotation with config checksum is a good way to resolve this.

from helm-charts.

gauravgola96 avatar gauravgola96 commented on July 16, 2024

@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.

gauravgola96 avatar gauravgola96 commented on July 16, 2024

@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.

kang-makes avatar kang-makes commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.