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

Feature: Add pod-level network status retrieval #146

Open
infinitydon opened this issue Nov 19, 2024 · 0 comments
Open

Feature: Add pod-level network status retrieval #146

infinitydon opened this issue Nov 19, 2024 · 0 comments

Comments

@infinitydon
Copy link

Feature Description

Problem Statement:
Currently, there is no way to retrieve and display network status information at the POD level, specifically regarding IP assignments details. This information is crucial for displaying at a glance the network configurations, especially in scenarios
multiple network interfaces.

The network status information is not created at the deployment/statefulset level hence the reason for retrieving them at the POD level.

Proposed Solution:
Implement functionality to retrieve and display network status information from the POD level, including:

  • Network Name
  • Interface
  • IP address assignments
  • MAC addresses
  • Default gateway information
  • DNS configurations

Sample POD status is shown below:

Annotations:      k8s.v1.cni.cncf.io/network-status:
                    [{
                        "name": "mynet",
                        "interface": "eth0",
                        "ips": [
                            "10.244.0.122"
                        ],
                        "mac": "ce:8b:ac:34:58:a9",
                        "default": true,
                        "dns": {},
                        "gateway": [
                            "10.244.0.1"
                        ]
                    },{
                        "name": "core5g/o5gs-telco-amf-nad",
                        "interface": "net1",
                        "ips": [
                            "10.2.2.16"
                        ],
                        "mac": "4a:07:b7:b7:b7:99",
                        "dns": {}
                    }]
                  k8s.v1.cni.cncf.io/networks:
                    [
                      { "name": "o5gs-telco-amf-nad" }
                    ]

Alternatives Considered:
Using kubectl describe pod to view annotations but it doesn't provide a consolidated view

Additional Context:
This feature would be particularly valuable for:

  • Troubleshooting network connectivity issues
  • Validating Multus CNI configurations
  • Monitoring IP address assignments
  • Verifying network attachment definitions

This functionality is particularly important for environments using Multus CNI for multiple network attachments

  • Please vote on this issue by adding a 👍 reaction to the original issue
  • If you are interested in working on this feature, please leave a comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant