Weave: Kubernetes > WeaveNet > use MAC address

Created on 12 Dec 2016  路  11Comments  路  Source: weaveworks/weave

When I use Docker Compose I can specify the MAC address of a container. This is needed because some containers require a specific MAC address for e.g. license purposes.

This is currently not possible to do via a Kubernetes Deployment yaml file. There is a discussion thread on this topic at https://github.com/kubernetes/kubernetes/issues/2289. The thread mentions on the end It is not something we support directly. It's possible that some network drivers support this via annotations, but I have not heard about it.

Is this possible for WeaveNet?

resolutioduplicate

Most helpful comment

I need to have a specific MAC address. In my situation the software license is checked-out against a given MAC address.

All 11 comments

No. See #21.

if / when would this be supported?

Not anytime soon unless demand increases; you are the first person to ask for this, ever. That said... PRs welcome :)

@bergtwvd do you need a _specific_ MAC address, or just a _consistent_ one? I think #2691 would give you the latter, if you specified an IP address (which Weave already lets you do).

I need to have a specific MAC address. In my situation the software license is checked-out against a given MAC address.

Same situation here.
With Docker mac-address option it is possible but k8s or weave its not.
So you got my vote !

I am also facing the same issue. Software licence is dependent on MAC and that's why looking for static MAC

I need this for a project as well. Using docker-compose for now

Same issue here for software licencing. Sorry, I know this is a old thread.

There are a couple solutions on this reddit thread: https://www.reddit.com/r/kubernetes/comments/8a36jw/set_mac_address_possible_with_k8s/

  • Give container privlidges, CAP_NET_ADMIN

The solution pointed by @colek42 works but only with one replica and in bare metal environment and weave-net addon
In EKS dosen't works.
Looking for a solution :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jordanjennings picture jordanjennings  路  6Comments

rachit1arora picture rachit1arora  路  7Comments

philicious picture philicious  路  11Comments

JaveriaK picture JaveriaK  路  11Comments

murali-reddy picture murali-reddy  路  11Comments