Skip to main content

Dynamic IP for Kubernetes Clusters

Updated over 3 years ago

If a customer has dynamic IP kubernetes clusters that create new host names (because of the IP) constantly.

As a solution, you can set environmental tag you can group them dynamically based on tag.

The last name/value of the env object the Kubernetes daemonset demonstrates how to use agent tags to dynamically create/manage groups in LogDNA for the All Sources filter (https://github.com/logdna/logdna-agent/blob/master/logdna-agent-ds.yaml, https://github.com/logdna/logdna-agent/blob/master/index.js)

env:  - name: LOGDNA_AGENT_KEY    valueFrom:      secretKeyRef:        name: logdna-agent-key        key: logdna-agent-key  - name: LOGDNA_PLATFORM    value: k8s  - name: LOGDNA_TAGS    value: cluster1
Did this answer your question?