Skip to content

Commit

Permalink
Add init container for overlay-tunnel (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikdr authored Sep 19, 2024
1 parent d187f50 commit 194a25a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions config/manager/speaker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,22 @@ spec:
labels:
control-plane: controller-manager
spec:
securityContext:
runAsNonRoot: true
initContainers:
- name: init-metalbond-tun
image: debian:bullseye
securityContext:
privileged: true
command: ["/bin/bash", "-c"]
args:
- |
# Update apt cache and install iproute2
apt-get update
apt-get install -y iproute2 ethtool
# Directly add and configure the tunnel interface
ip link add overlay-tun type ip6tnl mode any external ttl 32
ip link set mtu 1500 dev overlay-tun
ip link set up dev overlay-tun
ethtool -K overlay-tun rx off tx off
containers:
- name: manager
image: controller:latest
Expand Down

0 comments on commit 194a25a

Please sign in to comment.