Skip to content

Support for BoundServiceAccountTokenVolume refresh token #11267

@hugomcfonseca

Description

@hugomcfonseca

Feature Request

Support to automatically refresh token of the Kubernetes ServiceAccount to avoid hitting authentication issues related to expired ServiceAccount token.

Proposal:

In theory, using the latest version of kubernetes/client-go should resolve this issue. More info here: https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html#service-account-tokens.

Use case:

https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html#service-account-tokens

Additional info:

  • Cloud Provider: AWS (EKS)
  • K8s version: 1.21

For authentication in Kubernetes API, we use the following:

> k get cm -n monitoring telegraf-daemonset -o yaml | rg -A3 "inputs.kubernetes"
    [[inputs.kubernetes]]
      url = "https://$HOSTIP:10250"
      bearer_token = "/run/secrets/kubernetes.io/serviceaccount/token"
      insecure_skip_verify = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/awsAWS plugins including cloudwatch, ecs, kinesisarea/k8sfeature requestRequests for new plugin and for new features to existing pluginshelp wantedRequest for community participation, code, contributionsize/m2-4 day effort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions