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

[PoC] IP utilization #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[PoC] IP utilization #1

wants to merge 1 commit into from

Conversation

aepifanov
Copy link
Owner

@aepifanov aepifanov commented Jan 29, 2025

- What I did
Added implementation for showing 2 counters of available IP addresses for docker network:

  • Available Allocation IPs - IPs that are allocated dynamically for assigning service’s VIPs/LBs/Tasks and might be specified by --ip-range option during the network creation.
  • Available IPs - all available IPs in a network (including the Available Allocation IPs) which might be assigned manually to a container
    These counters are visible in network inspection:

/# docker network inspect my -v
[
    {
        "Name": "my",
        "Id": "4a0l4jrhbi81p6hwrkqmgetef",
...
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {                                                                                                                                                                                                                     
                    "Subnet": "192.168.10.0/24",
                    "IPRange": "192.168.10.0/29",
                    "Gateway": "192.168.10.1"
                }
            ]
        },
        "AvailableIPs": 253, <---------------
        "AvailableAllocationIPs": 6, <---------------
        "Internal": false,
        "Attachable": false,

- How I did it
https://docs.google.com/document/d/1CmmCe1T8ze8tAOyl3MKsJj_1hVlzpSGK7D4kclS9PW0/edit?tab=t.0

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)
image

@aepifanov aepifanov force-pushed the ip-utilization branch 2 times, most recently from 43b91d2 to af81fd4 Compare January 29, 2025 11:20
@aepifanov aepifanov changed the title Ip utilization [PoC] IP utilization Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant