question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[kubernetes] K8s 1.8 changed ReplicaSet naming

See original GitHub issue

K8s 1.8 changed the naming scheme for some objects, including ReplicaSets, in this commit, notably the pod template hash is now encoded as a hexadecimal, rather than decimal. This breaks the assumption in kubeutil about the name being all (base 10) digits. This is called for example by get_pod_creator_tags, which in turn is used by the docker integration. Due to this, docker metrics can’t resolve ReplicaSets to their creating Deployment.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andor44commented, Nov 3, 2017

I tried the backported image and it seems to have fixed the issue! 🎉

0reactions
xvellocommented, Dec 7, 2017

https://github.com/DataDog/dd-agent/pull/3586 merged in 5.20 is fixing the issue, closing this one.

@ChipmunkV we infer the deployment name from the replicaset name, not the pod name, see https://github.com/DataDog/dd-agent/blob/80ceba8a0789e20d0b5b1bc740bd26e34ebda019/utils/kubernetes/kubeutil.py#L374

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReplicaSet - Kubernetes
You can remove Pods from a ReplicaSet by changing their labels. This technique may be used to remove Pods from service for debugging,...
Read more >
Writing a Controller for Pod Labels - Kubernetes
Implementing reconciliation · Use the Pod's name and namespace from the ctrl. · If the Pod has an add-pod-name-label annotation, add a pod-name...
Read more >
DaemonSet - Kubernetes
If node labels are changed, the DaemonSet will promptly add Pods to newly matching nodes and delete Pods from newly not-matching nodes. You...
Read more >
Using Finalizers to Control Deletion - Kubernetes
Finalizer rules are processed when there are owner references. An owner reference consists of a name and a UID. Owner references link resources ......
Read more >
Deployments - Kubernetes
This name will become the basis for the ReplicaSets and Pods which are ... kubectl apply -f https://k8s.io/examples/controllers/nginx-deployment.yaml.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found