Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault on kube_inventory... #9450

Closed
ebertech opened this issue Jun 29, 2021 · 0 comments · Fixed by #9456
Closed

segfault on kube_inventory... #9450

ebertech opened this issue Jun 29, 2021 · 0 comments · Fixed by #9456
Assignees
Labels
area/k8s bug unexpected problem or unintended behavior regression something that used to work, but is now broken

Comments

@ebertech
Copy link

Relevant telegraf.conf:

[[inputs.kube_inventory]]
url = "https://kubernetes.default.svc"
bearer_token = "/var/run/secrets/kubernetes.io/serviceaccount/token"
insecure_skip_verify = true

System info:

1.19, EKS, Docker

Docker

Steps to reproduce:

Run this inside of EKS with the settings provided and create an endpoint as described below.

Expected behavior:

I get some data from the endpoint

Actual behavior:

I get a segfault...

Additional info:

Here's the specific line causing the issue I think...

79f5803#r52829921

I don't think all EndPoint addresses have a nodeName... eg, this is present in my cluster (IP's removed)

apiVersion: v1
items:
- apiVersion: v1
  kind: Endpoints
  metadata:
    creationTimestamp: "2019-07-27T00:57:07Z"
    name: kubernetes
    namespace: default
    resourceVersion: "189547558"
    selfLink: /api/v1/namespaces/default/endpoints/kubernetes
    uid: 74d61790-b009-11e9-a821-0aef259a3062
  subsets:
  - addresses:
    - ip: IP.IP.IP.IP
    - ip: IP.IP.IP.IP
    ports:
    - name: https
      port: 443
      protocol: TCP
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

Simple workaround is to just resource_exclude the endpoints...

@ebertech ebertech added the bug unexpected problem or unintended behavior label Jun 29, 2021
@akrantz01 akrantz01 self-assigned this Jun 30, 2021
@akrantz01 akrantz01 added the regression something that used to work, but is now broken label Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/k8s bug unexpected problem or unintended behavior regression something that used to work, but is now broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants