Skip to content

Commit b8dc1a7

Browse files
committed
run: guixsd: Fix openwrt access from kubernetes pods.
1 parent 5ce708d commit b8dc1a7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dotfiles/run/guixsd/02-ip.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
set -o nounset -o errexit -o pipefail -o xtrace
44

5+
# Access OpenWrt from Prometheus in Kubernetes.
6+
ip link add macvlan0 link enp34s0 type macvlan mode bridge
7+
ip addr add 192.168.0.180/24 dev macvlan0
8+
ip link set macvlan0 up
9+
ip route add 192.168.0.253/32 dev macvlan0
10+
511
# ip address add 127.0.0.2/8 dev enp34s0
612
ip address add 192.168.0.144/24 dev enp34s0
713
ip address add 192.168.0.145/24 dev enp34s0

0 commit comments

Comments
 (0)