kvaps / kube-pipework Goto Github PK
View Code? Open in Web Editor NEWPipework for Kubernetes
Home Page: https://github.com/kvaps/kube-pipework
License: Apache License 2.0
Pipework for Kubernetes
Home Page: https://github.com/kvaps/kube-pipework
License: Apache License 2.0
Hello,
first I'd like to say thank you. I stumbled across this today and instantly switched from the env based config to your new the annotation based config.
Unfortunately there's an issue with setting host routes for single IPs (i.e. the netmask is /32). This issue is also pressent on dreamcat4/pipework.
The problem is that the script tries to set up a new network including routing which fails for /32.
In https://github.com/kvaps/kube-pipework/blob/master/entrypoint.sh#L226 sipcalc returns nothing, the following ping command either fails or simply hangs.
For a single IP, it's sufficient to add a route to the host device to make routing work (e.g. route add -host 1.2.3.4 dev eth0
). So all the IP calculation is not required. This could even work with a subnet (I can't see why it should not), so the whole macvlan creation and stuff is maybe not necessary.
I am trying to run both yours and dreamcat4's version of this and upon running, I get:
ln: failed to create symbolic link '/sys/fs/cgroup/systemd/name=systemd': Operation not permitted
Device "eth1" does not exist.
and pipework fails to add the eth1 interface to my test container.
I tried both on Centos 8 and Arch 5.3.8, Docker version 19.03.5-ce, build 633a0ea838
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.