Skip to content

Metadata-only fetches #1022

@fchiacchiaretta

Description

@fchiacchiaretta
SUMMARY

Implement Metadata-only fetches with optional boolean flag

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

k8s_info

ADDITIONAL INFORMATION

Kubernetes API supports fetching only metadata for single objects or Lists of objects.
When fetching objects in a large cluster, like Nodes or Pods for all namespaces, memory usage can be pretty high, and fetching metadata only can mitigate the issue.

- name: Get node list
  kubernetes.core.k8s_info:
    kind: Node
    metadata_only: true
  register: response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions