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

Add dedicate network and static IP for podman driver #9714

Closed
medyagh opened this issue Nov 15, 2020 · 4 comments · Fixed by #9716
Closed

Add dedicate network and static IP for podman driver #9714

medyagh opened this issue Nov 15, 2020 · 4 comments · Fixed by #9716
Labels
co/podman-driver podman driver issues kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone

Comments

@medyagh
Copy link
Member

medyagh commented Nov 15, 2020

in minikube 1.14.0 we had docker driver with dedicate network, we should do same thing for podman for consistancy

@medyagh medyagh added priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. kind/feature Categorizes issue or PR as related to a new feature. labels Nov 16, 2020
@medyagh medyagh changed the title Add dedicate Network for podman driver Add dedicate network and static IP for podman driver Nov 16, 2020
@afbjorklund
Copy link
Collaborator

The podman network doesn't have label nor options, that might become a problem...

Usage:	docker network create [OPTIONS] NETWORK

Create a network

Options:
      --attachable           Enable manual container attachment
      --aux-address map      Auxiliary IPv4 or IPv6 addresses used by Network driver (default map[])
      --config-from string   The network from which copying the configuration
      --config-only          Create a configuration only network
  -d, --driver string        Driver to manage the Network (default "bridge")
      --gateway strings      IPv4 or IPv6 Gateway for the master subnet
      --ingress              Create swarm routing-mesh network
      --internal             Restrict external access to the network
      --ip-range strings     Allocate container ip from a sub-range
      --ipam-driver string   IP Address Management Driver (default "default")
      --ipam-opt map         Set IPAM driver specific options (default map[])
      --ipv6                 Enable IPv6 networking
      --label list           Set metadata on a network
  -o, --opt map              Set driver specific options (default map[])
      --scope string         Control the network's scope
      --subnet strings       Subnet in CIDR format that represents a network segment
Usage:
  podman network create [flags] [NETWORK]

Examples:
  podman network create podman1

Flags:
      --disable-dns      disable dns plugin
  -d, --driver string    driver to manage the network (default "bridge")
      --gateway ip       IPv4 or IPv6 gateway for the subnet
      --internal         restrict external access from this network
      --ip-range ipNet   allocate container IP from range
      --macvlan string   create a Macvlan connection based on this device
      --subnet ipNet     subnet in CIDR format

Also "docker" is hardcoded in a dozen place in the old PR, instead of using ociBin.

@afbjorklund afbjorklund added the co/podman-driver podman driver issues label Nov 16, 2020
@afbjorklund
Copy link
Collaborator

See containers/podman#7989 (comment), it needs a podman network rewrite first (before labels)

I'm not sure if any of the options were mandatory, or if there is some kind of CNI workaround ?
--ip-masq
--icc

https://docs.docker.com/engine/extend/plugins_network/
https://github.com/moby/libnetwork/tree/master/drivers/bridge/

Usage: bridge [ OPTIONS ] OBJECT { COMMAND | help }
       bridge [ -force ] -batch filename
where	OBJECT := { link | fdb | mdb | vlan | monitor }
	OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] |
		     -o[neline] | -t[imestamp] | -n[etns] name |
		     -c[ompressvlans] -color -p[retty] -j[son] }

@afbjorklund
Copy link
Collaborator

afbjorklund commented Nov 16, 2020

The filter label functionality seems broken anyway, so most likely it needs manual cleanup...

Just like #9705 for the volumes ? (also, the "remove" alias is missing - so need to use "rm")

sudo podman network rm minikube

sudo podman volume rm minikube

@afbjorklund
Copy link
Collaborator

Podman network labels were discussed here: containers/podman#5376

It might become available in Podman 3.0, along with the fix for --filter ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/podman-driver podman driver issues kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants